/* 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F7F9F9;
  color: #222;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 800;
  color: #1C2833;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
p, ul, ol {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 12px;
}
ul, ol {
  padding-left: 22px;
}

.container {
  width: 100%;
  max-width: 1170px;
  padding: 0 16px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

header {
  background: #fff;
  border-bottom: 4px solid #A04000;
  box-shadow: 0 2px 12px rgba(28,40,51,0.07);
  z-index: 20;
  position: relative;
}
header .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 16px 18px 16px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #1C2833;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  transition: background .18s, color .18s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #D35400;
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 36px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: bold;
  font-size: 1em;
  padding: 12px 28px;
  margin-left: 8px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .04em;
  box-shadow: 0 4px 16px rgba(211,84,0,0.13);
  transition: background .17s, transform .14s, box-shadow .14s;
}
.button.primary {
  background: #D35400;
  color: #fff;
}
.button.primary:hover, .button.primary:focus {
  background: #A04000;
  transform: translateY(-2px) scale(1.045);
  box-shadow: 0 8px 24px rgba(211,84,0,0.24);
}
.button.secondary {
  background: #fff;
  color: #A04000;
  border: 2px solid #A04000;
}
.button.secondary:hover, .button.secondary:focus {
  background: #A04000;
  color: #fff;
}

/* Section styles & SPACING */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #F7F9F9;
}
section:nth-of-type(even) {
  background: #fff;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  align-items: center;
  text-align: center;
}
.text-section h1, .text-section h2 {
  color: #D35400;
  text-shadow: 0 2px 8px rgba(211,84,0,0.08);
}

.feature-grid, .service-list, .project-types-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.feature-grid > div, .service-list > div, .project-types-grid > div {
  background: #fff;
  padding: 24px 20px;
  border-radius: 21px;
  box-shadow: 0 4px 24px rgba(28,40,51,0.07);
  flex: 1 1 260px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 20px;
  min-width: 210px;
  transition: box-shadow .21s, transform .17s;
}
.feature-grid > div:hover, .service-list > div:hover, .project-types-grid > div:hover {
  box-shadow: 0 8px 36px 0 rgba(211,84,0,.16);
  transform: translateY(-3px) scale(1.025);
}
.feature-grid img, .project-types-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 8px #A04000aa);
}
.feature-grid h3, .service-list h3, .project-types-grid h3 {
  font-size: 1.16rem;
  color: #A04000;
}

/* Testimonial Section */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.testimonial-card {
  background: #FFF;
  border-radius: 20px;
  padding: 28px 28px 24px 28px;
  box-shadow: 0 6px 32px rgba(28,40,51,0.15);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 240px;
  max-width: 380px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .17s, transform .13s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 36px 0 rgba(160,64,0,0.25);
  transform: translateY(-3px) scale(1.02);
}
.star-rating {
  color: #D35400;
  font-size: 1.12rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.testimonial-card p {
  font-size: 1.01rem;
  color: #2c3e50;
  margin-bottom: 12px;
}
.testimonial-author {
  font-family: Montserrat, Roboto, Arial, sans-serif;
  font-weight: 600;
  color: #1A1A21;
  font-size: 0.98rem;
  margin-top: 3px;
}

/* Lists & Highlights */
.bullet-points, .core-values, .team-highlights, .tips-list, .editing-tips-list, .faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.bullet-points li, .core-values li, .team-highlights li, .tips-list li, .editing-tips-list li, .faq-list li {
  position: relative;
  padding-left: 20px;
  font-size: 1.07rem;
  margin-bottom: 0;
}
.bullet-points li:before, .core-values li:before, .tips-list li:before, .faq-list li:before  {
  content: "•";
  color: #D35400;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.12em;
}
.core-values li:before {
  content: "✓";
  color: #A04000;
  font-weight: bold;
}
/* FAQ Strong Questions */
.faq-list li strong {
  color: #A04000;
  font-family: Montserrat, Roboto, Arial, sans-serif;
}

.core-values {
  margin-bottom: 16px;
}
.compositional-rules ul,
.guides-list ul,
.software-comparisons ul,
.resource-links ul,
.tutorial-overview ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.compositional-rules li:before,
.step-by-step-guides li:before {
  content: "➔ ";
  color: #D35400;
  font-weight: bold;
  font-size: 1.12em;
}
.step-by-step-guides li {
  padding-left: 0px;
  margin-left: 0px;
}

.quick-facts {
  background: #fdf6f2;
  color: #A04000;
  padding: 18px 20px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(211,84,0,0.09);
  font-size: 1.01em;
  margin: 10px 0 18px 0;
}

.topics-overview, .guides-list, .resource-links, .tutorial-overview {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border-radius: 15px;
  padding: 24px 20px 18px 20px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.07);
  margin-bottom: 20px;
}

.project-descriptions {
  font-size: 1.02em;
  color: #444;
  padding: 8px 0 12px 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 18px 0 5px 0;
}
.contact-details div,
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98em;
  color: #2d3436;
}
.contact-details img {
  width: 22px;
  opacity: 0.8;
}

.response-times {
  background: #F9E7DE;
  border-left: 4px solid #A04000;
  padding: 12px 18px;
  margin: 9px 0 15px 0;
  border-radius: 9px;
  color: #AD4D00;
}

/* Card Layouts */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px 0 rgba(28,40,51,0.07);
  padding: 32px 24px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .16s, transform .12s;
}
.card:hover {
  box-shadow: 0 8px 36px 0 rgba(160,64,0,0.19);
  transform: translateY(-2px) scale(1.015);
}

.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;
}

/* Footer Styles */
footer {
  background: #1C2833;
  color: #F7F9F9;
  padding: 42px 0 16px 0;
  font-size: 1rem;
  display: block;
}
footer .container {
  gap: 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #A04000;
  text-decoration: none;
  font-family: Montserrat, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 7px;
  transition: background .15s, color .14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #D35400;
  color: #fff;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 38px;
  margin-bottom: 9px;
}
.footer-contact div {
  color: #fff;
  font-size: 0.98rem;
}
.footer-contact img {
  width: 19px;
  opacity: 0.78;
  margin-right: 5px;
}
.certification {
  color: #A04000;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 18px;
}
.certification img {
  width: 24px;
  filter: drop-shadow(0 1px 3px #A04000cc);
}

/*__________ Mobile Menu __________*/
.mobile-menu-toggle {
  display: flex;
  background: #D35400;
  color: #fff;
  font-size: 2.05rem;
  border: none;
  padding: 7px 19px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 14px;
  transition: background .12s, box-shadow .12s;
  z-index: 31;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #A04000;
  box-shadow: 0 4px 16px 0 rgba(211,84,0,0.17);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #1C2833;
  color: #fff;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 36px 24px 24px 24px;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(0.65,0,0.35,1);
  box-shadow: -10px 0 36px rgba(28,40,51,0.24);
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.15rem;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 20px;
  z-index: 1201;
  transition: color .12s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #FFA726;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-top: 12px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.21rem;
  font-family: Montserrat, Roboto, Arial, sans-serif;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 2px;
  border-radius: 7px;
  letter-spacing: 0.02em;
  transition: background .15s, color .14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #D35400;
  color: #fff;
}

@media (min-width: 1030px) {
  header .container {padding: 28px 0 28px 0;}
  .container {padding-left: 22px; padding-right:22px;}
}

@media (max-width: 1024px) {
  .feature-grid>div, .service-list>div, .project-types-grid>div {
    max-width: 45vw;
  }
}
@media (max-width: 900px) {
  .footer-contact {flex-direction: column; gap: 7px;}
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 11px;
    padding: 16px;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  .feature-grid, .service-list, .project-types-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .feature-grid > div, .service-list > div, .project-types-grid > div {
    min-width: 0;
    max-width: 100%;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 15px;
  }
  .testimonial-card {
    max-width: 100%;
    min-width: 0;
  }
  .footer-nav {flex-direction: column; align-items: flex-start; gap: 8px;}
  .container {padding-left: 7px; padding-right:7px;}
  .text-image-section,
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 540px) {
  h1 {font-size: 1.62rem;}
  h2 {font-size: 1.2rem;}
  h3 {font-size: 1.05rem;}
  section {padding: 28px 4px;}
}

/* Hide mobile menu by default (desktop) */
@media (min-width: 769px) {
  .mobile-menu {display: none !important;}
  .mobile-menu-toggle {display: none !important;}
}

/*--- Cookie Consent Banner ---*/
.cookie-consent-banner {
  position: fixed;
  left: 2vw;
  right: 2vw;
  bottom: 22px;
  z-index: 3202;
  background: #fffbea;
  box-shadow: 0 6px 24px 0 rgba(160,64,0,0.17);
  border: 2px solid #FFDAB9;
  border-radius: 21px;
  padding: 24px 32px 22px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px 30px;
  justify-content: center;
  font-size: 1rem;
  color: #A04000;
  font-family: 'Roboto', Arial, sans-serif;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .34s, visibility .34s;
}
.cookie-consent-banner.show {
  opacity: 1; pointer-events: auto; visibility: visible;
}
.cookie-consent-banner .cookie-banner-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-consent-banner .button {
  padding: 8px 18px;
  font-size: 1rem;
  min-width: 110px;
}
.cookie-consent-banner .button.primary {
  background: #D35400;
  color: #fff;
}
.cookie-consent-banner .button.secondary {
  background: #fff;
  border: 2px solid #A04000;
  color: #A04000;
}
.cookie-consent-banner .button.primary:hover,
.cookie-consent-banner .button.primary:focus {
  background: #A04000;
}
.cookie-consent-banner .button.secondary:hover,
.cookie-consent-banner .button.secondary:focus {
  background: #A04000;
  color: #fff;
}
.cookie-consent-banner .cookie-settings-link {
  background: none;
  color: #A04000;
  border: none;
  cursor: pointer;
  font-weight: 700;
  padding: 0 7px;
  font-family: inherit;
  font-size: 1em;
  text-decoration: underline;
  margin-left: 7px;
}
.cookie-consent-banner .cookie-settings-link:hover,
.cookie-consent-banner .cookie-settings-link:focus {
  color: #D35400;
}
@media (max-width: 520px) {
  .cookie-consent-banner {
    padding: 16px 6px 14px 6px;
    flex-direction: column;
    gap: 11px;
  }
  .cookie-consent-banner .cookie-banner-buttons {gap:8px;}
}

/*--- Cookie Modal ---*/
.cookie-modal {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  z-index: 4002;
  background: rgba(28,40,51,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .30s, visibility .30s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.cookie-modal .cookie-modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  min-width: 295px;
  max-width: 98vw;
  box-shadow: 0 6px 42px rgba(160,64,0,0.21);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 15px; right: 18px;
  background: none;
  border: none;
  color: #A04000;
  font-size: 2rem;
  cursor: pointer;
  z-index: 4009;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: #D35400;
}
.cookie-modal .cookie-category-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.cookie-modal .cookie-switch {
  width: 38px;
  height: 22px;
  background: #eee;
  border-radius: 13px;
  position: relative;
  margin-right: 10px;
  transition: background .15s;
  flex-shrink: 0;
}
.cookie-modal .cookie-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-modal .cookie-slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px;
  height: 18px;
  background: #A04000;
  border-radius: 50%;
  transition: left .18s, background .15s;
}
.cookie-modal .cookie-switch input:checked + .cookie-slider {
  left: 18px;
  background: #D35400;
}
.cookie-modal .cookie-category-title {
  font-weight: bold;
  font-family: Montserrat, Roboto, Arial,sans-serif;
  color: #A04000;
  margin-right: 8px;
  font-size: 1rem;
}
.cookie-modal .cookie-category-desc {
  color: #646464;
  font-size: 0.97rem;
  margin-left: 20px;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.cookie-modal-actions .button {
  font-size: 1rem;
  padding: 7px 16px;
}

/* Utility Classes & Microinteractions */
.text-accent {
  color: #A04000;
}
.text-contrast {
  color: #1C2833;
}
.box-accent {
  background: #fff9f4;
  border: 1.5px solid #D35400;
  border-radius: 10px;
}
.shadow-1 {
  box-shadow: 0 2px 10px rgba(160,64,0,0.12);
}
.shadow-2 {
  box-shadow: 0 6px 32px rgba(28,40,51,0.13);
}
.rounded-large {
  border-radius: 22px;
}
.no-select {
  user-select: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
  background: #EAEDED;
}
::-webkit-scrollbar-thumb {
  background: #D35400;
  border-radius: 7px;
}

/* Animate fade-in, slide-in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px);}
  to { opacity: 1; transform: none;}
}
.section, .card, .testimonial-card, .feature-grid > div, .service-list > div, .project-types-grid > div, .bullet-points li, .team-highlights li {
  animation: fadeIn .78s cubic-bezier(.32,.72,.42,1) both;
}

/* Link styles */
a {
  color: #D35400;
  text-decoration: underline;
  transition: color .13s;
}
a:hover, a:focus {
  color: #A04000;
  outline: none;
}

/* Accessible focus outlines */
.button:focus, .main-nav a:focus, .mobile-nav a:focus, .footer-nav a:focus {
  outline: 1.5px solid #A04000;
  outline-offset: 2px;
}

/* Prevent selecting user icons/buttons inadvertently */
.mobile-menu-toggle, .mobile-menu-close, .cookie-modal-close {
  user-select: none;
}
