/* === 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  background: #181f27;
  color: #F7F7F9;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #F4A261;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E9C46A;
  outline: none;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}
strong {
  font-weight: bold;
  color: #F4A261;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #E9C46A;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
h1 { font-size: 2.5rem; line-height: 1.2; }
h2 { font-size: 2rem; line-height: 1.3; }
h3 { font-size: 1.5rem; line-height: 1.35; }
h4 { font-size: 1.25rem; }

p, li {
  font-size: 1rem;
  color: #ECEFF4;
}

/* === CONTAINER & LAYOUT === */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #212b36;
  border-radius: 18px;
  box-shadow: 0 4px 28px 0 rgba(38,70,83,0.06), 0 1.5px 10px 0 rgba(244,162,97,0.07);
  position: relative;
}
main {
  flex: 1;
  padding-top: 40px;
}

/* === HEADER & NAVIGATION === */
header {
  background: #1B232B;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 16px 0 rgba(38,70,83,0.11);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 32px;
}
header nav {
  display: flex;
  gap: 21px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #E9C46A;
  padding: 8px 8px 7px 8px;
  position: relative;
  transition: color 0.23s;
}
header nav a:after {
  content: "";
  display: block;
  margin-top: 3px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg,#F4A261 0%,#E9C46A 100%);
  transition: width .2s;
  border-radius: 2px;
}
header nav a:hover,
header nav a:focus {
  color: #F4A261;
}
header nav a:hover:after, header nav a:focus:after {
  width: 100%;
}
.primary-cta, .secondary-cta {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  padding: 12px 30px;
  border-radius: 25px;
  cursor: pointer;
  border: none;
  transition: background 0.23s, color 0.23s, box-shadow 0.25s;
  box-shadow: 0 2px 10px rgba(32,70,83,0.09);
  text-shadow: 0 0 8px rgba(39,70,83,0.33);
}
.primary-cta {
  background: linear-gradient(90deg, #F4A261 62%, #E9C46A 100%);
  color: #1B232B;
  border: 2px solid #E9C46A;
}
.primary-cta:hover, .primary-cta:focus {
  background: #E9C46A;
  color: #264653;
  box-shadow: 0 4px 20px #E9C46A48;
  outline: none;
}
.secondary-cta {
  background: transparent;
  color: #E9C46A;
  border: 2px solid #F4A261;
}
.secondary-cta:hover, .secondary-cta:focus {
  background: #212b36;
  color: #F4A261;
  border-color: #E9C46A;
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: none;
  color: #E9C46A;
  font-size: 2rem;
  border: none;
  margin-left: 18px;
  cursor: pointer;
  z-index: 130;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #F4A261;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(27,35,43, 0.98);
  z-index: 120;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.75,-0.01,.4,1.01);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100vw;
  height: 100vh;
  padding: 40px 28px 20px 28px;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #F4A261;
  font-size: 2.4rem;
  margin-bottom: 26px;
  cursor: pointer;
  transition: color .2s;
}
.mobile-menu-close:focus {
  outline: 2px solid #F4A261;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.mobile-nav a {
  color: #E9C46A;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 15px 5px 15px 0px;
  border-radius: 0 10px 10px 0;
  transition: background 0.2s, color 0.2s;
  width: 100%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #2d3846;
  color: #F4A261;
  outline: none;
}
@media (max-width: 1040px) {
  header .container nav {
    display: none;
  }
  .primary-cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1041px) {
  .mobile-menu {
    display: none !important;
  }
}

/* === MAIN LAYOUTS === */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #212b36;
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 2px 8px 0 rgba(233,196,106,0.05);
  min-width: 200px;
  flex: 1 1 240px;
  max-width: 360px;
  margin-bottom: 20px;
}
.feature-item img {
  width: 36px;
  filter: drop-shadow(0 2px 10px #F4A26188);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .content-wrapper, .feature-grid, .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

/* === CARDS, PROJECTS, TEAM === */
.card-container, .style-guide-list, .project-list, .team-list, .featured-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card, .style-example, .project-item, .team-member, .article, .palette-list {
  background: #232c38;
  box-shadow: 0 2px 10px 0 rgba(38,70,83,0.12);
  border-radius: 16px;
  padding: 24px 18px;
  flex: 1 1 300px;
  min-width: 240px;
  max-width: 350px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.23s, transform 0.15s;
}
.card:hover, .style-example:hover, .project-item:hover, .team-member:hover {
  box-shadow: 0 5px 32px #F4A26155, 0 2px 16px #E9C46A33;
  transform: translateY(-2px) scale(1.012);
}

/* === TESTIMONIALS === */
.testimonial-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  color: #264653;
  border-radius: 18px;
  padding: 24px 22px 20px 22px;
  box-shadow: 0 2px 12px 0 rgba(38,70,83,0.11);
  min-width: 260px;
  max-width: 420px;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #264653;
  font-size: 1.06rem;
  font-style: italic;
}
.testimonial-card strong {
  color: #1B232B;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* === BLOGG & CATEGORIES === */
.featured-articles, .category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.featured-articles article {
  background: #232c38;
  border-radius: 14px;
  padding: 18px 16px;
  min-width: 260px;
  box-shadow: 0 2px 8px 0 #E9C46A25;
  flex: 1 1 290px;
  margin-bottom: 20px;
}
.featured-articles article h2 {
  font-size: 1.1rem;
  color: #F4A261;
  margin-bottom: 9px;
}
.featured-articles article a {
  color: #F4A261;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s;
}
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 20px 0;
}
.category-list li {
  background: #222a31;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 1rem;
  color: #F4A261;
  margin-bottom: 10px;
  list-style: none;
  transition: background 0.18s;
}
.category-list li:hover {
  background: #E9C46A;
  color: #264653;
}

/* === THANK YOU PAGE NAVIGATION === */
.thank-you-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

/* === FOOTER === */
footer {
  background: #1B232B;
  margin-top: 40px;
  padding: 30px 0 0 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 25px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
footer nav a {
  color: #E9C46A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #F4A261;
  outline: none;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact p, .footer-contact a {
  font-size: 0.97rem;
  color: #dde1e6;
}
.footer-contact img {
  vertical-align: middle;
  width: 18px;
  margin-right: 10px;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
    padding-bottom: 15px;
  }
}

/* === COOKIE BANNER & MODAL === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #222a31;
  color: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 18px;
  box-shadow: 0 -2px 18px #E9C46A45;
  gap: 20px;
  animation: cookieSlideIn 0.34s cubic-bezier(.21,.74,.38,1.09);
}
@keyframes cookieSlideIn {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner-text {
  flex: 1 1 60%;
  color: #fff;
  font-size: 1rem;
  margin-right: 10px;
}
.cookie-btns {
  display: flex;
  gap: 14px;
}
.cookie-btn, .cookie-settings-btn {
  padding: 9px 18px;
  border-radius: 22px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow .2s;
  margin: 0 0 0 0;
}
.cookie-btn.accept {
  background: #F4A261;
  color: #1B232B;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #E9C46A;
  color: #222a31;
  box-shadow: 0 2px 12px #F4A26188;
}
.cookie-btn.reject {
  background: #fff;
  color: #264653;
  border: 1.5px solid #F4A261;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #F4A261;
  color: #1B232B;
  border: 1.5px solid #E9C46A;
}
.cookie-settings-btn {
  background: transparent;
  color: #F4A261;
  border: 1.5px solid #F4A261;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #F4A261;
  color: #222a31;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
    padding: 18px 10px;
  }
  .cookie-banner-text {
    margin-right: 0;
  }
  .cookie-btns {
    width: 100%;
    gap: 8px;
  }
}

/* === COOKIE MODAL === */
.cookie-modal {
  position: fixed;
  z-index: 10000;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(20,27,37,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  animation: cookieSlideIn .32s;
}
.cookie-modal-content {
  background: #1B232B;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 40px #F4A2612a, 0 2px 16px #232c3828;
  max-width: 410px;
  width: 95vw;
  padding: 46px 28px 33px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal-content h2 {
  color: #E9C46A;
  font-size: 1.32rem;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex; flex-direction: column; gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 6px;
}
.cookie-category label {
  font-size: 1.02rem;
}
.cookie-toggle {
  width: 38px; height: 22px;
  border-radius: 20px;
  background: #2b3842;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.18s;
  border: 1.5px solid #E9C46A;
  position: relative;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle span {
  width: 18px; height: 18px;
  background: #E9C46A;
  border-radius: 50%;
  position: absolute;
  left: 3px;
  top: 1.2px;
  transition: left 0.2s;
}
.cookie-toggle input:checked + span {
  left: 17px;
  background: #F4A261;
}
.cookie-modal .cookie-btns {
  margin-top: 10px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  color: #E9C46A;
  background: none;
  border: none;
  font-size: 1.55rem;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #F4A261;
  outline: none;
}

@media (max-width:480px) {
  .cookie-modal-content { padding: 30px 7vw 18px 7vw; }
}

/* === RESPONSIVE LAYOUTS === */
@media (max-width: 900px) {
  .container {
    padding: 0 8px;
    max-width: 100vw;
  }
  main, .section { padding: 24px 6px; }
  header .container {
    gap: 11px;
    padding: 0 8px;
  }
  .section {
    margin-bottom: 38px;
  }
}

@media (max-width:768px) {
  h1 { font-size: 1.83rem; }
  h2 { font-size: 1.34rem; }
  .content-wrapper, .feature-grid, .testimonial-section {
    gap: 17px;
  }
  .card, .project-item, .team-member {
    min-width: 85vw;
    max-width: 100vw;
  }
  .feature-item {
    min-width: 85vw;
    max-width: 100vw;
  }
}

/* === VISUAL TECH FUTURISTIC ACCENT === */
.section {
  border: 1.8px solid #31435C;
  box-shadow: 0 4px 32px 0 #26465321, 0 0px 9px #F4A26109;
  position: relative;
}
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: -5px; left: 18px; right: 18px;
  height: 4px;
  border-radius: 3px;
  background: linear-gradient(90deg,#F4A261 0%,#E9C46A 82%);
  opacity: 0.11;
  pointer-events: none;
  z-index: 2;
}

.feature-item, .card, .team-member, .project-item, .testimonial-card, .style-example {
  border: 2px solid #2b3842;
  position: relative;
}
.feature-item:after, .card:after, .team-member:after, .project-item:after, .testimonial-card:after, .style-example:after {
  content: '';
  display: block;
  position: absolute;
  top: 9px; right: 12px; width: 19px; height: 5px;
  background: linear-gradient(90deg,#F4A261 40%, #E9C46A 90%);
  border-radius: 4px;
  opacity: 0.13;
}

/* Neon glow for tech highlights */
h1, h2, .primary-cta {
  text-shadow: 0 2px 10px #E9C46A75, 0 0px 18px #F4A26111;
}
.feature-item h3, .testimonial-card strong, .card h3 {
  text-shadow: 0 1px 5px #F4A26130;
}
/* Slight glow accent on active, hover for accent buttons */
.primary-cta:active {
  box-shadow: 0 0 10px #F4A26180, 0 0px 23px #E9C46A40;
}

/* === MICRO-INTERACTIONS === */
.card, .project-item, .team-member, .feature-item {
  transition: box-shadow 0.22s, transform 0.18s;
}
.primary-cta, .secondary-cta {
  transition: background 0.19s, color 0.19s, box-shadow 0.18s;
}

/* === FORM ELEMENTS (IF ANY) === */
input, textarea, select {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  border: 1.5px solid #31435C;
  background: #222a31;
  color: #F4A261;
  padding: 10px;
  margin-bottom: 17px;
  outline: none;
  transition: border-color .18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #F4A261;
}

button, input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 18px;
  transition: background 0.17s, color 0.17s, box-shadow 0.19s;
}

/* === ACCESSIBILITY & FOCUS === */
a:focus, button:focus, .secondary-cta:focus, .primary-cta:focus {
  outline: 2.5px solid #E9C46A;
  outline-offset: 2px;
}

/* === UTILITIES === */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mt-6 { margin-top: 6px !important; }

/* === Hide elements for accessibility === */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* === ENSURE GAP/MARGIN BETWEEN CARDS === */
.card-container > *, .project-list > *, .team-list > *, .testimonial-section > *, .feature-grid > *, .featured-articles > *, .style-guide-list > * {
  margin-bottom: 20px;
}

/* === Ensure NO overlapping === */
body * {
  box-sizing: border-box;
}

/* END OF STYLE.CSS */
