/* ---- 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 {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol {
  list-style: disc inside;
  padding-left: 1.1em;
}
a {
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
img {
  border-style: none;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

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

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #2C3E50;
  background: #FFF8ED;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #2C3E50;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.6em;
}
h1 { font-size: 2.6rem; line-height: 1.13; margin-bottom: 0.75em; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; margin-bottom: 0.3em; }
h4 { font-size: 1.125rem; margin-bottom: 0.2em; }

strong, b { font-weight: 700; }

p, ul, ol {
  margin-bottom: 1.1em;
}
.subheadline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #5c4637;
  margin: 0 0 1.8em 0;
}

/* ---- CONTAINERS ---- */
.container {
  width: 100%;
  max-width: 1170px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.text-section {
  max-width: 750px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fffaf3;
  border-radius: 20px;
  box-shadow: 0 2px 20px 0 rgba(221, 182, 105, 0.08);
}

@media (min-width: 769px) {
  .section {
    padding: 60px 40px;
  }
}

/* ---- NAVBAR & HEADER ---- */
header {
  width: 100%;
  background: #fff7e1;
  box-shadow: 0 4px 20px -12px #e8ce9f;
  position: relative;
  z-index: 990;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.navbar > a img {
  height: 44px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 4px;
  border-radius: 10px;
  color: #2C3E50;
  transition: background 0.17s, color 0.13s;
}
.nav-links a:hover,
.nav-links a:focus {
  background: #F4D06F;
  color: #7a5802;
}

.cta-button {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  background: #F4D06F;
  border: none;
  border-radius: 22px;
  padding: 12px 32px;
  box-shadow: 0 4px 20px -8px #e8ce9f;
  transition: background 0.17s, color 0.12s, transform 0.13s;
  outline: 0;
  margin-left: 24px;
}
.cta-button:hover, .cta-button:focus {
  background: #eebf4d;
  color: #7a5802;
  transform: translateY(-1.5px) scale(1.03);
}

/* ---- MOBILE NAV ---- */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F4D06F;
  color: #2C3E50;
  border: none;
  font-size: 2.1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-left: 8px;
  position: absolute;
  right: 20px;
  top: 16px;
  box-shadow: 0 2px 10px rgba(225, 185, 65,0.12);
  z-index: 1102;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  outline: none;
  display: none;
}

.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #eebf4d;
  color: #7a5802;
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  background: #FFF8ED;
  box-shadow: 0 0 50px 0 rgba(44,62,80,0.08);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.37,1.13,.48,1.07);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 0 0;
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  font-size: 2rem;
  color: #9d7a26;
  background: transparent;
  border: none;
  position: absolute;
  right: 30px;
  top: 24px;
  cursor: pointer;
  z-index: 1202;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #fde9b4;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  margin-top: 80px;
  gap: 8px;
  width: 100%;
  padding-left: 40px;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: #2c3e50;
  background: transparent;
  padding: 18px 0;
  width: 100%;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  transition: background 0.15s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F4D06F;
  color: #7a5802;
}

@media (max-width: 1024px) {
  .nav-links {
    gap: 18px;
  }
  .cta-button {
    margin-left: 8px;
    padding: 12px 20px;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ---- HERO & MAIN LAYOUT ---- */
main {
  width: 100%;
}
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  display: flex;
  flex-direction: column;
}

/* ---- FLEXBOX ALIGNMENT FOR EVERY CARD/SECTION ---- */
.card-container,
.feature-grid,
.service-cards,
.project-cards,
.testimonial-cards,
.team-bios,
.content-grid,
.services-list,
.trending-ideas-list,
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .content-grid, .feature-grid, .service-cards, .project-cards,
  .testimonial-cards, .team-bios, .services-list, .trending-ideas-list, .faq-list {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* ---- FEATURE ITEMS ---- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(255,202,90, 0.09);
  padding: 26px 26px 18px 26px;
  min-width: 230px;
  flex: 1 1 235px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.17s;
}
.feature-item img {
  height: 48px;
  width: 48px;
  border-radius: 12px;
  background: #FFF8ED;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px #f4d06f15;
}
.feature-item:hover {
  box-shadow: 0 6px 32px 0 rgba(244, 208, 111, 0.16);
  transform: translateY(-3px) scale(1.025);
}

/* ---- SERVICE CARDS ---- */
.service-cards {
  gap: 24px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.service-card {
  background: #fffef9;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(244, 208, 111, 0.10);
  padding: 24px 20px 20px 20px;
  margin-bottom: 20px;
  flex: 1 1 235px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.18s;
}
.service-card h3 {
  color: #9d7a26;
  font-weight: 700;
  font-size: 1.19rem;
}
.service-card .service-price {
  color: #F4D06F;
  font-weight: 700;
  font-size: 1.03rem;
  margin-top: 6px;
}
.service-card:hover {
  box-shadow: 0 8px 28px 0 rgba(244,208,111,0.14);
}

/* Service Details (Services Page) */
.services-list {
  flex-direction: column;
  gap: 24px;
}
.service-detail {
  background: #fffdf3;
  border-radius: 14px;
  box-shadow: 0 1.5px 8px #e6ce9b19;
  padding: 22px 22px 16px 22px;
  margin-bottom: 20px;
  flex: 1 1 230px;
}
.service-detail h3 {
  display: flex;
  align-items: center;
  font-size: 1.13rem;
  font-weight: 700;
}
.service-detail .service-price {
  margin-left: 10px;
  color: #b89528;
  font-size: 1.12rem;
  font-family: 'Montserrat';
  font-weight: 600;
}

/* ---- PROJECT CARDS ---- */
.project-cards {
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.project-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 18px 0 rgba(236,192,39, 0.10);
  padding: 28px 24px 18px 24px;
  flex: 1 1 310px;
  min-width: 260px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.13s;
}
.project-card:hover {
  box-shadow: 0 8px 44px 0 rgba(244, 208, 111, .17);
  transform: translateY(-2px) scale(1.01);
}

/* ---- TEAM BIOS ---- */
.team-bios {
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.team-bios > div {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 1.5px 10px #e6ce9b11;
  padding: 18px 18px 13px 18px;
  flex: 1 1 240px;
  min-width: 210px;
  margin-bottom: 20px;
}

/* ---- TESTIMONIALS ---- */
.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 22px 20px 22px;
  background: #fff9ed;
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 rgba(244, 208, 111, 0.14);
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 325px;
  transition: box-shadow 0.2s, transform 0.13s;
}
.testimonial-card blockquote {
  color: #333028;
  font-style: italic;
  font-size: 1.14rem;
  border-left: 4px solid #f9db7f;
  padding-left: 14px;
  margin-bottom: 0.7em;
  line-height: 1.7;
}
.testimonial-meta {
  font-size: 0.99rem;
  color: #b89528;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rating {
  font-family: inherit;
  color: #f4d06f;
  margin-left: 4px;
  letter-spacing: 1.2px;
  font-weight: bold;
}
.testimonial-card:hover {
  box-shadow: 0 8px 34px 0 rgba(244, 208, 111, 0.18);
  transform: translateY(-2px) scale(1.02);
}

/* ---- FAQ ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: #fffef7;
  border-radius: 10px;
  padding: 18px 18px 14px 18px;
  box-shadow: 0 1.5px 7px #e6ce9b11;
  margin-bottom: 12px;
}
.faq-item h3 {
  font-size: 1.09rem;
  color: #b89528;
  font-weight: 600;
  margin-bottom: 0.41em;
}

/* ---- TEXT-IMAGE SECTIONS ---- */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* ---- BUTTONS & LINKS ---- */
a {
  color: #2C3E50;
  text-decoration: none;
  border-radius: 7px;
  transition: color 0.13s, background 0.13s;
}
a:hover, a:focus { color: #b89528; background: #FFF4C2; }
.cta-button {
  box-shadow: 0 2px 20px 0 rgba(244,208,111,0.17);
}
button:focus, .cta-button:focus {
  outline: 2px solid #eebf4d;
  outline-offset: 2px;
}

/* ---- FORMS (If present in future) ---- */
input, textarea, select {
  border: 1.5px solid #F4D06F;
  border-radius: 13px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  margin-bottom: 14px;
  color: #2C3E50;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: #eebf4d;
  box-shadow: 0 2px 5px #f4d06f35;
}
label {
  font-weight: 600;
  font-family: 'Montserrat';
  display: block;
  margin-bottom: 5px;
}

/* ---- FOOTER ---- */
footer {
  background: #fff7e1;
  margin-top: 50px;
  padding: 40px 0 0 0;
  font-size: 0.98rem;
  color: #725820;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 20px 0 10px 0;
}
.footer-nav a {
  color: #8f721d;
  font-weight: 600;
  font-family: 'Montserrat';
  font-size: 1.02rem;
  transition: color 0.12s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F4D06F;
  background: #fff4c2;
}
.footer-address {
  margin: 6px 0 3px 0;
  color: #ad9c72;
  font-style: italic;
}
footer img {
  height: 40px;
  margin-bottom: 12px;
}

/* ---- COOKIES CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 3500;
  background: #fffbed;
  box-shadow: 0 -3px 14px 0 #e6ce9b30;
  border-top: 2px solid #f4d06f55;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 18px 30px 22px 30px;
  animation: fadeUp 0.5s cubic-bezier(.31,1.17,.47,1) 1;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(60px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner p, .cookie-banner span {
  color: #795c25;
  font-size: 1rem;
}
.cookie-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat';
  font-weight: 600;
  font-size: 1.01rem;
  border: none;
  border-radius: 16px;
  padding: 8px 24px;
  transition: background 0.17s, color 0.13s;
}
.cookie-accept {
  background: #F4D06F;
  color: #2C3E50;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #eebf4d;
}
.cookie-reject {
  background: #eee4cb;
  color: #c28523;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #feecc3;
  color: #b89528;
}
.cookie-settings {
  background: #fffaf6;
  color: #a89130;
  border: 1.5px solid #f4d06f;
}
.cookie-settings:hover, .cookie-settings:focus {
  border-color: #eebf4d;
  background: #fff4c2;
}

/* ---- COOKIE PREFERENCES MODAL ---- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 4000;
  background: rgba(44,62,80,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFade 0.37s cubic-bezier(.51,1,.36,1) 1;
}
@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fffbed;
  border-radius: 22px;
  box-shadow: 0 8px 38px 0 rgba(236,192,39, 0.13);
  min-width: 330px;
  max-width: 95vw;
  padding: 36px 32px 22px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  animation: modalPop 0.35s cubic-bezier(.51,1,.36,1) 1;
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal h2 {
  font-size: 1.5rem;
  color: #b89528;
  margin-bottom: 10px;
}
.cookie-modal-section {
  margin-bottom: 10px;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 1.08rem;
}
.cookie-modal-category label {
  margin-left: 9px;
  font-weight: 600;
  color: #795c25;
}
.cookie-toggle {
  width: 36px;
  height: 20px;
  border-radius: 15px;
  background: #f4d06f;
  margin-left: 16px;
  appearance: none;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
  box-shadow: 0 0 3px #e8ce9f77;
}
.cookie-toggle:checked {
  background: #2C3E50;
}
.cookie-toggle::-webkit-slider-thumb {
  appearance: none;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px #eee29a58;
  transition: background 0.1s;
  position: relative;
}
.cookie-toggle::-moz-range-thumb {
  height: 18px; width: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #eee29a58; }
.cookie-modal-close {
  position: absolute;
  right: 20px;
  top: 14px;
  font-size: 1.4rem;
  color: #b89528;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 9px;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #fff4c2;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
}
.cookie-modal-actions button {
  font-family: 'Montserrat';
  font-weight: 600;
  font-size: 1.01rem;
  border: none;
  border-radius: 16px;
  padding: 8px 24px;
  transition: background 0.17s, color 0.13s;
}
.cookie-modal-actions .cookie-accept {
  background: #F4D06F;
  color: #2C3E50;
}
.cookie-modal-actions .cookie-reject {
  background: #eee4cb;
  color: #c28523;
}
.cookie-modal-actions .cookie-settings {
  background: #fffaf6;
  color: #a89130;
  border: 1.5px solid #f4d06f;
}

/* ---- SPACING FOR ALL FLEX ITEMS ---- */
.card, .feature-item, .service-card, .service-detail,
.project-card, .testimonial-card, .team-bios > div, .faq-item {
  margin-bottom: 20px;
  position: relative;
}

/* ---- RESPONSIVENESS ---- */
@media (max-width: 768px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.28rem; }
  section, .section {
    padding: 24px 2px 0 2px;
    margin-bottom: 40px;
  }
  .container {
    padding: 0 10px;
  }
  .navbar {
    flex-direction: row;
    padding: 10px 0;
    gap: 0;
  }
  .navbar > a img,
  footer img {
    height: 34px;
  }
  .feature-grid, .service-cards, .project-cards,
  .testimonial-cards, .team-bios, .services-list {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 500px) {
  .feature-item, .service-card, .service-detail, .project-card, .testimonial-card, .team-bios > div {
    padding: 12px 8px 8px 12px;
    min-width: 0;
  }
  .cookie-modal {
    padding: 24px 6vw;
    min-width: 0;
    width: 95vw;
  }
  .cookie-banner {
    padding: 12px 8px 14px 8px;
  }
}

/* ---- MICRO-INTERACTIONS ---- */
.card:hover, .feature-item:hover, .service-card:hover, .project-card:hover, .testimonial-card:hover { cursor: pointer; }
.card:focus-within, .feature-item:focus-within, .service-card:focus-within, .project-card:focus-within, .testimonial-card:focus-within {
  box-shadow: 0 0 0 3px #f4d06f55;
}

/* ---- UTILITIES ---- */
.flex-center { display: flex; align-items: center; justify-content: center; }
.rounded-16 { border-radius: 16px; }
.bg-accent { background: #F4D06F; color: #2C3E50; }
.text-primary { color: #2C3E50; }
.text-accent { color: #F4D06F; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.gap-20 { gap: 20px; }

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