/* ====================================================
   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 {
  scroll-behavior: smooth;
}

body {
  line-height: 1.5;
  background: #F8F5EE;
  color: #232323;
}

*, *:before, *:after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul, ol {
  list-style: none;
  margin-left: 0;
}

a {
  color: inherit;
  text-decoration: none;
  outline: none;
  transition: color 0.2s;
}

a:focus {
  outline: 2px solid #C4A040;
  outline-offset: 2px;
}

button {
  font-family: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  outline: none;
}

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

/* ====================================================
   VARIABLES (with fallbacks)
   ==================================================== */
:root {
  --color-primary: #1F2235;
  --color-secondary: #23B574;
  --color-accent: #F8F5EE;
  --color-gold: #C4A040;
  --color-gold-dark: #9c7e3b;
  --color-dark: #21212b;
  --color-light: #ffffff;
  --color-grey: #E4E3DF;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --border-radius: 14px;
  --shadow: 0 2px 8px rgba(31,34,53,0.08), 0 0.5px 1.5px rgba(196,160,64,0.10);
  --transition: 0.2s cubic-bezier(.69,.13,.25,1);
  --section-spacing: 60px;
  --section-padding: 40px 20px;
}

/* ====================================================
   BASE TYPOGRAPHY
   ==================================================== */
body {
  font-family: var(--font-body);
  color: #232323;
  font-size: 16px;
  background: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  font-weight: 600;
  line-height: 1.13;
}

h1 { font-size: 2.75rem; letter-spacing: -1px; margin-bottom: 28px; }
h2 { font-size: 2rem;  margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }

p {
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.66;
}

strong {
  font-weight: 600;
}

.section {
  margin-bottom: var(--section-spacing);
  padding: var(--section-padding);
}

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

.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-section {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ====================================================
   HERO SECTION
   ==================================================== */
.hero {
  background: linear-gradient(120deg, var(--color-accent) 80%, #EFE8CE 100%);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: 0 4px 24px rgba(31,34,53,0.04);
  margin-bottom: var(--section-spacing);
  padding: 40px 0 60px 0;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 {
  color: var(--color-primary);
}
.hero p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* ====================================================
   BUTTONS & CTA
   ==================================================== */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  padding: 12px 36px;
  border-radius: var(--border-radius);
  background: var(--color-gold);
  color: var(--color-primary);
  border: none;
  box-shadow: 0 2px 8px rgba(196,160,64,0.13);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-gold-dark);
  color: var(--color-light);
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 16px rgba(196,160,64,0.20);
}

.cta-link {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-secondary);
  border-bottom: 2px solid var(--color-secondary);
  transition: color var(--transition), border-color var(--transition);
  display: inline-block;
  margin-top: 5px;
}
.cta-link:hover, .cta-link:focus {
  color: var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
}

/* ====================================================
   NAVIGATION (DESKTOP & MOBILE)
   ==================================================== */
header {
  width: 100%;
  background: var(--color-light);
  box-shadow: 0 2px 24px rgba(31,34,53,0.06);
  position: sticky;
  top: 0;
  z-index: 200;
}

header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 18px;
}

header nav {
  display: flex;
  gap: 24px;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 8px 0;
  color: var(--color-primary);
  position: relative;
  transition: color var(--transition);
}
header nav a:hover, header nav a.active {
  color: var(--color-gold);
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-light);
  font-size: 2rem;
  color: var(--color-primary);
  border: none;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  transition: background var(--transition), color var(--transition);
  margin-left: 12px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-grey);
  color: var(--color-gold);
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(31,34,53,0.98);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(.69,.13,.32,.95);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  color: var(--color-gold);
  font-size: 2.1rem;
  margin: 30px 26px 14px 0;
  border: none;
  padding: 2px 8px;
  cursor: pointer;
  align-self: flex-end;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 6px;
  padding: 0 32px;
}
.mobile-nav a {
  color: var(--color-light);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  width: 100%;
  transition: color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-gold);
}

/* Hide desktop nav on mobile, show mobile menu toggle */
@media (max-width: 1020px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}
@media (min-width: 1021px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ====================================================
   FLEXBOX LAYOUT PATTERNS
   ==================================================== */
.section {
  margin-bottom: var(--section-spacing);
  padding: var(--section-padding);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 250px;
  min-width: 220px;
  padding: 30px 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 4px 22px rgba(31,34,53,0.15);
  transform: translateY(-4px) scale(1.02);
}
.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 {
  background: var(--color-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 30px 20px 30px;
  min-height: 110px;
  border-left: 6px solid var(--color-gold);
  flex: 1 1 270px;
  max-width: 600px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card p {
  flex: 1;
  color: #141414;
  font-family: var(--font-body);
}
.testimonial-card .stars {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-gold);
  margin-left: 18px;
  font-family: var(--font-display);
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 2px 16px rgba(196,160,64,0.09);
  border-left-color: var(--color-gold-dark);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Custom for feature-grid */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 10px;
}
.feature-grid li {
  background: var(--color-light);
  border-radius: var(--border-radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  flex: 1 1 210px;
  min-width: 210px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  border: 2px solid transparent;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: 0 4px 16px rgba(196,160,64,0.11);
  border: 2px solid var(--color-gold);
  transform: translateY(-2px) scale(1.015);
}
.feature-grid img {
  margin-bottom: 18px;
  width: 52px;
  height: 52px;
}
.feature-grid h3 {
  color: var(--color-primary);
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}
.feature-grid p {
  font-size: 1.05rem;
  color: #393229;
  text-align: center;
}

.icon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-start;
  margin-bottom: 18px;
}
.icon-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
  background: var(--color-grey);
  padding: 8px 16px 8px 10px;
  border-radius: 21px;
  font-family: var(--font-body);
  color: var(--color-primary);
  min-width: 185px;
}
.icon-list img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-light);
  box-shadow: 0 1.5px 6px rgba(31,34,53,0.06);
}

/* Lists in content & FAQ */
ul, ol {
  margin-bottom: 24px;
}
ul li, ol li {
  margin-bottom: 14px;
  font-size: 1.045rem;
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}

.highlighted-user-projects ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 8px 0;
}
.highlighted-user-projects li {
  background: var(--color-light);
  border-left: 4px solid var(--color-secondary);
  border-radius: 9px;
  padding: 12px 16px 12px 14px;
  font-size: 1.08rem;
  color: var(--color-primary);
  font-family: var(--font-body);
}

.inspiration-blocks {
  margin: 16px 0 0 0;
  padding: 20px;
  background: var(--color-grey);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  color: var(--color-primary);
}

/* FAQ */
.faq h3 {
  margin-top: 24px;
  font-size: 1.1rem;
  color: var(--color-gold-dark);
}

/* ====================================================
   FOOTER
   ==================================================== */
footer {
  background: var(--color-dark);
  color: var(--color-light);
  margin-top: 40px;
  padding: 38px 0 30px 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 9px;
}
footer nav a {
  color: var(--color-light);
  font-size: 1rem;
  font-family: var(--font-display);
  opacity: 0.82;
  transition: color var(--transition), opacity var(--transition);
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-gold);
  opacity: 1;
}
.footer-legal {
  font-size: 0.97rem;
  opacity: 0.85;
  margin-bottom: 6px;
  text-align: center;
}
.footer-legal a { color: var(--color-gold); }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1rem;
  margin-top: 14px;
}
.footer-contact div {
  display: flex;
  gap: 8px;
  align-items: center;
}
.footer-contact img {
  width: 22px;
  height: 22px;
}

/* ================================
   COOKIE CONSENT BANNER & MODAL
   ================================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: var(--color-light);
  color: #232323;
  box-shadow: 0 -2px 16px rgba(31,34,53,0.08), 0 -0.5px 1.5px rgba(196,160,64,0.07);
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 22px 18px 20px 24px;
  z-index: 99999;
  gap: 24px;
  justify-content: center;
  opacity: 1;
  transition: transform 0.33s var(--transition), opacity 0.33s var(--transition);
}
.cookie-banner.closed {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner p {
  flex: 2 1 auto;
  margin-bottom: 0 !important;
  font-size: 1.01rem;
}
.cookie-banner-buttons {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.cookie-banner .cookie-btn {
  font-family: var(--font-display);
  padding: 10px 22px;
  border-radius: var(--border-radius);
  background: var(--color-gold);
  color: var(--color-primary);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 2px;
  box-shadow: 0 1.5px 6px rgba(196,160,64,0.09);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-banner .cookie-btn.primary {
  background: var(--color-gold);
  color: var(--color-primary);
}
.cookie-banner .cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-light);
}
.cookie-banner .cookie-btn.reject {
  background: #dedad0;
  color: #444;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--color-gold-dark);
  color: var(--color-light);
}
.cookie-banner .cookie-btn.settings:hover, .cookie-banner .cookie-btn.settings:focus {
  background: #1ca66a;
}
.cookie-banner .cookie-btn.reject:hover, .cookie-banner .cookie-btn.reject:focus {
  background: #b3aea1;
}

/* Cookie settings modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 100000;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(31,34,53,0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--color-light);
  border-radius: var(--border-radius);
  box-shadow: 0 12px 36px rgba(31,34,53,0.16);
  min-width: 300px;
  max-width: 99vw;
  width: 420px;
  padding: 38px 32px 28px 32px;
  color: var(--color-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 23px;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.23s var(--transition);
}
.cookie-modal .close-btn {
  position: absolute;
  top: 18px; right: 22px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-gold);
  cursor: pointer;
}
.cookie-modal h2 {
  font-size: 1.34rem;
  margin-bottom: 8px;
  color: var(--color-dark);
}
.cookie-modal .cookie-settings-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}
.cookie-setting-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cookie-setting-row label {
  font-size: 1.06rem;
  color: var(--color-primary);
  font-weight: 500;
}
.cookie-setting-row input[type="checkbox"] {
  appearance: none;
  width: 22px; height: 22px;
  border: 2px solid var(--color-gold);
  border-radius: 6px;
  margin-right: 8px;
  background: var(--color-grey);
  outline: none;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s;
  position: relative;
  vertical-align: middle;
}
.cookie-setting-row input[type="checkbox"]:checked {
  background: var(--color-gold);
  border-color: var(--color-gold-dark);
}
.cookie-setting-row input[type="checkbox"]:checked:after {
  content: '';
  position: absolute;
  left: 6px; top: 3px;
  width: 6px; height: 12px;
  border: solid var(--color-primary);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  display: block;
}
.cookie-setting-row input:disabled {
  background: #d2ccbf;
  border-color: #b8a471;
  cursor: not-allowed;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */
@media (max-width: 980px) {
  .container {
    max-width: 97vw;
    padding: 0 8px;
  }
  .feature-grid, .icon-list, .footer-contact {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 30px 0 30px 0;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
  .footer-contact {
    gap: 9px;
    font-size: 0.98rem;
  }
  h1 { font-size: 2rem; margin-bottom: 18px; }
  h2 { font-size: 1.3rem; margin-bottom: 14px; }
  .card, .feature-grid li {
    padding: 19px 10px;
    min-width: 140px;
    min-height: 140px;
    font-size: 0.99rem;
  }
  .testimonial-card {
    padding: 14px 10px 14px 18px;
    flex-direction: column;
    gap: 8px;
  }
  .feature-grid, .card-container, .content-grid, .icon-list {
    flex-direction: column;
    gap: 16px !important;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .footer-legal {
    font-size: 0.88rem;
  }
}
@media (max-width: 520px) {
  .container, .cookie-modal {
    max-width: 100vw;
    padding-left: 4px;
    padding-right: 4px;
  }
  .hero {
    padding: 15px 0 6px 0;
  }
  .cookie-banner {
    padding: 13px 5px;
    gap: 6px;
    font-size: 0.93rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner .cookie-btn {
    padding: 9px 13px;
    font-size: 0.93rem;
  }
}

/* =============================================
   MICRO-INTERACTIONS & EFFECTS
   ============================================= */
.card, .feature-grid li, .cta-button, .testimonial-card, .cookie-banner, .cookie-modal {
  transition: box-shadow var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

.card:focus-within, .feature-grid li:focus-within, .cta-button:focus {
  box-shadow: 0 0 0 3px var(--color-gold);
}

/* =============================================
   UTILITY & GENERAL CLASSES
   ============================================= */
.bg-accent {
  background: var(--color-accent) !important;
  color: var(--color-primary) !important;
}
.bg-gold {
  background: var(--color-gold) !important;
  color: var(--color-primary) !important;
}
.text-gold { color: var(--color-gold) !important; }
.text-secondary { color: var(--color-secondary) !important; }
.text-center { text-align: center !important; }

/* =============================================
   ACCESSIBLE FOCUS STYLES
   ============================================= */
:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

/* =============================================
   PRINT OPTIMIZATION
   ============================================= */
@media print {
  header, footer, .cookie-banner, .mobile-menu {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .section {
    padding: 0; margin: 0;
  }
}
