/* Theme base styles */

/* Font Import */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* Generic - Reset & Normalize */
*, *:before, *:after {
  box-sizing: border-box;
}
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * Add the correct box sizing in Firefox.
 */

hr {
  box-sizing: content-box;
  height: 0;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Remove the inheritance of text transform in Edge and Firefox.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * Remove the padding so developers are not caught out when they zero out `fieldset` elements in all browsers.
 */

legend {
  padding: 0;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Objects - Layout & DnD (HubSpot Functionality) */


/* CSS variables */

:root {
  --column-gap: 2.13%;
  --column-width-multiplier: 8.333;
}

/* Mobile layout */

.row-fluid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}


  .row-fluid .span1,
  .row-fluid .span2,
  .row-fluid .span3,
  .row-fluid .span4,
  .row-fluid .span5,
  .row-fluid .span6,
  .row-fluid .span7,
  .row-fluid .span8,
  .row-fluid .span9,
  .row-fluid .span10,
  .row-fluid .span11,
  .row-fluid .span12{
  min-height: 1px;
  width: 100%;
}

/* Desktop layout */

@media (min-width: 768px) {
  .row-fluid {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  
    .row-fluid .span1 {
      width: calc(var(--column-width-multiplier) * 1% * 1 - var(--column-gap) * (11 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span2 {
      width: calc(var(--column-width-multiplier) * 1% * 2 - var(--column-gap) * (10 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span3 {
      width: calc(var(--column-width-multiplier) * 1% * 3 - var(--column-gap) * (9 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span4 {
      width: calc(var(--column-width-multiplier) * 1% * 4 - var(--column-gap) * (8 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span5 {
      width: calc(var(--column-width-multiplier) * 1% * 5 - var(--column-gap) * (7 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span6 {
      width: calc(var(--column-width-multiplier) * 1% * 6 - var(--column-gap) * (6 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span7 {
      width: calc(var(--column-width-multiplier) * 1% * 7 - var(--column-gap) * (5 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span8 {
      width: calc(var(--column-width-multiplier) * 1% * 8 - var(--column-gap) * (4 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span9 {
      width: calc(var(--column-width-multiplier) * 1% * 9 - var(--column-gap) * (3 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span10 {
      width: calc(var(--column-width-multiplier) * 1% * 10 - var(--column-gap) * (2 * var(--column-width-multiplier) / 100));
    }
  
    .row-fluid .span11 {
      width: calc(var(--column-width-multiplier) * 1% * 11 - var(--column-gap) * (1 * var(--column-width-multiplier) / 100));
    }
  
}
.content-wrapper {
  margin: 0 auto;
  padding: 0 1rem;
}

@media screen and (min-width: 1380px) {
  .content-wrapper {
    padding: 0;
  }
}

.dnd-section > .row-fluid {
  margin: 0 auto;
}

.dnd-section .dnd-column {
  padding: 0 1rem;
}

@media (max-width: 767px) {
  .dnd-section .dnd-column {
    padding: 0;
  }
}

/* =========================================
   Hohn Premium Design System (Clean Slate)
   ========================================= */

:root {
  /* Colors - Hardcoded for Premium Feel */
  --brand-black: #111111;
  --brand-white: #FFFFFF;
  --brand-gray: #F5F5F7; /* Apple-like gray */
  --brand-accent: #000000; /* Minimalist accent */
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --text-main: #111111;
  --text-sub: #666666;
  --text-muted: #888888;

  /* Spacing */
  --spacing-unit: 8px;
  --container-width: 1200px;
}

/* Typography */
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--brand-black);
  background-color: var(--brand-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Pretendard', sans-serif;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--brand-black);
}

/* Glassmorphism Utilities */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
}

.glass-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Text Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1.5rem; }

/* Buttons - Premium Style (Force Override) */
.button, 
button,
input[type="submit"],
input[type="button"],
.hs-button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background-color: var(--brand-black) !important;
  color: var(--brand-white) !important;
  border: 1px solid var(--brand-black) !important;
  border-radius: 8px; /* Soft modern look */
  font-family: 'Pretendard', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  line-height: 1.2;
}

.button:hover,
button:hover,
.hs-button:hover,
.btn:hover {
  background-color: #333333 !important;
  border-color: #333333 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: var(--brand-white) !important;
}

/* Secondary Button (White) */
.button--secondary,
.btn-outline {
  background-color: var(--brand-white) !important;
  color: var(--brand-black) !important;
  border: 1px solid #E5E5E5 !important;
}

.button--secondary:hover,
.btn-outline:hover {
  background-color: #F5F5F7 !important;
  border-color: #D5D5D5 !important;
  color: var(--brand-black) !important;
}

/* Primary Button Class (for consistency) */
.btn-primary {
  background-color: var(--brand-black) !important;
  color: var(--brand-white) !important;
  border: 1px solid var(--brand-black) !important;
}

/* Container & Layout Utilities */
.content-wrapper,
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section {
  padding: 80px 0;
}

.section--gray {
  background-color: var(--brand-gray);
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

.sticky-bottom-cta {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: slideUp 0.5s ease-out forwards;
  display: none;
}

.sticky-bottom-cta.is-visible {
  display: flex;
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.section-header-glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 24px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Trust Stats */
.trust-stats {
  background: var(--brand-gray);
}

.trust-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-stat {
  text-align: center;
  padding: 24px 16px;
}

.trust-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-black);
}

.trust-stat-label {
  margin-top: 8px;
  color: var(--text-sub);
}

.trust-stats-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Social Proof */
.social-proof-section .usp-section {
  padding-top: 40px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(180deg, rgba(245, 245, 247, 0.6), rgba(255, 255, 255, 0.9));
}

.cta-card {
  text-align: center;
  padding: 2.5rem;
}

.cta-card p {
  margin-bottom: 1.5rem;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sticky CTA Bar */
.sticky-bottom-cta {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.sticky-bottom-cta .btn {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .trust-stats-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 2rem 1.5rem;
  }
}

@media (min-width: 769px) {
  .sticky-bottom-cta {
    display: none !important;
  }
}

/* Mobile Polish & Utilities */
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

/* Sticky Bottom CTA */
.sticky-bottom-cta {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: slideUp 0.5s ease-out forwards;
  display: none; /* Hidden by default, toggled via JS or specific page logic */
}

.sticky-bottom-cta.is-visible {
  display: flex;
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Glassmorphism Section Header */
.section-header-glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 24px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Components - Map Page */
/* =========================================
   Map Page — 구별 헌옷수거함 지도 페이지
   ========================================= */

/* Hero */
.map-hero {
  padding: 60px 0 40px;
  background: var(--brand-gray);
}

.map-hero__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.map-hero__count {
  font-size: 1.25rem;
  color: var(--text-sub);
  margin-bottom: 0.5rem;
}

.map-hero__count strong {
  color: var(--brand-black);
}

.map-hero__desc {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

.map-hero__desc strong {
  color: var(--brand-black);
  font-weight: 600;
}

/* Map Section */
.map-section {
  padding: 40px 0;
}

/* Comparison Section */
.comparison-section {
  padding: 60px 0;
}

/* Bin List — 접이식 수거함 목록 (SEO용) */
.bin-list-section {
  padding: 60px 0;
}

.bin-list__heading {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.bin-list__desc {
  margin-bottom: 1.5rem;
}

.bin-list__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--brand-white) !important;
  color: var(--brand-black) !important;
  border: 1px solid #E5E5E5 !important;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bin-list__toggle:hover {
  background: var(--brand-gray) !important;
  border-color: #D5D5D5 !important;
  transform: none;
  box-shadow: none;
}

.bin-list__content {
  margin-top: 1.5rem;
}

.bin-list__items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.bin-list__item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 14px;
  line-height: 1.5;
}

.bin-list__item-num {
  flex-shrink: 0;
  width: 28px;
  text-align: right;
  color: var(--text-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.bin-list__item-addr {
  color: var(--text-main);
}

.bin-list__item-detail {
  color: var(--text-sub);
  font-size: 13px;
}

.bin-list__item-detail::before {
  content: "· ";
}

/* AdSense 배너 (수거 불가 지역만) */
.adsense-banner {
  padding: 24px 0;
}

.adsense-banner ins {
  max-width: 100%;
}

/* 반응형 */
@media (min-width: 768px) {
  .map-hero {
    padding: 80px 0 60px;
  }

  .map-hero__title {
    font-size: 2.5rem;
  }

  .map-section {
    padding: 60px 0;
  }

  .comparison-section {
    padding: 80px 0;
  }

  .bin-list__items {
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
  }
}