/* ============================================================
   SOFFIPROMO GEOMETRIC STRUCTURED STYLE.CSS
   Author: Senior CSS Developer & UI Designer
   ============================================================ */

/* ===================== 1. CSS 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;
}
html { scroll-behavior: smooth; }
body {
  background: #F9FBFC;
  color: #1A2225;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
:focus {
  outline: 2px solid #2B9AC6;
  outline-offset: 2px;
}

/* ===================== 2. TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #004765;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 20px;
  text-transform: uppercase;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 16px;
  text-transform: uppercase;
}
h3 {
  font-size: 1.375rem;
  line-height: 1.3;
  margin-bottom: 12px;
  text-transform: uppercase;
}
h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

p, li, span, .text-section {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #234052;
  margin-bottom: 12px;
}
strong { font-weight: 700; color: #004765; }

.category {
  background: #F2C14E;
  color: #004765;
  display: inline-block;
  font-size: 0.95em;
  padding: 3px 11px;
  border-radius: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: 8px;
}

/* ===================== 3. LAYOUT CONTAINERS & GRIDS ===================== */
.container {
  width: 100%;
  max-width: 1240px;
  padding: 0 20px;
  margin: 0 auto;
  box-sizing: border-box;
  z-index: 1;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
}

.feature-grid, .service-list, .blog-highlights, .case-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}

.feature-item, .service-item, .case-card, .blog-post {
  background: #fff;
  box-shadow: 0 3px 16px rgba(40,64,99,0.07);
  border-radius: 20px;
  padding: 32px 28px 28px 28px;
  min-width: 240px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 2.5px solid #E6F2F7;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.25s, border-color 0.23s, transform 0.15s;
}
.feature-item:hover, .service-item:hover, .case-card:hover, .blog-post:hover {
  box-shadow: 0 7px 24px 0 rgba(40,64,99,0.17);
  border-color: #2B9AC6;
  transform: translateY(-4px) scale(1.025);
}

.card-container, .blog-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}

.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-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 22px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #FAFBFD;
  box-shadow: 0 3px 16px rgba(40,64,99,0.11);
  border: 2px solid #E6F2F7;
  border-radius: 18px;
  padding: 20px 32px;
  min-width: 244px;
  margin-bottom: 20px;
  transition: border-color 0.2s, box-shadow 0.22s;
}
.testimonial-card:hover {
  border-color: #F2C14E;
  box-shadow: 0 7px 36px 0 rgba(40,64,99,0.18);
}
.testimonial-card p {
  color: #234052;
  font-style: italic;
  margin-right: 12px;
}
.testimonial-card strong {
  color: #004765;
  font-weight: 700;
}

.client-brands {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.footer-content, .footer-brand, .footer-contact, .footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-content {
  flex-wrap: wrap;
  justify-content: space-between;
  border-top: 2.5px solid #E6F2F7;
  padding-top: 38px;
  margin-top: 32px;
}
.footer-brand {
  flex-direction: row;
  gap: 16px;
}
.footer-contact {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-nav {
  gap: 18px;
}

.text-section {
  margin-bottom: 20px;
}

/* ===================== 4. HEADER & NAVIGATION ===================== */
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px 0 rgba(40,64,99,0.08);
  border-bottom: 3.5px solid #E6F2F7;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo img {
  min-width: 128px;
  max-height: 48px;
  margin-right: 32px;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: #004765;
  font-size: 1rem;
  letter-spacing: 0.015em;
  position: relative;
  padding: 3px 0;
  transition: color 0.16s;
}
.main-nav a:after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2.5px;
  background: #F2C14E;
  opacity: 0;
  border-radius: 1.5px;
  transition: opacity 0.22s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #2B9AC6;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  opacity: 1;
}

.cta-btn {
  background: #F2C14E;
  color: #004765;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.09rem;
  text-transform: uppercase;
  padding: 12px 32px;
  border-radius: 32px;
  letter-spacing: 0.09em;
  border: none;
  box-shadow: 0 1px 6px 0 rgba(40,64,99,0.10);
  transition: background 0.16s, color 0.16s, transform 0.14s, box-shadow 0.16s;
  margin-left: 18px;
  cursor: pointer;
  outline: none;
  display: inline-block;
  line-height: 1.1;
}
.cta-btn:hover, .cta-btn:focus {
  background: #004765;
  color: #F2C14E;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 7px 22px 0 rgba(40,64,99,0.21);
}

/* ===================== 5. MOBILE MENU ===================== */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: #004765;
  color: #fff;
  border-radius: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: none;
  margin-left: 18px;
  cursor: pointer;
  z-index: 1001;
  transition: background 0.16s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #2B9AC6;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  transform: translateX(100vw);
  transition: transform 0.34s cubic-bezier(0.53,0,0.07,1);
  box-shadow: -2px 0 28px 0 rgba(40,64,99,0.12);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #004765;
  padding: 0 8px;
  margin-bottom: 22px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #E6F2F7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
  color: #004765;
  letter-spacing: 0.03em;
  padding: 12px 0;
  border-bottom: 1.5px solid #E6F2F7;
  transition: color 0.19s, background 0.22s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #2B9AC6;
  background: #F2C14E;
}

/* MOBILE & TABLET NAVIGATION */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===================== 6. HERO & SECTIONS ===================== */
.hero {
  background:
    linear-gradient(100deg, #E6F2F7 0%, #F9FBFC 100%);
  border-top: 3.5px solid #2B9AC6;
  border-bottom: 3px solid #E6F2F7;
  padding: 62px 0 48px 0;
  margin-bottom: 0;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 14px;
}
.hero h1 {
  color: #004765;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.hero p {
  color: #2B9AC6;
  font-size: 1.17rem;
  font-weight: 500;
  margin-bottom: 22px;
}

/* ===================== 7. CARD/GRID/CONTENT ELEMENTS ===================== */
.case-card ul, .feature-item ul, .service-item ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 7px;
  margin-bottom: 7px;
  margin-left: 0;
  padding-left: 0;
}
.case-card li, .feature-item li, .service-item li {
  padding-left: 0;
}

.blog-post a {
  color: #2B9AC6;
  transition: color 0.19s, border 0.18s;
}
.blog-post a:hover,
.blog-post a:focus {
  color: #004765;
}

.blog-categories ul {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 9px;
  margin-bottom: 19px;
}
.blog-categories li a {
  padding: 6px 18px;
  border-radius: 17px;
  background: #E6F2F7;
  color: #004765;
  font-weight: 600;
  font-size: 0.98rem;
  transition: background 0.18s, color 0.18s;
  border: 2px solid #E6F2F7;
}
.blog-categories li a:hover, .blog-categories li a:focus {
  background: #2B9AC6;
  color: #fff;
  border-color: #F2C14E;
}

/* ===================== 8. FOOTER ===================== */
footer {
  background: #F9FBFC;
  color: #004765;
  border-top: 4.5px solid #004765;
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 1rem;
}
.footer-nav a {
  color: #2B9AC6;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1rem;
  transition: color 0.13s, border 0.17s;
  padding-bottom: 2px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F2C14E;
}
.footer-contact img {
  width: 20px;
  vertical-align: middle;
  margin-right: 8px;
}
.footer-brand img {
  min-width: 40px;
  max-height: 40px;
  margin-right: 6px;
}

/* ===================== 9. RESPONSIVENESS ===================== */
@media (max-width: 1025px) {
  .footer-content {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .hero, .section {
    padding-left: 0;
    padding-right: 0;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .case-card, .feature-item, .service-item, .blog-post {
    padding: 24px 14px 20px 14px;
    min-width: 180px;
  }
  .footer-content {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  header .container {
    height: auto;
    flex-direction: row;
  }
  .hero {
    padding: 38px 0 24px 0;
  }
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section {
    margin-bottom: 40px;
    padding: 28px 4px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .feature-grid, .service-list, .case-grid, .blog-highlights {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .client-brands {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
@media (max-width: 520px) {
  .container {
    padding-left: 2px;
    padding-right: 2px;
  }
  .content-wrapper,
  .blog-highlights,
  .feature-grid,
  .service-list,
  .case-grid {
    gap: 9px;
  }
  .cta-btn, .main-nav a, .footer-nav a {
    font-size: 0.92rem;
  }
  .footer-content {
    font-size: 0.95rem;
    padding-top: 10px;
    gap: 9px;
  }
}

/* ===================== 10. COOKIE CONSENT BANNER ===================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -1px 16px 0 rgba(40,64,99,0.15);
  z-index: 4000;
  padding: 22px 28px 20px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 1rem;
  border-top: 3px solid #2B9AC6;
  transition: transform 0.29s cubic-bezier(0.53,0,0.07,1), opacity 0.2s;
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__text {
  color: #234052;
  flex: 1 1 250px;
  line-height: 1.5;
  font-size: 1rem;
  margin-right: 22px;
}
.cookie-banner__actions {
  display: flex;
  gap: 15px;
}
.cookie-btn, .cookie-settings-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 21px;
  padding: 7px 22px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  margin: 0;
  transition: background 0.14s, color 0.16s;
  outline: none;
}
.cookie-btn.accept {
  background: #2B9AC6;
  color: #fff;
}
.cookie-btn.accept:hover {
  background: #004765;
  color: #F2C14E;
}
.cookie-btn.reject {
  background: #E6F2F7;
  color: #004765;
}
.cookie-btn.reject:hover {
  background: #004765;
  color: #F2C14E;
}
.cookie-settings-btn {
  background: #F2C14E;
  color: #004765;
}
.cookie-settings-btn:hover {
  background: #2B9AC6;
  color: #fff;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 6px 12px 9px;
    gap: 7px;
    font-size: 15px;
  }
  .cookie-banner__actions {
    gap: 9px;
  }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,32,51,0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.28s;
}
.cookie-modal {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(40,64,99,0.16);
  padding: 36px 34px 24px 34px;
  width: 90vw;
  max-width: 480px;
  position: relative;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeInModal 0.33s cubic-bezier(0.44, 0.13, 0.27, 1);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(38px) scale(0.95); }
  to { opacity: 1; transform: none; }
}
.cookie-modal h3 {
  font-size: 1.25rem;
  color: #004765;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 13px;
}
.cookie-category label {
  font-size: 1rem;
  color: #234052;
  font-weight: 500;
}
.cookie-modal-toggle {
  width: 44px;
  height: 24px;
  background: #E6F2F7;
  border-radius: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  margin-left: 4px;
  transition: background 0.17s;
}
.cookie-modal-toggle[aria-checked="true"] {
  background: #2B9AC6;
}
.cookie-modal-toggle .knob {
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 12px;
  position: absolute;
  left: 2px; transition: left 0.22s;
}
.cookie-modal-toggle[aria-checked="true"] .knob {
  left: 22px;
  background: #F2C14E;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 18px; right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #2B9AC6;
  border-radius: 10px;
  cursor: pointer;
  z-index: 1;
  transition: background 0.14s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: #E6F2F7;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  justify-content: flex-end;
}
.cookie-modal-actions .cookie-btn {
  min-width: 100px;
}

/* ===================== 11. GENERAL ANIMATIONS & MICRO-INTERACTIONS ===================== */
a, button, .cta-btn, .card, .feature-item, .service-item, .case-card, .blog-post, .testimonial-card {
  transition-timing-function: cubic-bezier(0.44, 0.13, 0.27, 1);
  transition-duration: 0.20s;
}

.card, .case-card, .feature-item, .service-item, .testimonial-card, .blog-post {
  transition-property: box-shadow, border, background, transform;
  will-change: transform;
}

.cta-btn:active {
  transform: scale(0.97);
  transition-duration: 0.11s;
}
.testimonial-card:active,
.card:active,
.feature-item:active,
.service-item:active {
  transform: scale(0.98);
}

/* ===================== 12. MISCELLANEOUS & UTILITY ===================== */
meter, progress {
  appearance: none;
  outline: none;
}
::-webkit-scrollbar { width: 8px; background: #E6F2F7; }
::-webkit-scrollbar-thumb { background: #2B9AC6; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #F2C14E; }

.text-image-section img, .feature-item img, .service-item img, .case-card img, .footer-contact img {
  border-radius: 12px;
  background: #E6F2F7;
  padding: 6px;
}

/* ===================== 13. ACCESSIBILITY ===================== */
[tabindex]:focus, a:focus-visible, button:focus-visible {
  outline: 2px solid #F2C14E !important;
  outline-offset: 1.5px;
  border-radius: 4px;
}

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

/*********************************************************************
* GEOMETRIC STRUCTURED VISUAL ELEMENTS
*********************************************************************/
/* Geometric angular separators for cards/sections (optional/decoration) */
.section:before {
  content: "";
  display: block;
  position: absolute;
  left: -38px;
  top: 0; height: 100%; width: 12px;
  background: linear-gradient(180deg,#E6F2F7 70%,transparent 100%);
  border-radius: 0 19px 19px 0;
  z-index: 0;
}
.section:nth-child(2n):before {
  left: auto; right: -38px;
  border-radius: 19px 0 0 19px;
}
@media (max-width: 768px) {
  .section:before { display: none; }
}

/* For cards with accent border triangle (optional, for strong cards/highlights) */
.card-accent {
  position: relative;
  overflow: visible;
}
.card-accent:before {
  content: "";
  position: absolute;
  top: -9px; right: -9px;
  border-width: 0 0 30px 30px;
  border-style: solid;
  border-color: transparent transparent #F2C14E transparent;
  z-index: 1;
  border-radius: 0 0 12px 0;
}

/* ===================== END OF FILE ===================== */
