/* ============================================
   Thinking Studios — Global Stylesheet
   Shared across all full website pages
   ============================================ */

/* --- Variables --- */
:root {
  --sky: #F4F6F8;
  --cloud: #FFFFFF;
  --horizon: #E8EBF0;
  --light-grey: #E8EBF0;
  --deep: #1A1816;
  --ink: #2D2926;
  --between: #9A9EA6;
  --whisper: #B8BCC4;
  --peach: #F5A078;
  --peach-deep: #E8895C;

  /* Product accent colors */
  --nuri-sage: #8B9E7E;
  --maek-teal: #2B5F6B;
  --sok-lilac: #9E7EB0;
}

/* --- Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Sora', sans-serif;
  background: var(--cloud);
  color: var(--deep);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

/* --- Top Navigation --- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: transparent;
}

.top-nav-logo {
  font-size: 14px;
  font-weight: 500;
  color: var(--deep);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav-logo svg {
  position: relative;
  top: 1px;
}

.top-nav-links {
  display: flex;
  gap: 32px;
}

.top-nav-link {
  font-size: 14px;
  color: var(--between);
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-nav-link:hover {
  color: var(--deep);
}

.top-nav-link.active {
  color: var(--deep);
}

/* --- Mobile Nav Toggle --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--deep);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: 14px;
  color: var(--between);
  padding: 80px 60px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb a {
  color: var(--between);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--deep);
}

.breadcrumb .separator {
  margin: 0 8px;
}

/* --- Hero --- */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 40px 80px;
  background: var(--cloud);
}

.product-wordmark {
  margin-bottom: 32px;
}

.product-wordmark .korean {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 48px;
  font-weight: 400;
  color: var(--deep);
  display: block;
  margin-bottom: 8px;
}

.product-wordmark .latin {
  font-size: 56px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--deep);
}

.product-positioning {
  font-size: 20px;
  font-weight: 400;
  color: var(--deep);
  margin-bottom: 24px;
}

.product-description {
  font-size: 17px;
  color: var(--between);
  max-width: 560px;
  line-height: 1.7;
}

/* --- Content Sections --- */
.content-section {
  padding: 80px 0;
  background: var(--cloud);
}

.content-section.alt {
  background: var(--sky);
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 40px;
}

.main-content {
  max-width: 640px;
}

.section-statement {
  font-size: 24px;
  font-weight: 400;
  color: var(--deep);
  line-height: 1.5;
  margin-bottom: 20px;
}

.section-text {
  font-size: 17px;
  color: var(--between);
  line-height: 1.7;
  margin-bottom: 24px;
}

.section-text:last-child {
  margin-bottom: 0;
}

.subsection {
  margin-top: 48px;
}

.subsection:first-child {
  margin-top: 0;
}

/* --- Umma Margin (static, right side) --- */
.umma-margin {
  padding-top: 8px;
}

.umma-margin-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.umma-comment {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* --- Invitation Section (bottom of product pages) --- */
.invitation {
  padding: 80px 0;
}

.invitation-content {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 40px;
}

.invitation-prompt {
  margin-bottom: 32px;
}

.umma-invite-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.invitation-question {
  font-size: 20px;
  font-weight: 400;
  color: var(--cloud);
  line-height: 1.5;
}

.invitation-input-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.invitation-input {
  width: 100%;
  padding: 16px 56px 16px 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  font-size: 15px;
  color: var(--cloud);
  font-family: 'Sora', sans-serif;
  outline: none;
  resize: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.invitation-input:focus {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
}

.invitation-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.invitation-send {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.invitation-send:hover {
  color: var(--cloud);
}

.invitation-note {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

.invitation-note a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.invitation-note a:hover {
  color: var(--cloud);
  border-color: rgba(255,255,255,0.6);
}

/* Umma response area (for live chat) */
.umma-response {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-top: 16px;
  max-height: 200px;
  overflow-y: auto;
}

.umma-response a {
  color: var(--cloud);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: border-color 0.2s ease;
}

.umma-response a:hover {
  border-color: rgba(255,255,255,0.8);
}

.umma-typing {
  opacity: 0.5;
}

.umma-typing::after {
  content: '...';
  animation: dots 1.2s steps(3, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* --- Chat History (conversation threading) --- */
.umma-chat-history {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.umma-chat-user {
  font-size: 14px;
  font-style: italic;
  padding-left: 2px;
}

.umma-chat-umma {
  font-size: 15px;
  line-height: 1.6;
}

.umma-chat-umma a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.umma-chat-umma a:hover {
  opacity: 1;
}

/* Dark background context (invitation sections on product pages) */
.invitation .umma-chat-user {
  color: rgba(255,255,255,0.4);
}

.invitation .umma-chat-umma {
  color: rgba(255,255,255,0.85);
}

/* Light background context (homepage left margin, default) */
.umma-left-margin .umma-chat-user {
  color: rgba(0,0,0,0.4);
}

.umma-left-margin .umma-chat-umma {
  color: var(--ink);
}

/* --- Contact Page --- */
.contact-container {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 40px 80px;
}

.contact-content {
  max-width: 480px;
}

.contact-title {
  font-size: 36px;
  font-weight: 400;
  color: var(--deep);
  margin-bottom: 20px;
}

.contact-text {
  font-size: 17px;
  color: var(--between);
  line-height: 1.7;
  margin-bottom: 40px;
}

.contact-emails {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.contact-email {
  font-size: 17px;
  color: var(--deep);
  text-decoration: none;
  border-bottom: 1px solid var(--horizon);
  display: inline-block;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.contact-email:hover {
  border-color: var(--deep);
}

.contact-location {
  margin-top: 40px;
}

.location-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--between);
  margin-bottom: 4px;
}

.location-text {
  font-size: 17px;
  color: var(--deep);
}

/* --- Footer Navigation --- */
.footer-nav {
  background: var(--deep);
  padding: 48px 60px;
}

.footer-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 14px;
  color: var(--light-grey);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-link {
  font-size: 14px;
  color: var(--between);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--cloud);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--between);
  margin-top: 4px;
}

.footer-contact {
  font-size: 14px;
  color: var(--between);
}

.footer-copyright {
  font-size: 12px;
  color: var(--whisper);
  margin-top: 4px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }

  .umma-margin {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .top-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--cloud);
    padding: 24px 40px;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  }

  .top-nav-links.open {
    display: flex;
  }

  .breadcrumb {
    padding: 80px 24px 0;
  }

  .product-wordmark .korean {
    font-size: 36px;
  }

  .product-wordmark .latin {
    font-size: 42px;
  }

  .footer-nav-inner {
    flex-direction: column;
    gap: 24px;
  }

  .hero {
    padding: 100px 24px 60px;
  }

  .invitation-content {
    padding: 0 24px;
  }
}
