/*==============================*
  CSS RESET & VARIABLES
*==============================*/
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 */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F5F7FA;
  color: #182C3E;
  font-family: 'Montserrat', Arial, sans-serif;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  box-sizing: border-box;
}

:root {
  --primary: #182C3E;
  --secondary: #C2B280;
  --accent: #FFFFFF;
  --pastel-blue: #DCECF7;
  --pastel-beige: #F6F3EC;
  --pastel-lilac: #E7EBFA;
  --pastel-pink: #FBEFEF;
  --pastel-green: #E9F7EE;
  --pastel-yellow: #FCF6E6;
  --text-dark: #192135;
  --text-light: #ffffff;
  --shadow: 0 4px 24px rgba(120,142,155,0.10);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: all 0.3s cubic-bezier(.49,.29,.15,1.13);
  --font-head: 'Playfair Display', serif;
  --font-body: 'Montserrat', Arial, sans-serif;
}

/*==============================*
  BODY TYPOGRAPHY & DEFAULTS
*==============================*/
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  background: var(--pastel-beige);
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--pastel-beige);
  border-radius: var(--radius);
}
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/*==============================*
  HEADINGS
*==============================*/
h1, .hero h1 {
  font-family: var(--font-head);
  font-weight: bold;
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--primary);
  letter-spacing: -1px;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(194,178,128,0.04);
}
h2 {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--primary);
}

p, li, address {
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 400;
}
strong {
  color: var(--primary);
  font-weight: bold;
}
em {
  color: var(--secondary);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.05em;
}

blockquote {
  font-family: var(--font-head);
  font-size: 1.18em;
  font-style: italic;
  quotes: "\201C" "\201D" "\2018" "\2019";
  color: var(--primary);
}
blockquote:before {
  content: open-quote;
  color: var(--secondary);
  font-size: 2em;
  line-height: 0;
  margin-right: 0.1em;
}

/*==============================*
  HEADER & NAVBAR
*==============================*/
header {
  width: 100%;
  background: var(--accent);
  box-shadow: 0 4px 20px rgba(24,44,62,0.03);
  position: sticky;
  top: 0;
  z-index: 101;
  padding-bottom: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: 20px;
  padding: 18px 16px 18px 16px;
}
header img {
  height: 38px;
  width: auto;
}
header nav {
  display: flex;
  gap: 16px;
  align-items: center;
}
header nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover, header nav a:focus {
  background: var(--pastel-yellow);
  color: var(--secondary);
}
header .cta.primary {
  margin-left: 16px;
}

/*==============================*
  BUTTONS & CTA
*==============================*/
.cta,
button.cta {
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.2s;
  outline: none;
  text-align: center;
  margin-top: 8px;
}
.cta.primary,
button.cta.primary {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cta.primary:hover,
button.cta.primary:hover, .cta.primary:focus, button.cta.primary:focus {
  background: var(--primary);
  color: var(--accent);
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 32px rgba(24,44,62,0.10);
}
.cta:hover, .cta:focus {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 3px 18px rgba(24,44,62,0.08);
}

/*==============================*
  HERO SECTION
*==============================*/
.hero {
  min-height: 340px;
  background: linear-gradient(120deg, var(--pastel-blue) 60%, var(--pastel-lilac) 100%);
  border-radius: var(--radius);
  padding: 48px 28px;
  box-shadow: 0 8px 44px rgba(194,178,128,0.10);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  font-size: 2.3rem;
}
.hero p {
  font-size: 1.17rem;
  color: var(--primary);
  margin-bottom: 10px;
}

/*==============================*
  FLEXBOX LAYOUTS — MANDATORY CLASSES
*==============================*/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 32px 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus {
  box-shadow: 0 8px 36px rgba(24,44,62,0.12);
  transform: scale(1.012);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--pastel-blue);
  border-radius: var(--radius-sm);
  box-shadow: 0 3px 18px rgba(24,44,62,0.09);
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 460px;
  border-left: 5px solid var(--secondary);
}
.testimonial-card blockquote {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.testimal-card p, .testimonial-card p {
  color: var(--text-dark);
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/*==============================*
  FEATURES GRID (used for icons/features)
*==============================*/
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 20px;
  margin-bottom: 10px;
}
.features-grid > div {
  background: var(--pastel-blue);
  flex: 1 1 185px;
  min-width: 185px;
  max-width: 350px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 20px 18px 20px;
  gap: 8px;
  transition: box-shadow 0.24s, transform 0.18s;
}
.features-grid > div:hover {
  box-shadow: 0 8px 30px rgba(193,178,128,0.17);
  transform: translateY(-3px) scale(1.012);
}
.features-grid img {
  height: 38px;
  margin-bottom: 7px;
}
.features-grid h3 {
  font-size: 1.16rem;
}
.features-grid p {
  font-size: 1rem;
}

/*==============================*
  BLOG LIST & ARTICLE CARDS
*==============================*/
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.blog-list article {
  flex: 1 1 230px;
  min-width: 230px;
  background: var(--pastel-pink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 28px 22px 18px 22px;
  transition: box-shadow 0.2s, transform 0.14s;
}
.blog-list article:hover {
  box-shadow: 0 7px 32px rgba(24,44,62,0.11);
  transform: scale(1.016);
}
.blog-list h3 {
  font-size: 1.17rem;
  margin-bottom: 8px;
  color: var(--primary);
}

/*==============================*
  TESTIMONIALS LIST
*==============================*/
.testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 24px;
  margin-bottom: 4px;
}

/*==============================*
  CARD/SECTION SPACING OVERRIDES
*==============================*/
.content-wrapper > * + * {
  margin-top: 8px;
}
.text-section {
  background: var(--pastel-yellow);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-top: 8px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/*==============================*
  LISTS & OTHERS
*==============================*/
.content-wrapper ul,
.text-section ul, .text-section ol {
  padding-left: 1em;
  margin-bottom: 8px;
}
.content-wrapper ul li, .text-section ul li, .text-section ol li {
  margin-bottom: 10px;
  position: relative;
  color: var(--primary);
  font-size: 1em;
  line-height: 1.7;
}
.content-wrapper ul li::before, .text-section ul li::before {
  content: '•';
  color: var(--secondary);
  font-weight: bold;
  display: inline-block;
  width: 18px;
  margin-left: -18px;
}
.text-section ol {
  list-style-type: decimal;
  padding-left: 1.2em;
}
.text-section ol li::before {
  content: '';
  display: none;
}

.categories, .recent-posts {
  margin-bottom: 18px;
}
.categories h4, .recent-posts h4 {
  font-family: var(--font-head);
  font-size: 1.11em;
  color: var(--secondary);
  margin-bottom: 5px;
}
.categories ul li, .recent-posts ul li {
  color: var(--primary);
}

/*==============================*
  FOOTER
*==============================*/
footer {
  background: var(--pastel-lilac);
  padding: 40px 0 28px 0;
  font-size: 0.98em;
  letter-spacing: 0.02em;
  width: 100%;
  margin-top: 50px;
  box-shadow: 0 -4px 26px rgba(24,44,62,0.06);
  border-radius: var(--radius) var(--radius) 0 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
footer nav a {
  color: var(--primary);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.18s;
  border-radius: 8px;
  padding: 4px 8px;
}
footer nav a:hover {
  color: var(--secondary);
  background: var(--pastel-yellow);
}
footer p {
  color: var(--primary);
  font-weight: 400;
  opacity: 0.88;
}
footer address {
  color: var(--primary);
  font-style: normal;
  opacity: 0.74;
  font-size: 0.99em;
  line-height: 1.5;
}

/*==============================*
  MOBILE NAVIGATION
*==============================*/
.mobile-menu-toggle {
  display: none;
  z-index: 1201;
  font-size: 2rem;
  background: var(--secondary);
  color: var(--primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-left: 12px;
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  align-self: center;
  transition: background 0.17s, box-shadow 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 4px 18px rgba(24,44,62,0.15);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(221,232,254,0.92);
  box-shadow: 0 6px 44px rgba(24,44,62,0.11);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.49,.29,.15,1.13);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  border: none;
  box-shadow: 0 2px 18px rgba(24,44,62,0.13);
  position: absolute;
  top: 28px; right: 28px;
  cursor: pointer;
  z-index: 1210;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--primary);
  color: var(--accent);
}
.mobile-nav {
  margin-top: 108px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 36px;
}
.mobile-nav a {
  color: var(--primary);
  font-size: 1.25rem;
  font-family: var(--font-head);
  padding: 17px;
  width: 100%;
  border-radius: 12px;
  background: var(--pastel-yellow);
  margin-bottom: 6px;
  text-align: left;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/*==============================*
  COOKIE CONSENT BANNER
*==============================*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--pastel-blue);
  color: var(--primary);
  border-top: 4px solid var(--secondary);
  padding: 24px 20px 20px 20px;
  box-shadow: 0 -4px 32px rgba(24,44,62,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 11000;
  animation: cookieBannerAppear 0.65s cubic-bezier(.49,.29,.15,1.13);
  gap: 18px;
}
@keyframes cookieBannerAppear {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 4px;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btn {
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(194,178,128,0.10);
  transition: background 0.19s, color 0.15s, box-shadow 0.2s;
  font-size: 1em;
}
.cookie-btn.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-btn.reject {
  background: var(--pastel-pink);
  color: var(--primary);
}
.cookie-btn.settings {
  background: var(--pastel-lilac);
  color: var(--primary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 7px 22px rgba(24,44,62,0.11);
}

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  position: fixed;
  top:0; left:0; width:100vw; height:100vh;
  background: rgba(24,44,62,0.30);
  z-index: 12001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.46s cubic-bezier(.49,.29,.15,1.13);
}
@keyframes modalFadeIn {
  0% { opacity: 0; } 100% { opacity: 1; }
}
.cookie-modal {
  background: var(--pastel-beige);
  padding: 36px 22px 26px 22px;
  border-radius: var(--radius);
  box-shadow: 0 6px 44px rgba(194,178,128,0.15);
  min-width: 320px;
  max-width: 94vw;
  z-index: 13000;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cookie-modal h2 {
  font-family: var(--font-head);
  font-size: 1.55rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: var(--pastel-lilac);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 7px;
}
.cookie-category strong {
  color: var(--primary);
  font-size: 1em;
}
.cookie-toggle {
  appearance: none;
  width: 42px;
  height: 24px;
  background: var(--pastel-blue);
  border-radius: 18px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 12px;
}
.cookie-toggle:checked {
  background: var(--secondary);
}
.cookie-toggle::before {
  content: '';
  display: block;
  position: absolute;
  left: 4px; top: 4px;
  width: 16px; height: 16px;
  background: var(--accent);
  border-radius: 50%;
  transition: left 0.2s, background 0.18s;
}
.cookie-toggle:checked::before {
  left: 22px;
  background: var(--primary);
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.cookie-modal .close-modal {
  align-self: flex-end;
  font-size: 1.5em;
  padding: 4px 12px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  margin-top: -24px;
  margin-bottom: 10px;
  transition: background 0.18s;
}
.cookie-modal .close-modal:hover{
  background: var(--primary);
  color: var(--accent);
}

/*==============================*
  ANIMATIONS
*==============================*/
.card, .features-grid>div, .blog-list article, .testimonial-card, .cookie-modal, .cookie-banner {
  transition: box-shadow 0.24s, background 0.23s, color 0.2s, transform 0.2s;
}

/*==============================*
  RESPONSIVE DESIGN (MOBILE FIRST)
*==============================*/
@media (max-width: 1280px) {
  .container {
    max-width: 980px;
  }
  section {
    padding: 36px 8px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 90vw;
  }
  .features-grid, .blog-list, .testimonials-list {
    gap: 15px;
  }
}
@media (max-width: 768px) {
  
  .container {
    max-width: 100vw;
    padding: 0 10px;
  }
  header .container nav,
  header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .features-grid {
    flex-direction: column;
    gap: 20px;
  }
  .testimonials-list, .blog-list {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .hero {
    padding: 30px 12px;
    min-height: 200px;
  }
  section {
    margin-bottom: 32px;
    padding: 22px 4px;
  }
  .content-wrapper {
    gap: 18px;
  }
  .testimonial-card {
    padding: 17px 10px 17px 10px;
    min-width: 0;
    max-width: 100%;
  }
  .blog-list article, .features-grid > div {
    padding: 18px 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .mobile-menu nav.mobile-nav{
    margin-top: 68px;
    padding: 0 12px;
  }
  .mobile-menu-close {
    top: 12px; right: 12px;
  }
  footer .container {
    gap: 6px;
    padding-left: 6px;
    padding-right: 6px;
  }
}
@media (max-width: 480px) {
  h1, .hero h1 {
    font-size: 1.45rem;
  }
  h2 {
    font-size: 1.12rem;
  }
  section, .hero {
    padding: 12px 2px;
  }
}

/*==============================*
  CUSTOM SCROLLBARS, SELECTION
*==============================*/
::selection {
  background: var(--pastel-yellow);
  color: var(--primary);
}
::-webkit-scrollbar {
  width: 10px;
  background: var(--pastel-blue);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 6px;
}

/*========================================*
  AUTOFILL FORMS (if forms are added later)
==========================================*/
input:-webkit-autofill {
  background: var(--pastel-yellow) !important;
  color: var(--primary) !important;
}

/*==============================*
  ACCESSIBILITY ENHANCEMENTS
*==============================*/
a:focus, button:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/*==============================*
  PRINT OVERRIDES
*==============================*/
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-backdrop, footer {
    display: none !important;
  }
  section, .container {
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }
}
