/* --- RESET & BASIC NORMALIZATION --- */
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;
}
body {
  line-height: 1.6;
  background: #FFFDF8;
  color: #2A2A2A;
  min-height: 100vh;
  font-family: 'Nanum Gothic', 'Noto Sans KR', sans-serif;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #4E7C47;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E5B87A;
}
ul, ol {
  list-style: none;
}

/*--- FONT IMPORTS ---*/
@import url('https://fonts.googleapis.com/css?family=Noto+Sans+KR:700|Nanum+Gothic:400,700&display=swap');

/*--- BRAND COLORS ---*/
:root {
  --primary: #4E7C47;
  --primary-dark: #395B33;
  --secondary: #E5B87A;
  --accent: #FFFFFF;
  --bg: #FFFDF8;
  --gray-light: #F5F0EC;
  --text: #2A2A2A;
  --card-shadow: 0 4px 16px rgba(78, 124, 71, 0.10);
  --radius: 20px;
  --radius-sm: 10px;
}

/*--- BASE TYPOGRAPHY ---*/
h1 {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 2.7rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
h2 {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
}
h3 {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--primary);
}
p, li, address, span {
  font-family: 'Nanum Gothic', sans-serif;
  font-size: 1rem;
  color: var(--text);
}
strong {
  color: var(--primary);
  font-weight: bold;
}
small {
  font-size: 0.93rem;
  color: #999;
}

/*--- FULL WIDTH CONTAINER ---*/
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-wrapper {
  background: var(--gray-light);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/*--- HEADER / NAVIGATION ---*/
header {
  background: linear-gradient(90deg, #FFFDF8 66%, #E5B87A 100%);
  box-shadow: 0px 2px 16px rgba(78, 124, 71, 0.04);
  position: sticky;
  top: 0;
  z-index: 1002;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}
header img {
  height: 48px;
  width: auto;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-size: 1.08rem;
  letter-spacing: -0.5px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: none;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  color: var(--primary);
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: var(--primary-dark);
}
.cta-btn {
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
  background: var(--primary);
  color: var(--accent);
  border-radius: var(--radius-sm);
  padding: 10px 34px;
  margin-left: 16px;
  font-size: 1.12rem;
  box-shadow: 0 4px 16px rgba(78, 124, 71, 0.12);
  border: none;
  outline: none;
  transition: background 0.22s, transform 0.18s, box-shadow 0.22s;
  position: relative;
  z-index: 1;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-2px) scale(1.04) rotate(-2deg);
  box-shadow: 0 6px 20px rgba(229, 184, 122, 0.22);
}

/*--- MOBILE MENU (BURGER) ---*/
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: var(--accent);
  border: none;
  border-radius: var(--radius);
  padding: 10px 15px;
  font-size: 2rem;
  margin-left: 16px;
  cursor: pointer;
  z-index: 1003;
  box-shadow: 0 2px 14px rgba(78, 124, 71, 0.13);
  transition: background 0.18s, transform 0.17s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--secondary);
  color: var(--primary-dark);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(111deg, var(--primary) 84%, var(--secondary) 100%);
  z-index: 1006;
  transform: translateX(-110%);
  transition: transform 0.35s cubic-bezier(.86,-0.02,.74,1.15);
  display: flex;
  flex-direction: column;
  padding: 32px 24px 24px 24px;
  box-shadow: 6px 0 24px rgba(78,124,71,0.15);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--secondary);
  border: none;
  color: var(--primary);
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 16px;
  border-radius: var(--radius);
  transition: background 0.17s, color 0.17s, transform 0.16s;
  cursor: pointer;
  padding: 8px 18px 10px 18px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: var(--accent);
  transform: scale(1.15) rotate(4deg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 24px;
}
.mobile-nav a {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.22rem;
  color: var(--accent);
  background: rgba(255,255,255,0.12);
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: background 0.15s, color 0.18s, transform .14s;
}
.mobile-nav a:hover,.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary-dark);
  transform: scale(1.05) translateX(4px);
}

/*--- HERO + SECTIONS ---*/
main>section {
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* Cards / Testimonials containers as Flex layouts ONLY */
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 240px;
  max-width: 350px;
  transition: box-shadow 0.2s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 8px 30px 2px rgba(78, 124, 71, 0.19);
  transform: translateY(-4px) scale(1.03) rotate(-1.5deg);
  z-index: 6;
}
.content-grid,
.card-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;
  background: #FFFFFF;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 3px 14px rgba(229,184,122,0.11), 0 2px 8px rgba(78,124,71,0.09);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.19s, transform 0.17s;
  border-left: 6px solid var(--primary);
  color: #262626;
  min-width: 220px;
  max-width: 560px;
}
.testimonial-card p {
  color: #222;
  font-size: 1.13rem;
  font-style: italic;
}
.testimonial-card span {
  color: var(--primary);
  font-weight: bold;
  font-size: 0.99rem;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px 3px rgba(78,124,71,0.19);
  transform: scale(1.018) translateY(-2px);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-story {
  background: var(--secondary);
  border-radius: var(--radius);
  color: #222;
  padding: 30px 20px;
  margin-top: 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px rgba(229,184,122,0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
}

.text-section {
  margin-bottom: 20px;
}

/*--- LISTS ---*/
ul li, ol li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 28px;
  font-size: 1.05rem;
  line-height: 1.6;
}
ul li img, ol li img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 7px;
  position: absolute;
  left: 0;
  top: 1px;
}
ul li strong {
  font-size: 1.03rem;
  color: var(--primary);
}
ol {
  counter-reset: number;
}
ol li:before {
  counter-increment: number;
  content: counter(number) '.';
  color: var(--secondary);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.01rem;
  font-family: 'Noto Sans KR', sans-serif;
}
ul li:before {
  content: '';
}

/*--- BUTTONS ---*/
button, .cta-btn {
  outline: none;
}
button {
  background: var(--secondary);
  color: var(--primary-dark);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-size: 1.07rem;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 500;
  box-shadow: 0 1px 14px rgba(229, 184, 122, 0.11);
  transition: background 0.19s, color 0.18s, transform 0.16s;
  cursor: pointer;
  margin-right: 8px;
  margin-bottom: 4px;
}
button:focus, button:hover {
  background: var(--primary);
  color: var(--accent);
  transform: translateY(-2px) scale(1.03);
}
/* Special for Accept/Reject buttons */
.accept-btn {
  background: var(--primary) !important;
  color: var(--accent) !important;
}
.accept-btn:hover, .accept-btn:focus {
  background: var(--secondary) !important;
  color: var(--primary-dark) !important;
}
.reject-btn {
  background: #DA6047 !important;
  color: #fff !important;
}
.reject-btn:hover, .reject-btn:focus {
  background: #BA4630 !important;
  color: #fff !important;
}
.settings-btn {
  background: #fff !important;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
}
.settings-btn:hover, .settings-btn:focus {
  background: var(--secondary) !important;
  color: var(--primary-dark) !important;
  border-color: var(--secondary);
}

/*--- FOOTER ---*/
footer {
  background: var(--primary);
  color: var(--accent);
  width: 100%;
  padding: 32px 0 16px 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: var(--secondary);
  font-weight: 700;
  font-size: 1rem;
  padding: 6px 8px 6px 0px;
  border-radius: 0 12px 12px 0;
  background: none;
  transition: background 0.14s, color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--primary);
  background: var(--accent);
}
footer address, footer small {
  color: var(--accent);
}
footer img {
  vertical-align: middle;
  margin-right: 8px;
}
footer address {
  font-style: normal;
  line-height: 1.85;
  margin-bottom: 8px;
  font-size: 1rem;
}

/*--- SPACING & FLEX PATTERNS (MANDATORY) ---*/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}

/*--- COOKIE CONSENT BANNER ---*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, var(--secondary) 87%, #FFFDF8 100%);
  color: var(--primary-dark);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 24px 18px 22px 28px;
  z-index: 2000;
  box-shadow: 0 -2px 20px 1px rgba(229,184,122,0.18);
  border-radius: 24px 24px 0 0;
  gap: 20px;
  animation: fadein-bottom 0.72s cubic-bezier(.8,.41,.51,.98);
}
@keyframes fadein-bottom {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner__text {
  font-size: 1.06rem;
  color: var(--primary);
  flex: 1;
  min-width: 160px;
}
.cookie-banner__actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

/*--- COOKIE MODAL ---*/
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(46,38,28,0.21);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 28px;
  padding: 38px 34px 30px 34px;
  box-shadow: 0 10px 48px 7px rgba(229,184,122,0.21);
  min-width: 290px;
  max-width: 400px;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: popin-cookie 0.28s cubic-bezier(.7,-0.03,1,1.12);
}
@keyframes popin-cookie {
  from { opacity: 0; transform: scale(0.83) translateY(38px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal__close {
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-size: 1.5rem;
  border-radius: 12px;
  align-self: flex-end;
  cursor: pointer;
  padding: 6px 14px 6px 14px;
  margin-bottom: 10px;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: var(--primary);
  color: var(--accent);
  transform: scale(1.08) rotate(-2deg);
}
.cookie-modal__title {
  font-size: 1.24rem;
  color: var(--primary);
  font-family: 'Noto Sans KR',sans-serif;
  font-weight: 700;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1.01rem;
  color: var(--primary-dark);
}
.cookie-toggle {
  width: 42px;
  height: 24px;
  appearance: none;
  border-radius: 16px;
  background: var(--gray-light);
  position: relative;
  outline: none;
  transition: background 0.2s;
}
.cookie-toggle:checked {
  background: var(--primary);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 4px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.22s cubic-bezier(.64,.09,.69,1.11);
}
.cookie-toggle:checked:before {
  transform: translateX(18px);
  background: var(--secondary);
}
.cookie-category .locked {
  color: #bbb;
  font-size: 1.01em;
  margin-left: 6px;
}

/*--- MICRO-INTERACTIONS + SHADOWS ---*/
a, button, .cta-btn, .card, .testimonial-card, .mobile-menu-toggle, .mobile-menu-close, .mobile-nav a, .settings-btn {
  transition: background 0.22s, color 0.2s, box-shadow 0.15s, transform 0.18s;
}

/*--- ARTISTIC CREATIVE ELEMENTS ---*/
.section, .content-wrapper {
  position: relative;
  overflow: visible;
}
.section::before, .content-wrapper::before {
  content: '';
  position: absolute;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}
.section:nth-child(odd)::before {
  background: var(--secondary);
  left: -30px; top: -30px;
}
.section:nth-child(even)::before {
  background: var(--primary);
  right: -30px; bottom: -30px;
}
.content-wrapper::before {
  background: var(--primary);
  left: -22px; top: -22px;
  opacity: 0.08;
}

.card::after {
  content: '';
  display: block;
  position: absolute;
  right: -24px; bottom: -22px;
  width: 34px; height: 34px;
  background: var(--secondary);
  border-radius: 50%;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
  filter: blur(1.5px);
}

/*--- RESPONSIVE DESIGN ---*/
@media (max-width: 1024px) {
  .container {
    max-width: 820px;
    padding: 0 14px;
  }
  .content-wrapper {
    padding: 28px 12px;
  }
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    padding: 0 12px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
  .content-wrapper {
    padding: 16px 7px;
    gap: 16px;
  }
  header .container {
    flex-direction: row;
    padding: 14px 8px;
    gap: 12px;
  }
  header nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu {
    padding-top: 26px;
    padding-bottom: 16px;
  }
  main>section, .section {
    padding: 22px 1px;
  }
  .content-grid, .text-image-section, .card-container {
    flex-direction: column !important;
    gap: 18px;
  }
  .testimonial-card, .card {
    min-width: unset;
    max-width: 98vw;
    font-size: 0.99rem;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.1rem; }
  .testimonial-card, .card, .featured-story {
    padding: 11px 3vw;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 15px 7px 15px 16px;
    font-size: 0.92rem;
  }
}

/*--- FORM STYLING (for future extensibility) ---*/
input, select, textarea {
  font-family: 'Nanum Gothic', sans-serif;
  font-size: 1rem;
  padding: 12px;
  border: 2px solid var(--secondary);
  border-radius: var(--radius-sm);
  margin-bottom: 13px;
  outline: none;
  width: 100%;
  transition: border 0.18s;
  background: #FFFDF8;
  color: #212;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
}

/*--- ACCESSIBILITY: HIGH CONTRAST IN TESTIMONIALS/REVIEWS ---*/
.testimonial-card, .featured-story {
  background: #fff;
  color: #212;
  border: none;
}
.testimonial-card p, .featured-story p, .testimonial-card span, .featured-story span {
  color: #1e2324;
}

/*--- UTILITIES ---*/
.hide { display: none !important; }
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/*--- END OF CSS ---*/
