/* === 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, 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 {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  height: 100%;
  line-height: 1.6;
  background: #FFF7F0; /* Soft warm background */
  color: #2B2A27; /* Slightly dark for readability */
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: 1em;
}
button {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

/* === FONT IMPORTS === */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500|Roboto:400,500,700&display=swap');

/* === COLOR VARIABLES === */
:root {
  --color-primary: #22375B;
  --color-secondary: #35C9DD;
  --color-accent: #F4F7FB;
  --color-warm-bg: #FFF7F0;
  --color-warm-light: #FFEAD2;
  --color-warm-dark: #A85B22;
  --color-text: #2B2A27;
  --color-card-bg: #FFF9F4;
  --color-shadow: rgba(40,32,15,0.06);
  --color-btn-primary: #FF9642;
  --color-btn-primary-hover: #E67315;
  --color-btn-secondary: #FFD091;
  --color-btn-secondary-hover: #FFB663;
  --color-border: #FFE2C5;
  --color-star: #F4B400;
  --color-header-bg: #FFF7F0;
  --color-footer-bg: #F4F7FB;
  --color-link-hover: #E67315;
}

/* === LAYOUT CONTAINER === */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}
.flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}
h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 500;
}
p, li, ul, ol, blockquote {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-text);
}
strong {
  font-weight: 700;
}
blockquote {
  font-style: italic;
  color: var(--color-warm-dark);
  border-left: 4px solid var(--color-btn-primary);
  padding-left: 18px;
  margin-bottom: 12px;
}

/* --- Responsive typography --- */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* === SECTION PATTERNS === */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: transparent;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.features-grid, .blog-grid, .card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-grid, .card-container {
  margin-bottom: 24px;
}
.feature-item, .blog-item {
  background: var(--color-card-bg);
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 var(--color-shadow);
  padding: 28px 24px;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 250px;
  max-width: 370px;
  margin-bottom: 20px;
  transition: transform 0.18s, box-shadow 0.18s;
  border: 1px solid var(--color-border);
}
.feature-item img, .feature-item svg {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}
.feature-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 28px 0 rgba(255,150,66,0.10);
  border-color: var(--color-btn-primary);
}

.card {
  background: var(--color-card-bg);
  border-radius: 18px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 4px 24px var(--color-shadow);
  transform: translateY(-2px);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}
.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;
}
.text-section ul, .application-examples ul, .categories-list ul, .project-tech-list ul, .text-section li {
  margin-left: 1.2em;
  margin-bottom: 6px;
  list-style: disc inside;
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(120deg, #FFF7F0 70%, #FFEAD2 100%);
  padding: 64px 0 56px 0;
}
.hero h1, .hero p {
  margin-bottom: 18px;
}
.hero .btn-primary {
  margin-top: 16px;
}

/* === BUTTONS === */
.btn-primary {
  background: var(--color-btn-primary);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  border: none;
  border-radius: 30px;
  padding: 13px 36px;
  box-shadow: 0 2px 12px 0 var(--color-shadow);
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
  display: inline-block;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-btn-primary-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(255, 150, 66, 0.14);
  text-decoration: none;
  color: #fff;
  outline: none;
}
.btn-secondary {
  background: var(--color-btn-secondary);
  color: var(--color-warm-dark);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 30px;
  padding: 12px 28px;
  transition: background 0.18s, color 0.18s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-btn-secondary-hover);
  color: var(--color-primary);
  outline: none;
}

/* === NAVIGATION === */
header {
  background: var(--color-header-bg);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 70;
  box-shadow: 0 4px 32px 0 rgba(240, 125, 30, 0.02);
}
header .container {
  align-items: center;
  justify-content: space-between;
  display: flex;
  flex-wrap: wrap;
  min-height: 70px;
}
header img {
  height: 44px;
  margin-right: 16px;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  border-radius: 30px;
  padding: 7px 16px;
  transition: background 0.13s, color 0.13s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-btn-secondary);
  color: var(--color-link-hover);
}
.main-nav .btn-primary {
  margin-left: 12px;
  margin-bottom: 0;
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-btn-primary);
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  padding: 6px 15px 8px 15px;
  transition: background 0.12s, box-shadow 0.12s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-btn-primary-hover);
}

/* === MOBILE MENU === */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,247,240,0.98);
  z-index: 150;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(0.65, 0, 0.35, 1);
  flex-direction: column;
  justify-content: start;
  align-items: flex-start;
  padding: 0 0 0 0;
}
.mobile-menu.active {
  display: flex !important;
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-btn-secondary);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  font-size: 2.3rem;
  width: 45px;
  height: 45px;
  align-self: flex-end;
  margin: 22px 24px 0 0;
  transition: background 0.12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-btn-secondary-hover);
  color: var(--color-link-hover);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  margin-top: 34px;
  padding-left: 36px;
  padding-top: 18px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-size: 1.18rem;
  font-weight: 500;
  border-radius: 30px;
  padding: 13px 18px 13px 0;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-btn-secondary);
  color: var(--color-link-hover);
}

/* --- Hide nav for mobile, show burger --- */
@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 991px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* === TESTIMONIALS === */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 18px;
  padding: 20px 26px;
  margin-bottom: 20px;
  box-shadow: 0 2px 20px 0 var(--color-shadow);
  border: 1px solid var(--color-border);
}
.testimonial-card blockquote {
  flex: 2 1 0;
  margin: 0 0 0 0;
  color: var(--color-warm-dark);
  font-size: 1.08rem;
  font-style: italic;
}
.testimonial-meta {
  flex: 1 1 0;
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stars {
  color: var(--color-star);
  font-size: 1.15em;
  margin-top: 3px;
}

/* === BLOG CARDS === */
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.blog-item {
  background: var(--color-card-bg);
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 var(--color-shadow);
  padding: 28px 24px;
  min-width: 250px;
  max-width: 360px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  transition: transform 0.13s, box-shadow 0.13s;
  border: 1px solid var(--color-border);
}
.blog-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 28px 0 rgba(255,150,66,0.10);
  border-color: var(--color-btn-primary);
}

.categories-list {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.categories-list strong { font-weight: 700; }
.categories-list ul { display: flex; gap: 11px; }
.categories-list li {
  background: var(--color-btn-secondary);
  color: var(--color-primary);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.98rem;
}


/* === FOOTER === */
footer {
  background: var(--color-footer-bg);
  padding: 48px 0 20px 0;
  margin-top: 32px;
  border-top: 1px solid var(--color-border);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-primary);
  font-size: 1rem;
  padding: 3px 0;
  transition: color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-btn-primary);
}
.footer-contact {
  margin-top: 18px;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-warm-dark);
  font-size: 0.99rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-contact img {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-right: 8px;
  opacity: 0.8;
}

/* === CONTACT DETAILS === */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin: 20px 0;
}
.contact-details div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.contact-details img {
  width: 22px;
  height: 22px;
}

/* === LEGAL PAGES === */
.legal .content-wrapper {
  background: var(--color-accent);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 2px 16px var(--color-shadow);
}

/* === APPLICATION EXAMPLES AND TECH LIST === */
.application-examples, .project-tech-list {
  background: var(--color-btn-secondary);
  padding: 14px 18px;
  border-radius: 16px;
  margin-top: 18px;
}
.application-examples strong, .project-tech-list strong {
  color: var(--color-warm-dark);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 990px) {
  .container { padding: 0 12px; }
  .footer-links { flex-direction: column; gap: 10px; }
}
@media (max-width: 868px) {
  .features-grid, .blog-grid, .card-container, .content-grid {
    gap: 14px;
  }
  .feature-item, .blog-item, .card {
    min-width: 180px;
    max-width: 100%;
    flex: 1 1 100%;
  }
}
@media (max-width: 768px) {
  .features-grid, .blog-grid, .card-container, .content-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .feature-item, .blog-item, .testimonial-card, .card {
    max-width: 100%;
    width: 100%;
  }
  .testimonial-card { flex-direction: column; align-items: flex-start; }
  .footer-links, .footer-nav { flex-direction: column; gap: 10px; }
  .footer-contact { margin-top: 10px; }
  .text-image-section { flex-direction: column; gap: 18px; }
  .hero { padding: 34px 0 26px 0; }
  .section { padding: 25px 8px; }
  section { padding: 25px 0 25px 0; }
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  z-index: 200;
  bottom: 0;
  left: 0; right: 0;
  background: #fff;
  color: var(--color-text);
  border-top: 3px solid var(--color-btn-primary);
  box-shadow: 0 -2px 16px rgba(70,30,1,0.07);
  padding: 22px 24px 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  animation: cookieBannerIn 0.5s cubic-bezier(0.48,1.65,0.41,0.8);
}
@keyframes cookieBannerIn {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  flex: 1 1 60%;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-banner-btns {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary {
  font-size: 0.98rem;
  padding: 10px 23px;
  min-width: 120px;
}
.cookie-banner .btn-cookie-settings {
  background: transparent;
  color: var(--color-btn-primary-hover);
  border: 2px solid var(--color-btn-primary);
  font-family: 'Montserrat',Arial,sans-serif;
  border-radius: 30px;
  padding: 10px 23px;
  transition: background 0.16s, color 0.16s;
}
.cookie-banner .btn-cookie-settings:hover,
.cookie-banner .btn-cookie-settings:focus {
  background: var(--color-btn-primary);
  color: #fff;
}

/* === COOKIE MODAL === */
.cookie-modal-overlay {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(30, 16, 1, 0.36);
  z-index: 250;
  display: flex;
  align-items: center; justify-content: center;
  animation: cookieModalIn 0.4s cubic-bezier(0.57,1.65,0.41,0.8);
}
@keyframes cookieModalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  max-width: 440px;
  width: 96vw;
  padding: 28px 32px 26px 32px;
  box-shadow: 0 2px 22px rgba(130, 30, 1, 0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 260;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-modal-close {
  position: absolute;
  top: 10px; right: 12px;
  font-size: 1.5rem;
  background: var(--color-btn-secondary);
  border: none;
  border-radius: 50%;
  color: var(--color-primary);
  width: 35px; height: 35px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-btn-secondary-hover); color: var(--color-link-hover);
}
.cookie-modal h2 {
  font-family: 'Montserrat',Arial,sans-serif;
  color: var(--color-btn-primary);
  font-size: 1.38rem;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.cookie-category label {
  flex: 1;
  font-size: 1.02rem;
  color: var(--color-text);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-btn-primary);
  width: 18px; height: 18px;
  border-radius: 6px;
}
.cookie-category .always-on {
  color: #707070;
  font-style: italic;
  font-size: 0.98rem;
  margin-left: 4px;
}
.cookie-modal .btn-primary,
.cookie-modal .btn-secondary {
  width: 100%;
  margin-bottom: 7px;
}

/* === MISCELLANEOUS === */
.text-section { font-size: 1.04rem; color: var(--color-text); }
.text-section strong { color: var(--color-warm-dark); }
.application-examples, .project-tech-list { font-size: 1rem; }

/* --- Micro-interactions --- */
a, .btn-primary, .btn-secondary, .cookie-banner .btn-cookie-settings {
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.14s;
}

/* === Z-INDEX STACKING === */
header { z-index: 70; }
.mobile-menu { z-index: 150; }
.cookie-banner { z-index: 200; }
.cookie-modal-overlay { z-index: 250; }

/* ===== UTILITY CLASSES FOR SPACING ===== */
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-24 { margin-top: 24px !important; }
.pb-20 { padding-bottom: 20px !important; }
.pt-20 { padding-top: 20px !important; }

/* === END === */
