/* -------------------------------
   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, menu, 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, 
main, 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; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1; }
menu, ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }

/* -------------------------------
   VARIABLES & FONTS
---------------------------------*/
:root {
  --color-primary: #264653;
  --color-secondary: #E76F51;
  --color-accent: #F4A261;
  --color-bg: #FEFCFA;
  --color-bg-alt: #FFF3EA;
  --color-card: #FFFAF6;
  --color-footer: #F7E3CD;
  --color-text: #3D3A37;
  --color-heading: #1B2326;
  --color-shadow: rgba(231, 111, 81, 0.08);
  --color-border: #f3e7e0;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&family=Nanum+Gothic:wght@400;700&display=swap');

body {
  font-family: 'Nanum Gothic', 'Noto Sans KR', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.8;
  min-height: 100vh;
}

h1, h2, h3, h4, h5 {
  font-family: 'Noto Sans KR', 'Nanum Gothic', sans-serif;
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; margin-bottom: 20px; letter-spacing: -1px; }
h2 { font-size: 1.5rem; margin-bottom: 18px; }
h3 { font-size: 1.18rem; margin-bottom: 8px; }
h4, h5 { font-size: 1rem; margin-bottom: 4px; }
p, li, span, address {
  color: var(--color-text);
  font-size: 1rem;
  letter-spacing: 0.01em;
}
strong {
  color: var(--color-secondary);
  font-weight: bold;
}
em {
  color: var(--color-secondary);
  font-style: normal;
}


/* -------------------------------
   LAYOUT CONTAINERS
---------------------------------*/
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-card);
  border-radius: 32px;
  box-shadow: 0 4px 24px var(--color-shadow);
  transition: box-shadow 0.2s;
}

@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .section {
    padding: 32px 8px;
    border-radius: 20px;
    margin-bottom: 36px;
  }
}


/* -------------------------------
   NAVBAR & HEADER
---------------------------------*/
header {
  background: var(--color-bg-alt);
  box-shadow: 0 1px 12px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
}
.logo img { height: 49px; width: auto; border-radius: 14px; }
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-family: 'Noto Sans KR', 'Nanum Gothic', sans-serif;
  font-size: 1.1rem;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s;
  color: var(--color-primary);
}
nav a:hover, nav a:focus {
  background: var(--color-accent);
  color: #fff;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  background: var(--color-secondary);
  color: #fff;
  font-family: 'Noto Sans KR', 'Nanum Gothic', sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 10px 28px;
  border-radius: 28px;
  box-shadow: 0 2px 12px var(--color-shadow);
  transition: background 0.17s, transform 0.13s, box-shadow 0.17s;
  border: none;
  cursor: pointer;
  margin-left: 20px;
  margin-top: 0;
  letter-spacing: 0.03em;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 26px var(--color-shadow);
}


/* -------------------------------
   MOBILE MENU
---------------------------------*/
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 10px 14px;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  margin-left: 10px;
  transition: background 0.13s, transform 0.13s;
  z-index: 102;
}
.mobile-menu-toggle:active {
  background: var(--color-primary);
}

@media (max-width: 990px) {
  nav { display: none; }
  .cta-btn { display: none; }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-bg-alt);
  box-shadow: 2px 0 40px rgba(231, 111, 81, 0.22);
  z-index: 110;
  transform: translateX(-105vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.43s cubic-bezier(.55,.06,.38,1), opacity 0.3s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.5rem;
  margin: 22px 24px 8px 0;
  background: none;
  border: none;
  color: var(--color-secondary);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding: 32px 36px;
  margin-top: 30px;
}
.mobile-nav a {
  font-size: 1.3rem;
  font-family: 'Noto Sans KR', 'Nanum Gothic', sans-serif;
  color: var(--color-primary);
  padding: 12px 0 12px 0;
  width: 100%;
  border-radius: 12px;
  transition: background 0.12s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}

/* Overlay when menu is open */
.mobile-menu.open::after {
  content: '';
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(38, 70, 83, 0.10);
  pointer-events: none;
  z-index: 115;
}

@media (min-width: 991px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}


/* -------------------------------
   CARD & FLEX CONTAINERS
---------------------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
}
.card {
  background: var(--color-card);
  border-radius: 24px;
  box-shadow: 0 2px 16px var(--color-shadow);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.19s, transform 0.16s;
}
.card:hover {
  box-shadow: 0 8px 42px var(--color-shadow);
  transform: translateY(-2px) 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;
}
@media (max-width: 768px) {
  .content-grid, .card-container, .text-image-section { flex-direction: column; }
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
}

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

.tips-grid, .tools-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--color-bg-alt);
  border-radius: 18px;
  padding: 22px 18px;
  margin-bottom: 20px;
}

/* -------------------------------
   TESTIMONIALS
---------------------------------*/
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px var(--color-shadow);
  margin-bottom: 20px;
  min-height: 80px;
  max-width: 700px;
  color: var(--color-text);
  font-size: 1.1rem;
  position: relative;
  transition: box-shadow 0.18s, transform 0.17s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px var(--color-shadow);
  transform: scale(1.022);
}
.testimonial-card p {
  margin-right: 8px;
  font-size: 1.08rem;
  color: var(--color-primary);
}
.testimonial-card span {
  color: var(--color-secondary);
  font-size: 0.99rem;
  font-style: italic;
  margin-left: auto;
  font-weight: 600;
}
@media (max-width: 640px) {
  .testimonial-card { flex-direction: column; gap: 8px; align-items: flex-start; }
   .testimonial-card span { margin-left: 0; }
}


/* -------------------------------
   BUTTONS
---------------------------------*/
button, .cta-btn, .download-btn {
  font-family: 'Noto Sans KR', 'Nanum Gothic', sans-serif;
  outline: none;
  border: none;
}
.download-btn {
  margin-top: 12px; display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.03rem;
  border-radius: 22px;
  padding: 10px 20px;
  transition: background 0.15s, color 0.15s, box-shadow 0.13s;
}
.download-btn:hover, .download-btn:focus {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 4px 18px var(--color-shadow);
}

/* details summary for FAQ/Q&A */
details summary {
  font-weight: 600;
  font-size: 1.06rem;
  cursor: pointer;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 8px;
  transition: background 0.15s;
  color: var(--color-primary);
  outline: none;
}
details[open] summary {
  color: var(--color-secondary);
  background: var(--color-bg-alt);
}
details > div {
  padding-left: 14px;
  padding-top: 6px;
  font-size: 0.97rem;
  color: var(--color-text);
}
details {
  margin-bottom: 12px;
}


/* -------------------------------
   LISTS
---------------------------------*/
ul, ol {
  padding-left: 20px;
  margin-top: 0;
  margin-bottom: 0;
}
ul > li, ol > li {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.7;
}
ul > li::marker, ol > li::marker { color: var(--color-secondary); font-size: 1.1em; }


/* -------------------------------
   FORMS & PRIVACY NOTE
---------------------------------*/
.privacy-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 0.99rem;
  border-radius: 14px;
  padding: 8px 18px;
  margin-top: 10px;
}
.privacy-note img { width: 24px; height: 24px; }


/* -------------------------------
   FOOTER
---------------------------------*/
footer {
  background: var(--color-footer);
  padding: 34px 0 22px 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -1px 18px var(--color-shadow);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--color-primary);
  font-size: 0.98rem;
  padding: 6px 8px;
  border-radius: 9px;
  transition: background 0.12s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-accent);
  color: #fff;
}
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.96rem;
  color: var(--color-primary);
}
.footer-info a {
  color: var(--color-secondary);
}
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  height: 36px;
  width: 36px;
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: background 0.12s, box-shadow 0.12s, transform 0.11s;
}
.social-links a:hover, .social-links a:focus {
  background: var(--color-accent);
  box-shadow: 0 4px 16px var(--color-shadow);
  transform: scale(1.08);
}
.social-links img { width: 20px; height: 20px; }

@media (max-width: 900px) {
  footer .footer-info { align-items: flex-start; }
  footer .content-wrapper { align-items: flex-start; }
}
@media (max-width: 550px) {
  footer { border-radius: 14px 14px 0 0; }
  footer .container { padding: 0 4px; }
  .footer-info { font-size: 0.93rem; }
}


/* -------------------------------
   COOKIE CONSENT BANNER & MODAL
---------------------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--color-card);
  box-shadow: 0 -4px 22px 2px var(--color-shadow);
  border-top: 2px solid var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px 18px 16px 18px;
  z-index: 200;
  transition: transform 0.28s cubic-bezier(.35,.77,.49,1.01), opacity 0.23s;
}
.cookie-banner.hide {
  transform: translateY(115%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__text {
  font-size: 1rem;
  text-align: center;
  color: var(--color-text);
}
.cookie-banner__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 6px;
}
.cookie-banner__btn {
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 10px 24px;
  border: none;
  border-radius: 21px;
  font-size: 1rem;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 600;
  box-shadow: 0 1px 8px var(--color-shadow);
  cursor: pointer;
  transition: background 0.14s, color 0.14s, box-shadow 0.14s;
}
.cookie-banner__btn:hover, .cookie-banner__btn:focus {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 4px 20px var(--color-shadow);
}
.cookie-banner__btn.settings {
  background: var(--color-bg-alt);
  color: var(--color-secondary);
}
.cookie-banner__btn.settings:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* Cookie modal popup */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -54%);
  background: #fff;
  z-index: 300;
  width: 98vw; max-width: 410px;
  padding: 30px 26px 22px 26px;
  border-radius: 25px;
  box-shadow: 0 6px 48px 8px var(--color-shadow);
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.19s cubic-bezier(.43,0,.55,1);
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cookie-modal__title {
  font-size: 1.23rem;
  color: var(--color-primary);
  font-weight: bold;
}
.cookie-modal__close {
  font-size: 2.1rem;
  color: var(--color-secondary);
  border: none;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.12s;
  padding: 2px 8px;
}
.cookie-modal__close:hover {
  background: var(--color-accent);
  color: #fff;
}
.cookie-modal__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 7px;
}
.cookie-category--required {
  opacity: 0.65;
}
.cookie-category__label {
  font-weight: 600;
  min-width: 110px;
  color: var(--color-primary);
  font-size: 1rem;
}
.cookie-category__toggle {
  appearance: none;
  width: 34px; height: 18px;
  background: var(--color-bg-alt);
  border-radius: 12px;
  position: relative;
  outline: none;
  margin-left: 6px;
  transition: background 0.11s;
  border: 1.1px solid var(--color-accent);
  cursor: pointer;
}
.cookie-category__toggle:checked {
  background: var(--color-accent);
}

.cookie-category__toggle::before {
  content: '';
  display: block;
  position: absolute;
  left: 2px; top: 2px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.19s cubic-bezier(.52,.07,.48,1);
  box-shadow: 0 1px 4px var(--color-shadow);
}
.cookie-category__toggle:checked::before {
  left: 16px;
  background: var(--color-primary);
}
.cookie-modal__actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal__btn {
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: 'Noto Sans KR', sans-serif;
  border: none;
  font-weight: 600;
  padding: 8px 20px;
  font-size: 1rem;
  border-radius: 17px;
  cursor: pointer;
  transition: background 0.13s;
}
.cookie-modal__btn:hover, .cookie-modal__btn:focus {
  background: var(--color-secondary);
  color: #fff;
}

@media (max-width: 550px) {
  .cookie-modal {
    max-width: 90vw;
    padding: 18px 6vw 14px 6vw;
  }
}

/* -------------------------------
   RESPONSIVE
---------------------------------*/
@media (max-width: 900px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  .section { padding: 32px 8px; font-size: 0.97rem; }
}
@media (max-width: 550px) {
  h1 { font-size: 1.18rem; }
  h2 { font-size: 1.05rem; }
  .section { padding: 21px 3px; }
}


/* -------------------------------
   SPACING & FLEX GAPS
---------------------------------*/
main {
  padding-bottom: 34px;
  min-height: 60vh;
}

section + section {
  margin-top: 20px;
}

/* Enforced gaps between cards & sections */
.card, .testimonial-card, .section, .content-grid > *, .card-container > *, .feature-item > * {
  margin-bottom: 20px;
}
.card:last-child, .testimonial-card:last-child, .feature-item > *:last-child, .content-grid > *:last-child, .card-container > *:last-child {
  margin-bottom: 0 !important;
}

/* Ensure min 20px between all content elements */
.content-wrapper > *, section > .container > .content-wrapper > * {
  margin-bottom: 20px;
}

/* Prevent content overlapping */
.card, .testimonial-card, .section {
  z-index: 1;
}


/* -------------------------------
   UTILITY STYLES
---------------------------------*/
.text-center { text-align: center; }
.align-center { align-items: center; }
.hidden { display: none !important; }

::-webkit-input-placeholder { color: #c9b7ac; opacity: 1; }
::-moz-placeholder { color: #c9b7ac; opacity: 1; }
:-ms-input-placeholder { color: #c9b7ac; opacity: 1; }
::placeholder { color: #c9b7ac; opacity: 1; }

/* Accessibility focus for all interactive elements */
a:focus, button:focus, .cta-btn:focus, .download-btn:focus, .cookie-banner__btn:focus, .cookie-modal__close:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Icon alignment for contact info */
ul li img {
  vertical-align: middle;
  width: 18px;
  height: 18px;
  margin-right: 7px;
}


/* -------------------------------
   MISC
---------------------------------*/
address {
  font-style: normal;
  color: var(--color-primary);
}

/* Print-friendly text color override */
@media print {
  body, html, h1, h2, h3, h4, h5, h6, p, li, a, code, span, strong, em {
    color: #212121 !important;
    background: #fff !important;
  }
}

/* END OF STYLE.CS */
