/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles — 오늘사회적협동조합 메인 홈페이지
   ========================================================================== */

:root {
  --color-bg: #F8F6F0;        /* Warm Ivory */
  --color-bg-soft: #EEF1EA;   /* Soft Green */
  --color-primary: #718875;   /* Sage Green */
  --color-primary-dark: #5c6f61;
  --color-accent: #D99A7B;    /* Warm Terracotta */
  --color-accent-dark: #c9825f;
  --color-text: #333633;      /* Charcoal */
  --color-white: #FFFFFF;
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --container-width: 1160px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 20px 40px -24px rgba(51, 54, 51, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, p, dl, dd {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.only-pc {
  display: inline;
}

@media (max-width: 680px) {
  .only-pc {
    display: none;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(51, 54, 51, 0.25);
}

.btn--ghost:hover {
  border-color: var(--color-text);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-weight: 700;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 4px;
}

.link-arrow span {
  transition: transform 0.15s ease;
}

.link-arrow:hover span {
  transform: translateX(4px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 240, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-color: rgba(51, 54, 51, 0.08);
  box-shadow: 0 8px 24px -20px rgba(51, 54, 51, 0.4);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand__mark {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
}

.brand__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

.gnb {
  flex: 1;
}

.gnb__list {
  display: flex;
  justify-content: center;
  gap: 36px;
}

.gnb__list > li > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-weight: 700;
}

.gnb__en {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.gnb__kr {
  font-size: 0.78rem;
  color: var(--color-text);
  opacity: 0.75;
  font-weight: 500;
}

.site-header__cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 140px;
  text-align: center;
}

.hero__deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.35;
}

.blob--sage {
  width: 420px;
  height: 420px;
  background: var(--color-primary);
  top: -160px;
  left: -120px;
}

.blob--terracotta {
  width: 320px;
  height: 320px;
  background: var(--color-accent);
  bottom: -140px;
  right: -80px;
  opacity: 0.3;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hero__desc {
  max-width: 640px;
  margin: 28px auto 0;
  font-size: 1.05rem;
  color: var(--color-text);
  opacity: 0.85;
}

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(51, 54, 51, 0.3);
  border-radius: 999px;
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--color-primary);
  border-radius: 999px;
  animation: scroll-cue 1.6s ease infinite;
}

@keyframes scroll-cue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Sections (common) ---------- */

.section {
  padding: 100px 0;
}

.section--soft {
  background: var(--color-bg-soft);
}

.section--sage {
  background: var(--color-primary);
  color: var(--color-white);
}

.section-label {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--color-accent-dark);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.section-title--center {
  text-align: center;
}

.section-title--light {
  color: var(--color-white);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-body {
  margin-top: 16px;
  font-size: 1.02rem;
  opacity: 0.88;
}

.section-lead {
  margin-top: 20px;
  font-size: 1.05rem;
  opacity: 0.85;
}

.section-lead--light {
  color: var(--color-white);
  opacity: 0.92;
}

.section-strong {
  margin-top: 24px;
  font-size: 1.15rem;
  font-weight: 700;
}

.section-strong--light {
  color: var(--color-white);
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.keyword-chips li {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--color-white);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1.5px dashed rgba(113, 136, 117, 0.45);
  background: linear-gradient(135deg, rgba(113, 136, 117, 0.12), rgba(217, 154, 123, 0.12));
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 160px;
}

.photo-placeholder--tall {
  min-height: 320px;
}

/* ---------- Timeline (오늘의 하루) ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.timeline__item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow-soft);
}

.timeline__step {
  display: inline-block;
  font-weight: 800;
  color: var(--color-accent-dark);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.timeline__title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.timeline__desc {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ---------- Program grid (오늘의 활동) ---------- */

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

.program-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.program-card:hover {
  transform: translateY(-6px);
}

.program-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--color-bg-soft);
  color: var(--color-primary);
  margin-bottom: 20px;
}

.program-card__icon svg {
  width: 28px;
  height: 28px;
}

.program-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.program-card__desc {
  font-size: 0.92rem;
  opacity: 0.8;
}

/* ---------- People ---------- */

.people {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.profile-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.profile-card__photo {
  margin-bottom: 20px;
  min-height: 180px;
}

.profile-card__name {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.profile-card__list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(51, 54, 51, 0.08);
}

.profile-card__list dt {
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
}

.profile-card__list dd {
  text-align: right;
  opacity: 0.85;
}

/* ---------- Independence ---------- */

.independence {
  text-align: center;
  max-width: 760px;
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.choice-list li {
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-weight: 700;
  color: var(--color-white);
}

/* ---------- Brand story ---------- */

.story {
  text-align: center;
  max-width: 760px;
}

.story-quotes {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.story-quote {
  margin: 0;
  padding: 18px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
}

.story-quote--muted {
  background: var(--color-bg-soft);
  color: var(--color-text);
  opacity: 0.7;
}

.story-quote--accent {
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 1.2rem;
}

/* ---------- Guide process ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.process li {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 26px 16px;
  text-align: center;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.process__num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-accent-dark);
  margin-bottom: 10px;
}

/* ---------- CTA ---------- */

.cta {
  text-align: center;
}

.cta__inner {
  max-width: 720px;
}

.cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.85);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand__name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-white);
}

.footer-brand__slogan {
  margin-top: 10px;
  color: var(--color-accent);
  font-weight: 700;
}

.footer-brand__org {
  margin-top: 14px;
  font-size: 0.9rem;
  opacity: 0.75;
}

.footer-col__title {
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-col ul a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding: 24px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.55;
}

/* ---------- Mobile fixed bar ---------- */

.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--color-white);
  border-top: 1px solid rgba(51, 54, 51, 0.1);
  box-shadow: 0 -10px 24px -18px rgba(51, 54, 51, 0.4);
}

.mobile-bar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text);
}

.mobile-bar__icon {
  color: var(--color-primary);
}

.mobile-bar__icon svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .gnb__list {
    gap: 22px;
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .gnb {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid rgba(51, 54, 51, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .gnb.is-open {
    max-height: 400px;
  }

  .gnb__list {
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
  }

  .gnb__list > li > a {
    flex-direction: row;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(51, 54, 51, 0.06);
  }

  .site-header__cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .about,
  .people {
    grid-template-columns: 1fr;
  }

  .about__visual {
    order: -1;
  }

  .mobile-bar {
    display: flex;
  }

  body {
    padding-bottom: 64px;
  }
}

@media (max-width: 680px) {
  .hero {
    padding: 90px 0 110px;
  }

  .section {
    padding: 72px 0;
  }

  .timeline,
  .program-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

