/* ============================================================
   Love Connection Lab — "Organic Warmth"
   Concept: Diagonal sections · Tilt cards · Editorial magazine
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --bg:         #FDFBF7;
  --surface:    #F2EBE5;
  --surface-2:  #EDE0D8;
  --primary:    #D96C6C;
  --secondary:  #E8A382;
  --accent:     #5E8B7E;
  --text:       #2C3E50;
  --text-mid:   #5D7080;
  --text-soft:  #94A6B2;

  --primary-tint:  rgba(217, 108, 108, 0.10);
  --accent-tint:   rgba(94, 139, 126, 0.10);
  --shadow-warm:   0 6px 32px rgba(217, 108, 108, 0.14);
  --shadow-soft:   0 4px 24px rgba(44, 62, 80, 0.07);
  --shadow-md:     0 12px 48px rgba(44, 62, 80, 0.11);

  --radius:     18px;
  --radius-sm:  10px;
  --radius-xs:  6px;

  --transition: 0.32s cubic-bezier(0.4, 0, 0.2, 1);

  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans:  system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── Progress bar ───────────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 3px 3px 0;
}

/* ── Wrapper ────────────────────────────────────────────── */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-2);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 18px 0;
}

.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 44px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 6px 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.02em;
  position: relative;
  transition: color var(--transition);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text);
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: var(--surface);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  padding: 0 0 80px;
  min-height: 86vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0 60px;
}

.hero-text-side {}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.22;
  color: var(--text);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--primary);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 36px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(217, 108, 108, 0.30);
}

.btn-primary:hover {
  background: #c45a5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 108, 108, 0.36);
}

.hero-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.hero-link:hover { gap: 10px; }

.hero-image-side {
  position: relative;
}

.hero-img-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-warm);
}

.hero-img-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}


/* ── Section base ───────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 14px;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 40px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
}

/* ── Intro section ──────────────────────────────────────── */
.intro-section {
  padding: 100px 0 80px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.intro-img-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.intro-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2px solid rgba(217, 108, 108, 0.14);
  pointer-events: none;
}

.intro-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1.3;
  margin-bottom: 18px;
  color: var(--text);
}

.intro-text p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.intro-text p + p { margin-top: 14px; }

/* ── Feature cards (adding-blocks) ─────────────────────── */
.feature-section {
  padding: 80px 0 100px;
  background: var(--surface);
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.feature-section-inner {
  padding: 40px 0;
}

.feature-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  text-align: center;
  margin-bottom: 56px;
  color: var(--text);
}

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

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 24px 30px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  cursor: default;
  transition: transform var(--transition), box-shadow var(--transition);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  transform: perspective(900px) rotateY(-6deg) rotateX(4deg) translateY(-8px);
  box-shadow: 14px 14px 44px rgba(217, 108, 108, 0.18);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  background: var(--primary-tint);
  padding: 6px;
}

.feature-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.feature-card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

/* ── Slider section ─────────────────────────────────────── */
.slider-section {
  padding: 100px 0 80px;
}

.slider-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  text-align: center;
  margin-bottom: 44px;
  color: var(--text);
}

.slider-outer {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.slider-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(253, 251, 247, 0.9);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(44, 62, 80, 0.16);
  transition: var(--transition);
  color: var(--text);
  font-size: 18px;
  z-index: 2;
}

.slider-btn:hover {
  background: #fff;
  box-shadow: 0 4px 20px rgba(217, 108, 108, 0.20);
  color: var(--primary);
}

.slider-btn-prev { left: 16px; }
.slider-btn-next { right: 16px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-2);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.slider-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--surface-2);
  padding: 48px 0 32px;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--surface-2);
  margin-bottom: 24px;
}

.footer-logo img {
  height: 44px;
  width: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-mid);
  font-weight: 600;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-soft);
  text-align: center;
}

/* ── Articles list page ─────────────────────────────────── */
.page-hero {
  background: var(--surface);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  padding: 72px 0 100px;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 12px;
}

.page-hero-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
}

.articles-list {
  padding: 80px 0 100px;
}

.article-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition), transform var(--transition);
  color: inherit;
  text-decoration: none;
}

.article-card + .article-card {
  margin-top: 28px;
}

.article-card:hover {
  box-shadow: var(--shadow-warm);
  transform: translateY(-3px);
}

.article-card-img {
  overflow: hidden;
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.article-card:hover .article-card-img img {
  transform: scale(1.06);
}

.article-card-body {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  border-left: 0;
  position: relative;
}

.article-card-body::before {
  content: '';
  position: absolute;
  left: 0; top: 24px; bottom: 24px;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 3px;
  opacity: 0;
  transition: opacity var(--transition);
}

.article-card:hover .article-card-body::before {
  opacity: 1;
}

.article-card-index {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
}

.article-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  transition: color var(--transition);
}

.article-card:hover .article-card-title {
  color: var(--primary);
}

.article-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.article-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 4px;
  transition: gap var(--transition);
}

.article-card:hover .article-card-arrow {
  gap: 10px;
}

/* ── Article page ───────────────────────────────────────── */
.article-hero {
  background: var(--surface);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  padding: 60px 0 90px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
  transition: gap var(--transition);
}

.article-back:hover { gap: 12px; }

.article-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  line-height: 1.25;
  color: var(--text);
}

.article-body {
  padding: 72px 0 100px;
}

.text-content {
  max-width: 780px;
  margin: 0 auto;
}

.text-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.3;
  color: var(--text);
  margin: 48px 0 16px;
  padding-left: 18px;
  border-left: 3px solid var(--primary);
}

.text-content h2:first-child {
  margin-top: 0;
}

.text-content p {
  font-size: 1.02rem;
  color: var(--text-mid);
  line-height: 1.82;
  margin-bottom: 20px;
}

.text-content img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  margin: 28px 0;
}

/* ── Third page — Communication Styles ─────────────────── */
.comm-hero {
  background: var(--surface);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  padding: 72px 0 100px;
}

.comm-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 12px;
}

.comm-body {
  padding: 72px 0 100px;
}

.comm-intro {
  max-width: 780px;
  margin: 0 auto 64px;
}

.comm-intro img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 28px;
}

.comm-intro p {
  font-size: 1.02rem;
  color: var(--text-mid);
  line-height: 1.82;
}

.comm-intro p + p { margin-top: 16px; }

.comm-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.comm-feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.comm-feature-card:hover {
  box-shadow: var(--shadow-warm);
  transform: translateY(-4px);
}

.comm-feature-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary-tint);
  padding: 8px;
  flex-shrink: 0;
}

.comm-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  margin: 0;
  box-shadow: none;
}

.comm-feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text);
}

.comm-feature-card p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .wrapper { padding: 0 28px; }

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

  .hero { min-height: 70vh; padding-bottom: 60px; }
  .hero-inner { gap: 40px; }

  .intro-grid { gap: 40px; }

  .article-card { grid-template-columns: 240px 1fr; }
}

@media (max-width: 860px) {
  .wrapper { padding: 0 20px; }

  /* Header */
  .menu-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(253, 251, 247, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 16px;
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.10);
    border-top: 1px solid var(--surface-2);
    gap: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding: 12px 24px; font-size: 1rem; width: 100%; }
  .site-nav a::after { display: none; }
  .site-nav a:hover,
  .site-nav a.active {
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }
  .site-header { position: sticky; }

  /* Hero */
  .hero {
    clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%);
    min-height: 60vh;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero-eyebrow { justify-content: center; }
  .hero-cta-row { justify-content: center; }

  /* Intro */
  .intro-section { padding: 72px 0 56px; }
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .intro-img-wrap { order: 2; }
  .intro-text    { order: 1; }

  /* Feature */
  .feature-section { padding: 60px 0 80px; clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%); }

  /* Article list cards */
  .article-card { grid-template-columns: 200px 1fr; }
  .article-card-body { padding: 24px; }

  /* Comm features */
  .comm-features { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrapper { padding: 0 16px; }

  .hero { min-height: auto; clip-path: none; padding-bottom: 48px; }
  .hero-inner { padding: 44px 0 28px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-cta-row { flex-direction: column; align-items: center; }

  .intro-section { padding: 48px 0 36px; }

  .feature-section { padding: 48px 0 56px; clip-path: none; }
  .feature-section-inner { padding: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feature-card { padding: 24px 16px 20px; }

  .slider-section { padding: 48px 0 48px; }

  .page-hero { padding: 48px 0 72px; clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }

  .articles-list { padding: 52px 0 60px; }
  .article-card {
    grid-template-columns: 1fr;
  }
  .article-card-img {
    height: 180px;
  }
  .article-card-body { padding: 20px; }

  .article-hero { padding: 44px 0 72px; clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
  .article-body { padding: 48px 0 64px; }

  .comm-hero { padding: 48px 0 72px; clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
  .comm-body { padding: 48px 0 64px; }
  .comm-intro { margin-bottom: 40px; }

  .comm-feature-card { padding: 28px 20px; }

  .site-footer { margin-top: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
