/* =========================
   NATURE ORGANIC BRAND CSS
   ========================= */

/*
  Brand Colors (with nature_organic accent):
  --primary: #1A237E (deep indigo, for trust)
  --secondary: #F9A825 (warm gold, for energy)
  --accent: #F5F5F5 (soft neutral)
  --nature-green: #4E944F (organic green)
  --earth-brown: #8D6748 (earthy brown)
  --clay: #E9DCC9 (clay beige)
  --forest: #2E4639 (deep forest)
  --stone: #D7D2C8 (stone gray)
*/

:root {
  --primary: #1A237E;
  --secondary: #F9A825;
  --accent: #F5F5F5;
  --nature-green: #4E944F;
  --earth-brown: #8D6748;
  --clay: #E9DCC9;
  --forest: #2E4639;
  --stone: #D7D2C8;
  --text-dark: #2E4639;
  --text-light: #fff;
  --shadow-soft: 0 4px 24px 0 rgba(78, 148, 79, 0.08);
  --radius-lg: 32px;
  --radius-md: 18px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --font-display: 'Noto Sans KR', 'Nanum Gothic', sans-serif;
  --font-body: 'Nanum Gothic', 'Noto Sans KR', sans-serif;
}

/* ========== RESET & BASE ========== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: linear-gradient(180deg, var(--clay) 0%, var(--accent) 100%);
  margin: 0;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--nature-green);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--secondary);
}
ul, ol {
  padding-left: 1.2em;
  margin: 0.5em 0 1.5em 0;
}
li {
  margin-bottom: 0.5em;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--forest);
  margin-top: 0;
  margin-bottom: 0.7em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.15;
}
h2 {
  font-size: 1.6rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.25;
}
h4, h5, h6 {
  font-size: 1rem;
  line-height: 1.3;
}
p {
  margin: 0 0 1.2em 0;
  color: var(--text-dark);
}
blockquote {
  background: var(--stone);
  border-left: 5px solid var(--nature-green);
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-radius: var(--radius-md);
  color: var(--forest);
  font-style: italic;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  position: relative;
}

/* ========== FLEXBOX PATTERNS ========== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--clay);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 28px 22px;
  flex: 1 1 260px;
  min-width: 240px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(78,148,79,0.18);
  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 {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--stone);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-soft);
  color: var(--forest);
  font-size: 1.05rem;
  transition: box-shadow var(--transition), background var(--transition);
}
.testimonial-card:hover {
  background: var(--clay);
  box-shadow: 0 8px 32px 0 rgba(78,148,79,0.12);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ========== FEATURE GRID (for .feature-grid) ========== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.feature-grid > div {
  background: var(--clay);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 24px 18px;
  flex: 1 1 220px;
  min-width: 200px;
  margin-bottom: 0;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px 0 rgba(78,148,79,0.13);
  transform: translateY(-3px) scale(1.01);
}

/* ========== BUTTONS ========== */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--nature-green) 60%, var(--secondary) 100%);
  color: var(--text-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.85em 2.2em;
  border: none;
  border-radius: 999px;
  box-shadow: 0 2px 12px 0 rgba(78,148,79,0.10);
  cursor: pointer;
  margin-top: 1.2em;
  margin-bottom: 1.2em;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, var(--secondary) 40%, var(--nature-green) 100%);
  box-shadow: 0 6px 24px 0 rgba(249,168,37,0.18);
  transform: scale(1.04);
  color: var(--text-light);
}

button, .button {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6em 1.5em;
  background: var(--nature-green);
  color: var(--text-light);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
button:hover, .button:hover, button:focus, .button:focus {
  background: var(--secondary);
  color: var(--text-dark);
  box-shadow: 0 4px 16px 0 rgba(249,168,37,0.13);
  transform: translateY(-2px) scale(1.01);
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: linear-gradient(90deg, var(--clay) 60%, var(--accent) 100%);
  box-shadow: 0 2px 12px 0 rgba(78,148,79,0.04);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 0 18px;
  min-height: 68px;
}
header img {
  height: 38px;
  margin-right: 24px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--forest);
  padding: 6px 0;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover, header nav a:focus {
  background: var(--nature-green);
  color: var(--text-light);
}
header .cta-primary {
  margin: 0 0 0 18px;
  font-size: 1rem;
  padding: 0.7em 1.8em;
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--nature-green);
  margin-left: 18px;
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}
.mobile-menu-toggle:active {
  color: var(--secondary);
  transform: scale(1.1);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(46,70,57,0.97);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 22px 22px 0 0;
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}
.mobile-menu-close:active {
  color: var(--nature-green);
  transform: scale(1.1);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 40px;
  padding: 0 32px;
}
.mobile-nav a {
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--nature-green);
  color: var(--secondary);
}

/* ========== HERO SECTIONS ========== */
main > section:first-child {
  background: linear-gradient(120deg, var(--clay) 60%, var(--nature-green) 100%);
  color: var(--forest);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 8px 32px 0 rgba(78,148,79,0.07);
  margin-bottom: 60px;
  padding-top: 48px;
  padding-bottom: 48px;
}
main > section:first-child h1 {
  color: var(--primary);
  font-size: 2.4rem;
  margin-bottom: 0.5em;
}
main > section:first-child p {
  font-size: 1.15rem;
  color: var(--forest);
}

/* ========== TABLES ========== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5em 0 2em 0;
  background: var(--clay);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
table th, table td {
  padding: 14px 12px;
  text-align: left;
  font-size: 1rem;
  color: var(--forest);
}
table th {
  background: var(--nature-green);
  color: var(--text-light);
  font-weight: 700;
}
table tr:nth-child(even) td {
  background: var(--stone);
}
table tr:nth-child(odd) td {
  background: var(--clay);
}
table tr:hover td {
  background: var(--secondary);
  color: var(--text-dark);
}

/* ========== FORMS & INPUTS ========== */
input[type="search"], input[type="text"], input[type="email"], textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7em 1em;
  border: 1.5px solid var(--nature-green);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--forest);
  margin-bottom: 1em;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input[type="search"]:focus, input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 2px 8px 0 rgba(249,168,37,0.10);
  outline: none;
}

/* ========== FOOTER ========== */
footer {
  background: linear-gradient(90deg, var(--clay) 60%, var(--accent) 100%);
  color: var(--forest);
  padding: 36px 0 18px 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -2px 12px 0 rgba(78,148,79,0.04);
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
footer nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-bottom: 8px;
}
footer nav a {
  color: var(--nature-green);
  font-weight: 500;
  font-size: 1rem;
  transition: color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
}
.footer-contact {
  font-size: 0.98rem;
  color: var(--forest);
  margin-bottom: 4px;
}
.footer-copyright {
  font-size: 0.93rem;
  color: var(--earth-brown);
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: linear-gradient(90deg, var(--clay) 60%, var(--stone) 100%);
  color: var(--forest);
  box-shadow: 0 -2px 16px 0 rgba(78,148,79,0.10);
  padding: 22px 18px 18px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 1;
  transition: opacity var(--transition), transform var(--transition);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-text {
  flex: 1 1 0;
  font-size: 1rem;
  color: var(--forest);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  font-size: 1rem;
  padding: 0.5em 1.3em;
  border-radius: 999px;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-banner .accept {
  background: var(--nature-green);
  color: var(--text-light);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--secondary);
  color: var(--text-dark);
}
.cookie-banner .reject {
  background: var(--earth-brown);
  color: var(--text-light);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--secondary);
  color: var(--text-dark);
}
.cookie-banner .settings {
  background: var(--stone);
  color: var(--forest);
  border: 1.5px solid var(--nature-green);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--nature-green);
  color: var(--text-light);
}

/* ========== COOKIE MODAL ========== */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 100000;
  background: rgba(46,70,57,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .modal-content {
  background: var(--clay);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px 0 rgba(78,148,79,0.18);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  color: var(--forest);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modalIn 0.35s cubic-bezier(.4,0,.2,1);
}
@keyframes modalIn {
  from { transform: translateY(40px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal .modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--nature-green);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}
.cookie-modal .modal-close:hover, .cookie-modal .modal-close:focus {
  color: var(--secondary);
  transform: scale(1.1);
}
.cookie-modal h2 {
  margin-bottom: 0.5em;
  color: var(--primary);
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  font-weight: 600;
  color: var(--forest);
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--nature-green);
  width: 20px;
  height: 20px;
}
.cookie-modal .cookie-category .always-on {
  color: var(--earth-brown);
  font-size: 0.98em;
  margin-left: 8px;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 18px;
}
.cookie-modal .modal-actions button {
  font-size: 1rem;
  padding: 0.5em 1.3em;
  border-radius: 999px;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-modal .modal-actions .accept {
  background: var(--nature-green);
  color: var(--text-light);
}
.cookie-modal .modal-actions .accept:hover, .cookie-modal .modal-actions .accept:focus {
  background: var(--secondary);
  color: var(--text-dark);
}
.cookie-modal .modal-actions .reject {
  background: var(--earth-brown);
  color: var(--text-light);
}
.cookie-modal .modal-actions .reject:hover, .cookie-modal .modal-actions .reject:focus {
  background: var(--secondary);
  color: var(--text-dark);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
  }
  .feature-grid > div, .card {
    min-width: 180px;
    padding: 18px 12px;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    min-height: 56px;
  }
  .feature-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    max-width: 100vw;
    padding: 0 8px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 38px;
  }
  .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div, .card {
    min-width: 0;
    width: 100%;
    padding: 16px 10px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    font-size: 1rem;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  header nav {
    display: none;
  }
  header .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .section {
    padding: 16px 2px;
    margin-bottom: 24px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 6px 10px 6px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .cookie-modal .modal-content {
    padding: 18px 8px 14px 8px;
    min-width: 0;
    width: 98vw;
  }
}

/* ========== ORGANIC SHAPES & DECORATIVE ELEMENTS ========== */
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: -28px; left: -28px;
  width: 80px; height: 80px;
  background: radial-gradient(circle at 40% 60%, var(--nature-green) 60%, transparent 100%);
  opacity: 0.13;
  border-radius: 50% 40% 60% 50% / 60% 50% 40% 50%;
  z-index: 0;
  pointer-events: none;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -22px; right: -22px;
  width: 60px; height: 60px;
  background: radial-gradient(circle at 60% 40%, var(--secondary) 60%, transparent 100%);
  opacity: 0.10;
  border-radius: 60% 50% 40% 50% / 50% 60% 50% 40%;
  z-index: 0;
  pointer-events: none;
}
.section > * {
  position: relative;
  z-index: 1;
}

/* ========== MICRO-INTERACTIONS ========== */
a, button, .cta-primary, .feature-grid > div, .card, .testimonial-card, .mobile-nav a, .cookie-banner button, .cookie-modal .modal-actions button {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

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

/* ========== UTILITY CLASSES ========== */
.hide {
  display: none !important;
}

/* ========== END OF CSS ========== */
