/* ========================================================================
   Dusky Flame Atelier – Minimalist CSS Framework
   Author: Senior CSS Dev & UI Designer
   ------------------------------------------------------------------------
   Brand Colors:
     Primary:   #23303f (midnight blue)
     Secondary: #8aa6b6 (light nordic blue)
     Accent:    #eaeaea (soft white-gray)
   Fonts:
     Display:   'Montserrat', Arial, Helvetica, sans-serif
     Body:      'Source Sans Pro', 'Segoe UI', Arial, Helvetica, sans-serif
======================================================================== */

/* ==== 0. CSS RESET & BASE TYPOGRAPHY ==== */
html { box-sizing: border-box; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; }
html, body { height: 100%; }
body {
  font-family: 'Source Sans Pro', 'Segoe UI', Arial, Helvetica, sans-serif;
  color: #23303f;
  background: #fff;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; height: auto; }
hr { border: 0; height: 1px; background: #eaeaea; margin: 32px 0; }

/* ==== 1. GENERAL TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #23303f;
  margin-top: 0;
  margin-bottom: .8em;
  letter-spacing: -.01em;
}
h1 { font-size: 2.5rem; line-height: 1.15; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 600; }
h4 { font-size: 1.13rem; font-weight: 600; }
p, ul, ol {
  margin-top: 0;
  margin-bottom: 1.3em;
  color: #23303f;
  font-size: 1rem;
}
b, strong { font-weight: 600; color: #23303f; }
.subheadline {
  font-family: 'Source Sans Pro',sans-serif;
  font-size: 1.18rem;
  font-weight: 400;
  color: #23303f;
  opacity: .7;
  margin-bottom: 1.4em;
}
a {
  color: #23303f;
  text-decoration: underline;
  transition: color .14s;
}
a:hover, a:active, a:focus { color: #8aa6b6; text-decoration: none; }

/* ==== 2. LAYOUT WRAPPERS & CONTAINERS ==== */
.container {
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Use .content-wrapper to constrain main content width inside .container */
.content-wrapper {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---- SECTION SPACING (MANDATORY) ---- */
section {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 16px 0 rgba(35,48,63,.04), 0 1px 3px rgba(35,48,63,.03);
  transition: box-shadow .2s;
}
section:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .container { max-width: 98vw; padding-left: 10px; padding-right: 10px; }
  .content-wrapper { max-width: 98vw; }
}
@media (max-width: 768px) {
  section { padding: 28px 8px; margin-bottom: 32px; }
  .content-wrapper { padding: 0; }
}

/* ==== 3. HEADER & NAVIGATION ==== */
header {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  box-shadow: 0 1px 6px 0 rgba(35,48,63,.03);
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}
header img {
  height: 38px;
  width: auto;
  margin-right: 20px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  font-family: 'Montserrat',sans-serif;
  font-size: 1rem;
}
.main-nav a {
  color: #23303f;
  text-decoration: none;
  opacity: .86;
  transition: color .17s, opacity .16s;
  letter-spacing: 0px;
  padding: 6px 2px;
  border-radius: 2px;
}
.main-nav a:hover, .main-nav a:focus {
  color: #8aa6b6;
  opacity: 1;
  background: #eaeaea;
}
/* CTA Button in Header */
.cta.primary {
  background: #23303f;
  color: #fff;
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  padding: 11px 42px;
  font-size: 1.07rem;
  margin-left: 22px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 12px 0 rgba(35,48,63,0.04);
  letter-spacing: 0.01em;
  transition: background .18s, box-shadow .18s, color .11s;
}
.cta.primary:hover, .cta.primary:focus {
  background: #8aa6b6;
  color: #23303f;
  box-shadow: 0 4px 24px 0 rgba(35,48,63,0.07);
}
/* Hamburger on mobile */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #23303f;
  font-size: 2rem;
  line-height: 1;
  padding: 7px 9px;
  margin-left: 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: background .14s;
  z-index: 1202;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #eaeaea;
}
@media (max-width: 990px) {
  .main-nav { display: none; }
  .cta.primary { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* ==== 4. MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  z-index: 1208;
  background: #fff;
  transform: translateX(100%);
  transition: transform .30s cubic-bezier(.85,0,.19,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: -2px 0 16px 0 rgba(35,48,63,.08);
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #23303f;
  font-size: 2.3rem;
  position: absolute;
  right: 20px; top: 20px;
  cursor: pointer;
  border-radius: 8px;
  z-index: 1215;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  transition: background .16s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #eaeaea;
}
.mobile-nav {
  margin-top: 80px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 28px;
  padding-right: 28px;
}
.mobile-nav a {
  font-family: 'Montserrat',sans-serif;
  color: #23303f;
  background: none;
  text-decoration: none;
  font-size: 1.2rem;
  opacity: .90;
  font-weight: 500;
  line-height: 2.4;
  border-radius: 7px;
  padding: 8px 12px;
  transition: background .18s, color .15s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  background: #eaeaea;
  color: #8aa6b6;
  text-decoration: underline;
}
@media (min-width: 991px) {
  .mobile-menu { display: none !important; }
}

/* ==== 5. FOOTER ==== */
footer {
  background: #fff;
  padding: 34px 0 18px 0;
  border-top: 1px solid #eaeaea;
  margin-top: 64px;
  box-shadow: 0 -1px 8px 0 rgba(35,48,63,.03);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
footer img {
  height: 36px;
  width: auto;
  margin-bottom: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 6px;
}
.footer-nav a {
  color: #23303f;
  text-decoration: none;
  font-family: 'Montserrat',sans-serif;
  opacity: .75;
  font-size: 1rem;
  border-radius: 3px;
  transition: color .17s, opacity .16s;
}
.footer-nav a:hover, .footer-nav a:focus { color: #8aa6b6; opacity: 1; background: #eaeaea; }
.footer-info p { color: #23303f; opacity: .6; margin: 0; font-size: .99rem; line-height: 1.6; }

@media (max-width: 900px) {
  footer .container { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-nav { margin-bottom: 12px; }
}

/* ==== 6. MAIN FLEX PATTERNS & COMPONENTS ==== */

.feature-grid, .card-container { /* Used for icon/service grids */
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div, .card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 7px 0 rgba(35,48,63,.06);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 215px;
  min-width: 205px;
  margin-bottom: 20px;
  transition: box-shadow .19s, transform .16s;
  position: relative;
}
.card:hover, .feature-grid > div:hover {
  box-shadow: 0 8px 32px 0 rgba(35,48,63,.10);
  transform: translateY(-2px) scale(1.014);
}
.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;
}
@media (max-width: 768px){
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 16px; }
  .feature-grid, .card-container { flex-direction: column; }
  .content-grid { flex-direction: column; }
}

/* .testimonial-card (flex, visually distinctive, for about.html) */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 20px 0 rgba(35,48,63,0.12);
  margin-bottom: 20px;
  flex-direction: row;
  transition: box-shadow .18s, transform .14s;
}
.testimonial-card p {
  color: #23303f;
  font-size: 1.1rem;
  margin: 0 0 0.5em 0;
  font-style: italic;
}
.testimonial-card span {
  color: #8aa6b6;
  font-size: .96rem;
  font-family: 'Montserrat',sans-serif;
  margin-left: auto;
  font-weight: 600;
}
@media (max-width: 700px) {
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* List of features/offer - simple minimalist bullets */
.feature-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0 0; 
}
.feature-icons li {
  color: #23303f;
  background: #eaeaea;
  border-radius: 18px;
  padding: 6px 20px;
  font-size: .97rem;
  font-family: 'Montserrat',sans-serif;
  font-weight: 500;
  margin-bottom: 10px;
  transition: background .13s;
}

.offer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.offer-list li {
  background: #eaeaea;
  border-radius: 8px;
  padding: 10px 18px;
  color: #23303f;
  font-family: 'Source Sans Pro',sans-serif;
  font-size: 1.01rem;
}

/* ===== 7. BUTTONS & INTERACTIONS ===== */
.cta {
  display: inline-block;
  border: none;
  background: #eaeaea;
  color: #23303f;
  font-family: 'Montserrat',sans-serif;
  font-weight: 600;
  border-radius: 100px;
  font-size: 1.06rem;
  margin-top: 10px;
  margin-right: 5px;
  padding: 10px 36px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 12px 0 rgba(35,48,63,0.03);
  letter-spacing: 0.01em;
  transition: background .18s, box-shadow .18s, color .11s;
}
.cta:hover, .cta:focus {
  background: #8aa6b6;
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(35,48,63,0.07);
}

/* ===== 8. FORM ELEMENTS ===== */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 11px 15px;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  background: #fafbfc;
  margin-bottom: 16px;
  color: #23303f;
  outline: none;
  transition: border-color .14s;
}
input:focus, textarea:focus, select:focus {
  border-color: #8aa6b6;
}
button {
  font-family: inherit;
  font-size: 1rem;
}

/* ===== 9. RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.08rem; }
  .cta, .cta.primary { padding: 10px 24px; font-size: .98rem; }
}

/* ===== 10. COOKIE CONSENT BANNER & MODAL ===== */
/* Banner at bottom */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -2px 32px rgba(35,48,63,0.10);
  border-top: 1px solid #eaeaea;
  z-index: 1248;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 24px 16px 18px 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(80px);
  transition: transform .28s, opacity .25s;
}
.cookie-banner.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner-message {
  color: #23303f;
  font-size: 1rem;
  margin-right: 18px;
  max-width: 60vw;
}
.cookie-banner-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-btn {
  padding: 10px 26px;
  margin: 0 4px;
  border: none;
  border-radius: 40px;
  font-family: 'Montserrat',sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .11s, color .11s;
}
.cookie-btn.accept {
  background: #23303f;
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #8aa6b6;
  color: #23303f;
}
.cookie-btn.reject {
  background: #eaeaea;
  color: #23303f;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #8aa6b6;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #8aa6b6;
  border: 1.3px solid #8aa6b6;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #8aa6b6;
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; gap: 12px; padding: 20px 6px 18px 6px; }
  .cookie-banner-message { max-width: 100%; margin-right: 0; }
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  z-index: 1260;
  inset: 0;
  background: rgba(35,48,63,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s;
}
.cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 14px;
  max-width: 430px;
  width: 94vw;
  box-shadow: 0 12px 48px 0 rgba(35,48,63,0.22);
  padding: 42px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.48rem;
  color: #8aa6b6;
  cursor: pointer;
  border-radius: 10px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  transition: background .14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #eaeaea;
}
.cookie-modal h2, .cookie-modal h3 {
  font-family: 'Montserrat',sans-serif;
  margin-bottom: .25em;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 11px;
  font-size: 1rem;
  color: #23303f;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}
.cookie-toggle {
  accent-color: #8aa6b6;
  border-radius: 8px;
  width: 21px; height: 21px;
}
.cookie-category-label {
  font-family: 'Source Sans Pro',sans-serif;
  font-size: 1rem;
}
.cookie-essential { font-weight: 600; color: #23303f; }

/* ==== 11. MISC & UTILITIES ==== */
.hide { display: none !important; }
.visible { display: block !important; }

::-webkit-input-placeholder, ::placeholder { color: #b5b5b5; opacity: .96; }

[tabindex]:focus {
  outline: 2px solid #8aa6b6;
  outline-offset: 1.5px;
  border-radius: 6px;
}
/* Subtle Card Animations & Focus Styles */
.card, .feature-grid > div, .testimonial-card, .offer-list li, .cta, .cta.primary, .cookie-btn {
  transition: box-shadow .19s, transform .14s, background .18s, color .14s;
}
.card:focus-within, .testimonial-card:focus-within {
  box-shadow: 0 4px 32px 0 rgba(35,48,63,0.16);
}

/* ==== 12. PRINT FRIENDLY ==== */
@media print {
  header, nav, footer, .cookie-banner, .cookie-modal { display: none !important; }
  section { padding: 0; box-shadow: none; background: #fff; }
}

/* ==== END ==== */
