/* 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}

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

/* CSS VARIABLES */
:root {
  --color-primary: #162634;
  --color-secondary: #A5ADB7;
  --color-accent: #F7C873;
  --color-bg: #F4F6FA;
  --color-bg-alt: #fff;
  --color-text: #162634;
  --color-text-light: #fff;
  --color-card: #fff;
  --color-divider: #E0E4EA;
  --shadow-main: 0 3px 24px 0 rgba(22,38,52,0.09);
  --shadow-card: 0 2px 8px 0 rgba(22,38,52,0.06);
  --radius: 16px;

  --font-display: 'Roboto Slab', serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--color-bg);
}
body {
  color: var(--color-text);
  font-family: var(--font-body);
  background: var(--color-bg);
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
}

/* HEADER */
header {
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-main);
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 24px;
}
.logo img {
  height: 42px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  font-family: var(--font-display);
}
.main-nav a {
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0 8px;
  color: var(--color-primary);
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-accent);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85em 2.3em;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-card);
  border: none;
  display: inline-block;
  cursor: pointer;
  letter-spacing: 0.05em;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 4px 24px 0 rgba(22,38,52,0.14);
  transform: translateY(-2px) scale(1.03);
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 2.1rem;
  background: none;
  color: var(--color-primary);
  z-index: 301;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s, transform 0.2s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: var(--color-accent);
  transform: scale(1.1);
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  color: var(--color-accent);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(0.65,0,0.35,1);
  box-shadow: 0 0 0 240px rgba(22,38,52,0.28);
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--color-accent);
  font-size: 2.25rem;
  border: none;
  align-self: flex-end;
  margin: 32px 32px 0 0;
  cursor: pointer;
  transition: color 0.18s, transform 0.15s;
  z-index: 10001;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #fff;
  transform: scale(1.14);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 64px 0 0 40px;
}
.mobile-nav a {
  color: var(--color-accent);
  font-size: 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.18s, color 0.2s;
  padding: 3px 0;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  border-bottom: 2px solid var(--color-accent);
  color: #fff;
}

/* LAYOUT: SECTIONS & WRAPPERS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.text-section {
  margin-bottom: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 300px;
  transition: box-shadow 0.18s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 36px rgba(22,38,52,0.13);
  transform: translateY(-3px) scale(1.012);
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

/**** HERO SECTION ****/
.hero {
  background: linear-gradient(90deg, #EAEEF2 0%, #fff 100%);
  box-shadow: 0 3px 32px rgba(247,200,115,0.04);
  padding: 56px 0 44px 0;
}
.hero .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  line-height: 1.08;
}
.hero p {
  font-size: 1.2rem;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 16px;
  max-width: 44rem;
}

/* FEATURES SECTION */
.features {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 60px;
  padding: 40px 0;
}
.features .container {
  gap: 36px;
}
.features h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 34px;
  color: var(--color-primary);
  letter-spacing: -1px;
}
.features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.features ul li {
  flex: 1 1 260px;
  min-width: 206px;
  background: #F8F9FB;
  border-radius: var(--radius);
  box-shadow: 0 1px 9px rgba(22,38,52,0.06);
  padding: 32px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border-left: 8px solid var(--color-accent);
  transition: box-shadow 0.17s, transform 0.17s;
}
.features ul li:hover,
.features ul li:focus-within {
  box-shadow: 0 4px 24px rgba(22,38,52,0.13);
  transform: scale(1.03);
}
.features ul li img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
}
.features ul li strong {
  font-size: 1.15rem;
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
}
.features ul li p {
  color: var(--color-secondary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
}

/* SERVICES SECTION */
.services {
  margin-bottom: 60px;
  padding: 40px 0;
}
.services h1, .services h2 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 24px;
}
.services .content-wrapper {
  flex-direction: column;
  gap: 26px;
}
.services ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.services ul li {
  background: #F8F9FB;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px 18px;
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  transition: box-shadow 0.17s, transform 0.16s;
  border-left: 6px solid var(--color-accent);
}
.services ul li strong {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
}
.services ul li span {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  margin-left: 12px;
}
.services ul li:hover {
  box-shadow: 0 2px 16px rgba(22,38,52,0.09);
  transform: scale(1.022);
}

/* TESTIMONIALS SECTION */
.testimonials {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 60px;
  padding: 40px 0;
}
.testimonials .container {
  gap: 24px;
}
.testimonials h2 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 36px;
}
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px 36px 22px 36px;
  background: #F4F6FA;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(22,38,52,0.05);
  border-left: 6px solid var(--color-accent);
  min-width: 240px;
  max-width: 420px;
  color: #222;
  margin-bottom: 0;
  font-size: 1.08rem;
  transition: box-shadow 0.16s, transform 0.17s;
}
.testimonial-card p {
  font-style: italic;
  font-family: var(--font-body);
  font-size: 1.07rem;
  color: #162634;
  margin-bottom: 0;
}
.testimonial-card strong {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(22,38,52,0.15);
  transform: translateY(-3px) scale(1.028);
}

/* CTA SECTION */
.cta {
  background: var(--color-primary);
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 36px 22px;
  box-shadow: 0 4px 24px #1626340a;
}
.cta .content-wrapper {
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cta h3 {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.cta .btn-primary {
  margin-top: 6px;
  font-size: 1.05rem;
}

/* GENERIC TEXT SECTION */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.17rem;
  margin-bottom: 10px;
}
p {
  margin-bottom: 14px;
  font-size: 1.05rem;
  color: var(--color-text);
}
ul, ol {
  margin-bottom: 19px;
  padding-left: 22px;
  font-size: 1.05rem;
}
strong {
  font-weight: 700;
}

/* TEXT LINKS */
a {
  color: var(--color-primary);
  transition: color 0.18s;
}
a:hover, a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

/* FORMS & CONTACT */
.contact .text-section {
  background: #fff;
  padding: 30px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.contact .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.contact ul {
  margin-bottom: 7px;
}
.contact ul li {
  font-size: 1.02rem;
  margin-bottom: 2px;
}
.contact a {
  color: var(--color-accent);
  font-weight: 700;
}

/* FOOTER */
footer {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: 38px 0 22px 0;
  margin-top: 48px;
}
footer .container {
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  gap: 26px;
  margin-bottom: 18px;
}
.footer-nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.01rem;
  transition: color 0.2s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #fff;
}
.footer-info {
  color: var(--color-secondary);
  font-size: 1.03rem;
}
.footer-info p{
  color: #fff;
}
@media (max-width: 560px) {
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
  .footer-info {
    font-size: 0.93rem;
  }
}

/* SPACING & FLEX LAYOUT PATTERNS (MANDATORY) */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  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-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* COOKIES CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  min-height: 54px;
  background: var(--color-primary);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 30000;
  box-shadow: 0 -2px 32px rgba(16,26,38,0.19);
  padding: 18px 18px;
  font-size: 1.01rem;
  font-family: var(--font-body);
  animation: cookieBannerIn 0.65s cubic-bezier(0.55,0,0.4,1);
}
@keyframes cookieBannerIn {
  0% { transform: translateY(88px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btn {
  margin-left: 12px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.18s, transform 0.15s;
  font-size: 1.01rem;
}
.cookie-banner .cookie-btn:hover {
  background: #fff1d7;
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.04);
}
.cookie-banner .cookie-settings-btn {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  margin-left: 8px;
  padding: 7px 18px;
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* COOKIE MODAL POPUP */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(22,38,52,0.48);
  z-index: 40000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn 0.33s cubic-bezier(0.55,0,0.4,1);
}
@keyframes cookieModalIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  box-shadow: 0 8px 48px rgba(22,38,52,0.26);
  border-radius: var(--radius);
  padding: 34px 32px 26px 32px;
  min-width: 320px;
  max-width: 96vw;
  max-height: 98vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  font-family: var(--font-body);
  animation: cookiePopupIn 0.33s cubic-bezier(0.5,0,0.6,1);
}
@keyframes cookiePopupIn {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 7px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.03rem;
  margin-bottom: 9px;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #DDD;
  border-radius: 18px;
  position: relative;
  outline: none;
  transition: background 0.20s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--color-accent);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s;
}
.cookie-toggle:checked:before {
  left: 19px;
}
.cookie-modal .cookie-modal-btnrow {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .cookie-btn {
  border: none;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  border-radius: var(--radius);
  padding: 8px 22px;
  font-family: var(--font-display);             
  font-size: 1.01rem;
  transition: background 0.19s, color 0.17s, transform 0.15s;
  cursor: pointer;
}
.cookie-modal .cookie-btn:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}
.cookie-modal .cookie-btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.cookie-modal .cookie-btn-secondary:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

/* --- FINAL LAYOUT TWEAKS --- */
@media (max-width: 1020px) {
  .main-nav {
    gap: 16px;
    font-size: 1rem;
  }
  .footer-nav {
    gap: 12px;
  }
}
@media (max-width: 860px) {
  .features ul, .testimonials .content-wrapper {
    flex-direction: column;
  }
  .features ul li, .testimonial-card {
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
  }
  header .container {
    flex-direction: row;
    height: auto;
    padding: 18px 14px 14px 14px;
    gap: 12px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .btn-primary {
    font-size: 0.97rem;
    padding: 0.75em 1.7em;
  }
  .section, .features, .services, .testimonials, .cta {
    padding: 24px 4vw;
  }
  .hero {
    padding: 30px 0 28px 0;
  }
  .content-wrapper, .card-container, .content-grid, .features ul {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 520px) {
  .hero h1 {
    font-size: 1.36rem;
  }
  h1 { font-size: 1.18rem; }
  h2 { font-size: 1.07rem; }
  .section, .features, .services, .testimonials, .cta {
    padding: 18px 0 18px 0;
  }
  .card, .feature-item {
    padding: 18px 9px;
  }
  .testimonial-card {
    padding: 14px 9px;
  }
  .footer-info {
    font-size: 0.85rem;
  }
}

/* VISUAL EFFECTS & BOLD GEOMETRIC STYLES */
.card, .feature-item, .testimonial-card, .features ul li, .services ul li {
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border-bottom: 4px solid var(--color-accent);
}

/* MICRO-INTERACTIONS */
.card, .feature-item, .testimonial-card, .features ul li, .services ul li {
  transition: box-shadow 0.19s, transform 0.15s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover, .features ul li:hover, .services ul li:hover {
  box-shadow: 0 6px 32px rgba(22,38,52,0.13);
  transform: translateY(-2px) scale(1.016);
}

/* MISC: ACCESSIBILITY */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

/* Hide scrollbars in mobile menu */
.mobile-menu {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

/* END */
