/* --------------------------------- CSS RESET & NORMALIZE --------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*,*::before,*::after { box-sizing: inherit; margin: 0; padding: 0; border: 0; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}
ul,ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img,svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; background: none; border: none; outline: none; }
button { cursor: pointer; background: transparent; }
:focus { outline: 2px solid #428370; outline-offset: 2px; }

/* --------------------------------- BASE STYLES --------------------------------- */
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #171c27;
  color: #F2E9DC;
  line-height: 1.6;
  min-height: 100vh;
  background-color: #1C253A;
  letter-spacing: 0.03em;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.7rem;
  letter-spacing: 0.02em;
  line-height: 1.16;
  font-weight: 700;
  color: #F2E9DC;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(28, 37, 58, 0.25);
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #F2E9DC;
  letter-spacing: 0.02em;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: #ffeecc;
  letter-spacing: 0.01em;
}
p, li, blockquote, address, span {
  font-size: 1rem;
  color: #E0DACF;
  margin-bottom: 16px;
}
blockquote {
  border-left: 3px solid #428370;
  padding-left: 16px;
  color: #BFD7D0;
  font-style: italic;
}
strong, b {
  color: #ffeecc;
  font-weight: 600;
}
a {
  color: #428370;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFD16B;
  text-decoration: underline;
}

/* --------------------------------- HEADER & NAVIGATION --------------------------------- */
header {
  width: 100%;
  background: #181c27;
  box-shadow: 0 2px 12px rgba(28, 37, 58, 0.13);
  position: sticky;
  top: 0;
  z-index: 1001;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}
.logo img {
  height: 46px;
  display: block;
  filter: brightness(1.2) drop-shadow(0 0 6px #333b);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  color: #F2E9DC;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  letter-spacing: 0.03em;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.13s, color 0.18s;
}
.main-nav a:not(.btn-primary):hover, .main-nav a:not(.btn-primary):focus {
  background: #222b39;
  color: #FFD16B;
}
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #428370;
  color: #232626;
  border-radius: 7px;
  font-size: 1.07rem;
  padding: 8px 25px;
  font-weight: 700;
  box-shadow: 0 2px 10px #0003, 0 3px 1em #23262605;
  border: 1px solid #377561;
  transition: background 0.22s, color 0.22s, box-shadow 0.18s;
  text-shadow: 0 2px 10px #fff1;
  margin-left: 20px;
  letter-spacing: 0.04em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #2e654f;
  color: #ffd16b;
  box-shadow: 0 2px 18px #42837066, 0 3px 1em #23262611;
}
.btn-link {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-block;
  color: #FFD16B;
  background: none;
  font-size: 1.05rem;
  border-radius: 6px;
  padding: 7px 18px 7px 2px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.13s;
  margin-top: 10px;
}
.btn-link:hover, .btn-link:focus {
  color: #fff;
  background: #222b39;
}

/* Burger Icon */
.mobile-menu-toggle {
  display: none;
  background: #232d3f;
  color: #FFD16B;
  font-size: 2.3rem;
  border-radius: 8px;
  padding: 2px 11px 3px 11px;
  transition: background 0.17s, color 0.14s;
  z-index: 2000;
  box-shadow: 0 2px 7px #23262622;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #428370;
  color: #181c27;
}

@media (max-width: 1100px) {
  .main-nav { gap: 17px; }
  .btn-primary { margin-left: 10px; padding: 7px 18px; }
}

@media (max-width: 900px) {
  .main-nav { gap: 12px; }
}

@media (max-width: 820px) {
  .btn-primary { display: none; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}


/* --------------------------------- MOBILE MENU --------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(28, 37, 58, 0.96);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 32px 0 19px;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.77,.13,.13,.77);
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #232d3f;
  color: #FFD16B;
  font-size: 2.5rem;
  border-radius: 100px;
  align-self: flex-end;
  margin: 23px 0 17px auto;
  padding: 2px 12px;
  box-shadow: 0 1px 8px #23262666;
  transition: background 0.2s, color 0.1s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #428370;
  color: #171c27;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 23px;
  width: 100%;
  margin-top: 28px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #F2E9DC;
  font-size: 1.44rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 0;
  border-radius: 5px;
  transition: background 0.15s, color 0.13s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #428370;
  color: #171c27;
}

@media (min-width: 761px) {
  .mobile-menu { display: none !important; }
}

/* --------------------------------- SECTIONS, CARDS, FLEX --------------------------------- */
main {
  width: 100%;
  min-height: 60vh;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 0;
}

/* Features & Cards */
.feature-grid, .service-cards, .team-grid, .portfolio-teasers, .portfolio-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 0 0;
}
.feature-grid > div, .service-cards > div, .team-grid > div, .portfolio-teasers > div {
  flex: 1 1 240px;
  min-width: 240px;
  background: #232d3f;
  border-radius: 16px;
  box-shadow: 0 3px 18px #23262630;
  padding: 30px 24px 26px 24px;
  border: 1.5px solid #333b;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 20px;
  transition: transform 0.16s, box-shadow 0.17s;
}
.feature-grid > div:hover, .service-cards > div:hover, .team-grid > div:hover, .portfolio-teasers > div:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 32px #42837033, 0 1px 4px #2225;
  border-color: #428370;
}
.feature-grid img, .service-cards img, .team-grid img, .portfolio-teasers img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  filter: grayscale(0.4) brightness(1.05) drop-shadow(0 0 6px #232d3faa);
}

/* Portfolio & Blog teasers */
.blog-preview {
  background: #262e40;
  border-radius: 14px;
  box-shadow: 0 2px 11px #23262622;
  padding: 24px 20px 20px 20px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 210px;
  border: 1.1px solid #333b;
  transition: transform 0.15s, box-shadow 0.18s;
}
.blog-preview:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 5px 24px #42837022;
  border-color: #428370;
}

/* Responsive portfolio/blog stacking */
@media (max-width: 900px) {
  .feature-grid, .service-cards, .portfolio-teasers, .portfolio-cards, .team-grid {
    gap: 16px;
  }
}
@media (max-width: 680px) {
  .feature-grid, .service-cards, .portfolio-teasers, .portfolio-cards, .team-grid {
    flex-direction: column;
  }
}

/* Card Container: For generic stacked card flex arrangement */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #232d3f;
  border-radius: 13px;
  box-shadow: 0 3px 18px #23262636;
  border: 1.5px solid #333b;
  padding: 32px 24px;
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 8px 40px #42837055, 0 1px 8px #2225;
  transform: translateY(-5px) scale(1.015);
  border-color: #428370;
}

/* Content Grids & Alignment */
.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) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #F2E9DC;
  color: #232626;
  font-size: 1.08rem;
  border-radius: 15px;
  padding: 24px 27px 22px 27px;
  margin-bottom: 20px;
  box-shadow: 0 3px 18px #2326261a;
  border-left: 5px solid #428370;
  min-width: 220px;
  max-width: 600px;
  transition: box-shadow 0.19s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 30px #1C253A44, 0 1px 8px #2224;
  transform: translateY(-2px) scale(1.01);
}
.testimonial-card p {
  color: #222a2e;
  font-size: 1.1rem;
}
.testimonial-info {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 7px;
  font-size: 0.95rem;
  color: #3d4430;
}
.testimonial-info strong {
  font-weight: bold;
  color: #222a2e;
  letter-spacing: 0.02em;
}
.testimonial-info span {
  font-size: 1.2em;
  color: #FFD16B;
}

/* Featured item (column flexbox) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}


/* --------------------------------- FORMATTING LISTS --------------------------------- */
ul, ol {
  margin-bottom: 18px;
  margin-left: 0;
  padding-left: 0;
}
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 28px;
  position: relative;
}
ul li:before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  background: #428370;
  border-radius: 100px;
  margin-right: 12px;
  position: absolute;
  left: 0;
  top: 9px;
}
ol li:before {
  content: counter(item) '. ';
  color: #428370;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}
ol {
  counter-reset: item;
}
ol > li {
  counter-increment: item;
  padding-left: 33px;
}

/* --------------------------------- BUTTONS & INTERACTIVES --------------------------------- */
button, .btn-primary, .btn-link {
  transition: background 0.22s, color 0.16s, box-shadow 0.19s;
}
button:active, .btn-primary:active {
  transform: scale(0.98);
}


/* --------------------------------- BLOG CATEGORIES --------------------------------- */
.blog-categories {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.blog-categories strong {
  color: #FFD16B;
}
.blog-categories a {
  display: inline-block;
  color: #428370;
  background: #212A33;
  border-radius: 7px;
  padding: 4px 14px;
  font-size: 1.03rem;
  margin-right: 3px;
  transition: background 0.18s, color 0.14s;
}
.blog-categories a:hover, .blog-categories a:focus {
  background: #428370;
  color: #181c27;
}

/* --------------------------------- FOOTER --------------------------------- */
footer {
  background: #232d3f;
  margin-top: 64px;
  padding: 44px 0 18px 0;
  box-shadow: 0 -1px 8px #23262633;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 11px;
  font-size: 1.07rem;
}
.footer-nav a {
  color: #FFD16B;
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #ffffff;
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 21px;
  justify-content: center;
  font-size: 1rem;
  color: #F2E9DC;
  flex-wrap: wrap;
}
.footer-contact img {
  height: 48px;
}
.footer-contact span {
  display: block;
  color: #EFE8DA;
  font-size: 1rem;
  margin-bottom: 2px;
  vertical-align: middle;
}
.footer-contact span img {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: -3px;
}
.footer-social {
  display: flex;
  gap: 17px;
  justify-content: center;
  margin-top: 0;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222b39;
  border-radius: 50%;
  height: 38px;
  width: 38px;
  transition: background 0.17s;
}
.footer-social a:hover, .footer-social a:focus {
  background: #428370;
}
.footer-social img {
  width: 22px;
  height: 22px;
}
.footer-brand-credits {
  margin-top: 18px;
  text-align: center;
  color: #a1a6b2;
  font-size: 0.99rem;
}

@media (max-width: 980px) {
  .footer-contact {
    flex-direction: column;
    gap: 6px;
    align-items: center;
  }
}

/* --------------------------------- RESPONSIVE TYPOGRAPHY & CARDS --------------------------------- */
@media (max-width: 700px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.5rem; }
  h3, .h3 { font-size: 1.07rem; }
  main { padding-bottom: 60px; }
}
@media (max-width: 520px) {
  .container { padding: 0 8px; }
  footer .container { gap: 18px; }
}

/* --------------------------------- COOKIE CONSENT BANNER --------------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #181c27ee;
  color: #F2E9DC;
  font-family: 'Roboto', Arial, sans-serif;
  z-index: 3000;
  box-shadow: 0 -3px 28px #1c253a66;
  padding: 24px 20px 20px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  border-top: 2px solid #428370;
  animation: slideCookieIn 0.6s ease;
}
@keyframes slideCookieIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  color: #F2E9DC;
  margin-bottom: 0;
  font-size: 1rem;
  max-width: 430px;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 0;
}
.cookie-banner-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  padding: 7px 20px;
  background: #FFD16B;
  color: #232626;
  border-radius: 7px;
  font-weight: 600;
  border: none;
  margin-right: 2px;
}
.cookie-banner-actions button:hover, .cookie-banner-actions button:focus {
  background: #232d3f;
  color: #FFD16B;
  border: 1.5px solid #428370;
}
.cookie-banner-actions .cookie-settings {
  background: #222b39;
  color: #FFD16B;
  margin-right: 0;
}
.cookie-banner-actions .cookie-settings:hover { background: #428370; color: #232626; }
@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 15px;
    padding: 20px 5px 16px 5px;
    font-size: 0.97rem;
  }
}

/* COOKIE MODAL (preferences) */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(28, 37, 58, 0.85);
  z-index: 4000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInCookieModal 0.32s ease;
}
@keyframes fadeInCookieModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #181c27;
  color: #FFF;
  min-width: 310px;
  max-width: 96vw;
  padding: 36px 32px 28px 32px;
  border-radius: 15px;
  box-shadow: 0 6px 42px #1c253aaa;
  border: 2px solid #42837033;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popInCookieModal 0.45s cubic-bezier(0.22, 0.5, 0.32, 1.18);
}
@keyframes popInCookieModal {
  0% { transform: scale(0.93); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: #FFD16B;
  font-size: 1.25rem;
  margin-bottom: 9px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 17px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}
.cookie-toggle input[type=checkbox],
.cookie-toggle input[type=radio] {
  width: 20px;
  height: 20px;
  accent-color: #428370;
  background: #1C253A;
  border-radius: 5px;
  margin-right: 7px;
}
.cookie-toggle label {
  font-size: 0.96rem;
  cursor: pointer;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 11px;
  right: 23px;
  font-size: 2.2rem;
  background: none;
  color: #FFD16B;
  border-radius: 100px;
  padding: 2px 13px;
  transition: background 0.19s, color 0.17s;
  z-index: 1;
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  background: #428370;
  color: #181c27;
}


/* --------------------------------- UTILITIES & EFFECTS --------------------------------- */
.shadow-strong {
  box-shadow: 0 6px 32px #42837033,
              0 1px 11px #1C253A11;
}
.rounded {
  border-radius: 17px;
}
.text-center {
  text-align: center !important;
}
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-8 { margin-bottom: 8px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mt-16 { margin-top: 16px !important; }
.uppercase { text-transform: uppercase; letter-spacing: 0.04em; }

/* --------------------------------- SCROLLBAR STYLE --------------------------------- */
::-webkit-scrollbar {
  width: 13px;
  background: #181C27;
}
::-webkit-scrollbar-thumb {
  background: #285C4C;
  border-radius: 9px;
}

/* --------------------------------- SELECTION COLOR --------------------------------- */
::selection {
  background: #FFD16B;
  color: #232626;
}

/* --------------------------------- ANIMATIONS --------------------------------- */
.fade-in {
  animation: fadeInEl 1s ease-out;
}
@keyframes fadeInEl {
  from { opacity:0; transform:translateY(30px); }
  to { opacity:1; transform:translateY(0); }
}

/* --------------------------------- ACCESSIBILITY --------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --------------------------------- DARK/LIGHT TESTIMONIALS --------------------------------- */
@media (max-width: 600px) {
  .testimonial-card {
    padding: 16px 8px 15px 13px;
    font-size: 1rem;
  }
}

/* --------------------------------- PRINT/LIGHT BG CORRECTION --------------------------------- */
@media print {
  body { background: #fff !important; color: #222 !important; }
  .section, .card, .feature-grid > div, .service-cards > div, .portfolio-cards > div, .testimonial-card, footer, header { background: #fff !important; color: #222 !important; box-shadow: none !important; }
  a, .btn-primary, .btn-link { color: #232626 !important; background: none !important; text-decoration: underline !important; }
  .main-nav, .mobile-menu, .mobile-menu-toggle, .cookie-consent-banner, .cookie-modal, .footer-social { display: none !important; }
}
