/* === RESET & 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, 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F1F5F2;
  color: #273A4D;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}
a {
  text-decoration: none;
  color: inherit;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border-radius: 0;
}

/* === FONT IMPORT === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600;700&display=swap');

/* === BRAND VARIABLES === */
:root {
  --primary: #273A4D;
  --secondary: #9CB868;
  --accent: #F1F5F2;
  --text-dark: #273A4D;
  --text-light: #fff;
  --highlight: #65B6CA;
  --shadow: 0 4px 28px rgba(39,58,77,0.08), 0 1.5px 8px rgba(156,184,104,.07);
}

/* === TYPOGRAPHY & BODY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
p, li {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}
strong {
  color: var(--secondary);
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  background: var(--accent);
  color: var(--text-dark);
}
a {
  transition: color .2s cubic-bezier(.65,0,.35,1);
}

/* === HEADER & NAVIGATION === */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(39,58,77,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px;
}
.logo img {
  height: 42px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 13px;
  border-radius: 24px;
  position: relative;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--text-light);
}
.main-nav .cta-primary {
  background: var(--secondary);
  color: var(--text-light);
  border-radius: 26px;
  padding: 8px 24px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(156,184,104,.10);
  margin-left: 10px;
  transition: background 0.21s, color 0.21s, box-shadow 0.34s;
}
.main-nav .cta-primary:hover, .main-nav .cta-primary:focus {
  background: #6fa500;
  color: #fff;
  box-shadow: 0 5px 20px rgba(156,184,104,.20);
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  line-height: 1;
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  z-index: 1011;
  margin-left: 18px;
  padding: 2px 7px;
  border-radius: 8px;
  transition: background 0.16s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--secondary);
  background: var(--accent);
}

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

.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100%; width: 100vw;
  background: rgba(39,58,77,0.98);
  z-index: 2000;
  transform: translateX(-100vw);
  transition: transform 0.37s cubic-bezier(.61,-0.22,0.65,1.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  padding: 16px 24px 8px 14px;
  align-self: flex-end;
  cursor: pointer;
  transition: background 0.16s;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--secondary);
  background: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 25px 32px;
  margin-top: 26px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.017em;
  padding: 12px 10px 12px 4px;
  border-radius: 16px;
  transition: background 0.18s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* === CONTAINER & FLEX LAYOUTS === */
.container {
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* === SPACING & PATTERNS === */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 36px;
  box-shadow: var(--shadow);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.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: #f8fbf7;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(156,184,104,.11);
  color: var(--primary);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(156,184,104,.09);
  padding: 22px 18px;
  min-width: 238px;
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(110deg, #f1f5f2 70%, #eaf4b8 100%);
  border-radius: 0 0 56px 56px;
  box-shadow: 0 8px 40px 0 rgba(156,184,104,0.10);
  min-height: 210px;
  margin-bottom: 38px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 10px;
  padding: 30px 0 10px 0;
}
.hero h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-size: 2.5rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(39,58,77,.02);
  margin-bottom: 14px;
}
.hero p {
  font-size: 1.125rem;
  color: #486274;
  margin-bottom: 16px;
}

/* === FEATURES (VIBRANT ARTISTIC CARDS) === */
.features .content-wrapper {
  gap: 30px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin-top: 16px;
}
.feature-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
}
.feature-item h3 {
  color: var(--secondary);
  font-size: 1.15rem;
  margin-bottom: 3px;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* === ABOUT PREVIEW/TEAM === */
.about-preview {
  background: #fffbe2;
}
.team-intro, .about .team-intro {
  background: rgba(156,184,104,.16);
  border-left: 6px solid var(--secondary);
  padding: 16px 20px;
  border-radius: 20px 12px 12px 20px;
  margin-bottom: 32px;
}
.about h3, .about-preview h3  {
  color: var(--primary);
  font-size: 1.15rem;
}

/* === SERVICE PREVIEW CARDS === */
.service-cards, .service-categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 30px;
}
.service-card, .service-category {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(39,58,77,0.07);
  padding: 24px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 239px;
  flex: 1 1 250px;
  max-width: 340px;
  margin-bottom: 20px;
}
.service-card img, .service-category img {
  width: 40px;
  height: 40px;
  margin-bottom: 2px;
}
.service-card h3, .service-category h3 {
  color: var(--secondary);
  font-size: 1.1rem;
}

/* === CARD GRIDS === */
.card-grid, .case-description-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

/* === TESTIMONIALS === */
.testimonials .testimonial-card, .projects-preview .testimonial-card {
  background: #fff;
  color: var(--primary);
  border-left: 6px solid var(--secondary);
  font-size: 1.1rem;
  box-shadow: 0 2px 16px rgba(156,184,104,.08);
  margin-bottom: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card p {
  margin-bottom: 7px;
  color: var(--primary);
}
.testimonial-card span {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #5d755d;
  font-size: 0.98rem;
}

/* === CASE STUDIES PROJECTS === */
.case-description {
  background: #f1f9de;
  border-radius: 20px;
  box-shadow: 0 1px 7px rgba(156,184,104,.10);
  padding: 20px 24px 10px 16px;
  margin-bottom: 20px;
  font-size: 1.05rem;
}
.case-description h3 {
  color: var(--primary);
  margin-bottom: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
}

/* === FAQ ACCORDION === */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 13px rgba(156,184,104,.08);
  padding: 19px 29px 8px 19px;
  margin-bottom: 10px;
  transition: box-shadow .17s;
}
.faq-item h3 {
  font-size: 1.07rem;
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 10px;
}
.faq-item p {
  font-size: 1rem;
  color: var(--primary);
}
.faq-accordion .faq-item:hover {
  box-shadow: 0 4px 24px rgba(156,184,104,.13);
}

.quick-contact-cta {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

/* === CTA SECTION === */
.cta {
  background: linear-gradient(101deg,#f1f5f2 70%,#eaf4b8 100%);
  border-radius: 36px;
  box-shadow: var(--shadow);
}
.cta .content-wrapper {
  align-items: flex-start;
  gap: 10px;
}

/* === BUTTONS === */
.cta-primary, .btn, .cookie-banner-btn {
  background: var(--secondary);
  color: var(--text-light);
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 32px;
  padding: 11px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 7px rgba(156,184,104,.10);
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, box-shadow 0.24s;
}
.cta-primary:hover, .btn:hover, .cookie-banner-btn:hover, .cta-primary:focus, .btn:focus {
  background: #6fa500;
  color: #fff;
  box-shadow: 0 6px 25px rgba(156,184,104,.19);
}

/* === FORM & CONTACT === */
.contact-methods p, .company-address {
  font-size: 1.07rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.map-text {
  background: #fffbe2;
  border-left: 5px solid var(--secondary);
  padding: 14px 16px;
  border-radius: 15px 10px 10px 15px;
  margin-top: 17px;
}

/* === FOOTER === */
footer {
  background: #273A4D;
  color: #fff;
  padding: 48px 0 36px 0;
  border-radius: 48px 48px 0 0;
  margin-top: 44px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer .logo img {
  height: 36px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.88;
  font-size: 1rem;
  transition: color 0.19s, opacity 0.19s;
  padding: 5px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
  opacity: 1;
}
.footer-contact p {
  font-size: 0.97rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e0e6ed;
}
.footer-contact img {
  width: 16px;
  height: 16px;
}

/* === LEGAL PAGES === */
.legal h1 {
  margin-bottom: 18px;
}
.legal h2 {
  margin-top: 30px;
  margin-bottom: 10px;
}
.legal ul, .legal ol {
  margin-bottom: 16px;
  margin-left: 16px;
  padding-left: 20px;
}
.legal li {
  margin-bottom: 7px;
  font-size: 1rem;
}

/* === CONFIRMATION / THANK YOU === */
.confirmation h1 {
  color: var(--secondary);
  margin-bottom: 18px;
}
.confirmation p {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 -2px 18px rgba(156,184,104,0.18);
  padding: 22px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 4000;
  font-size: 1rem;
  animation: fadeInUp 0.6s cubic-bezier(.29,.86,.61,1.32);
  border-radius: 28px 28px 0 0;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-banner-btn {
  margin-right: 12px;
  min-width: 120px;
}
.cookie-banner-btn:last-child {
  margin-right: 0;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(39,58,77,0.75);
  z-index: 4100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.33s;
}
@keyframes fadeIn { from{opacity:0;}to{opacity:1;} }
.cookie-modal-content {
  background: #fff;
  padding: 38px 22px 26px 22px;
  border-radius: 30px;
  max-width: 420px;
  width: 94vw;
  box-shadow:var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cookie-modal-close {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 1.7em;
  align-self: flex-end;
  margin-bottom: -10px;
  cursor: pointer;
}
.cookie-modal-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid #e2eedc;
}
.cookie-category-name {
  font-weight: 700;
  color: var(--secondary);
}
.cookie-category-toggle {
  appearance: none;
  width: 40px; height: 24px;
  background: #e0e0e0;
  border-radius: 16px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.14s;
  vertical-align: middle;
}
.cookie-category-toggle:checked {
  background: var(--secondary);
}
.cookie-category-toggle::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  height: 16px; width: 16px;
  background: #fff;
  border-radius: 100%;
  box-shadow: 0 2px 4px rgba(39,58,77,0.08);
  transition: left 0.21s;
}
.cookie-category-toggle:checked::after {
  left: 20px;
}

/* === MICRO-INTERACTIONS & HOVERS === */
.card, .service-card, .service-category, .feature-item, .faq-item, .testimonial-card, .case-description {
  transition: box-shadow 0.24s, transform 0.22s;
}
.card:hover, .service-card:hover, .service-category:hover, .feature-item:hover, .faq-item:hover, .case-description:hover {
  box-shadow: 0 8px 40px 0 rgba(156,184,104,0.19);
  transform: translateY(-5px) scale(1.02);
}

.cta-primary:focus, .btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

a:focus { outline: 1.6px solid var(--secondary); }
button:focus { outline: 2px solid var(--secondary); }

/* === ARTISTIC DECORATIVE ELEMENTS === */
.section {
  /* Artistic dotted border for creative vibe */
  border: 2px dashed #d0e995;
  background:
    repeating-linear-gradient(135deg,rgba(255,255,255,0.9) 0 10px,rgba(241,245,242, .9) 10px 20px),
    #fff;
}
.feature-item {
  border-left: 5px solid var(--secondary);
}
.service-card, .service-category {
  border-image: linear-gradient(to bottom, var(--secondary) 50%, transparent) 1 100%;
  border-left: 5px solid var(--secondary);
  position: relative;
}
.service-card::before, .service-category::before {
  content: '';
  position: absolute;
  left: 20px; top: 16px;
  width: 7px;
  height: 7px;
  background: var(--highlight);
  border-radius: 50%;
  z-index: 2;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
  .container {
    max-width: 96vw;
    padding: 0 8px;
  }
}
@media (max-width: 992px) {
  .container {
    max-width: 100vw;
    padding: 0 6px;
  }
  .section, .about-preview, .cta {
    padding: 16px 6px;
  }
  .footer-nav {
    gap: 7px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 99vw;
    padding: 0 2vw;
  }
  header .container, footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .main-nav, .footer-nav {
    gap: 10px;
    flex-direction: column;
  }
  .section {
    margin-bottom: 36px;
    padding: 16px 2vw;
    border-radius: 22px;
  }
  .hero {
    padding: 10px 0;
    border-radius: 0 0 28px 28px;
    min-height: 128px;
  }
  .content-grid, .feature-grid, .service-cards, .service-categories-grid, .card-container, .footer-contact, .card-grid, .case-description-grid {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .feature-item, .service-card, .service-category {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .footer-contact p {
    font-size: 0.98rem;
  }
  .team-intro, .map-text {
    border-radius: 15px 8px 8px 15px;
  }
  .testimonial-card, .faq-item {
    padding: 14px 10px 8px 10px;
  }
}
@media (max-width: 520px) {
  .logo img, footer .logo img {
    height: 27px !important;
  }
  .footer-contact p {
    font-size: 0.94rem;
  }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.16rem; }
  h3 { font-size: 1rem; }
}

/* === Z-INDEX MANAGEMENT === */
header, .mobile-menu, .cookie-banner, .cookie-modal {
  z-index: 1000;
}
.mobile-menu {
  z-index: 2100;
}
.cookie-banner {
  z-index: 4000;
}
.cookie-modal {
  z-index: 4100;
}

/* == NO GRID, NO COLUMNS, FLEXBOX ONLY == */
/* All layouts use flexbox with gap, flex-direction and flex-wrap; Never uses grid. */

/* === ACCESSIBILITY === */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* === END === */