/*
Theme Name: Dou Dou
Description: Dou Dou Singapore Lifestyle Publication
Version: 2.0
*/

/* =====================
   GOOGLE FONTS
   ===================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* =====================
   CSS VARIABLES
   ===================== */
:root {
--bg:        #FFFFFF;
  --bg2:       #FFFFFF;
  --surface:   #FFFFFF;
  --ink:       #1B1B1B;
  --ink2:      #6B6660;
  --ink3:      #A09890;
  --terra:     #C4714A;
  --rule:      rgba(27,27,32,0.10);
}

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--terra); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }
h4 { font-size: 18px; }
p { margin-bottom: 1rem; color: var(--ink2); line-height: 1.75; }

/* =====================
   LAYOUT
   ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site-main { min-height: 60vh; }

/* =====================
   HEADER & NAV
   ===================== */
.site-header {
  background: var(--surface);
  border-bottom: 0.5px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  text-decoration: none;
}
.site-logo:hover { color: var(--ink); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink2);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  text-decoration: none;
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.current { color: var(--ink); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ink);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: all 0.3s;
}

/* =====================
   TICKER BAR
   ===================== */
.site-ticker {
  background: var(--ink);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
}
.ticker-label {
  background: var(--terra);
  color: white;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.ticker-text {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  text-align: center;
}

/* =====================
   HOMEPAGE BANNER SLIDER
   ===================== */
.homepage-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.banner-slider {
  position: relative;
  width: 100%;
  height: 580px;
}
.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  text-decoration: none;
  display: block;
  z-index: 1;
}
.banner-slide.active {
  opacity: 1;
  z-index: 2;
}
.banner-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.banner-slide-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg2);
}
.banner-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(28,20,18,0.88) 0%, rgba(28,20,18,0.2) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  z-index: 3;
}
.banner-slide-inner {
  padding: 48px 56px;
  max-width: 760px;
}
.banner-post-cat {
  display: inline-block;
  background: var(--terra);
  color: white;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.banner-post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 600;
  color: white;
  line-height: 1.2;
  margin-bottom: 12px;
}
.banner-post-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.3px;
}
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  border: 0.5px solid rgba(255,255,255,0.3);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.banner-arrow:hover { background: rgba(255,255,255,0.28); }
.banner-arrow-prev { left: 24px; }
.banner-arrow-next { right: 24px; }
.banner-dots-row {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.banner-dots-row .banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.2s;
}
.banner-dots-row .banner-dot.active { background: white; }

/* =====================
   SECTION HEADERS
   ===================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 24px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 0.5px;
  background: var(--terra);
}
.section-view-all {
  font-size: 11px;
  font-weight: 500;
  color: var(--terra);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
}
.section-view-all:hover { color: var(--ink); }

/* =====================
   WHATS ON SECTION
   ===================== */
.whats-on-section { padding-bottom: 20px; }
.whats-on-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 24px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 1200px;
  margin: 0 auto;
}
.whats-on-scroll::-webkit-scrollbar { display: none; }
.whats-on-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 0.5px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s;
}
.whats-on-card:hover { transform: translateY(-2px); }
.whats-on-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink3);
  font-size: 12px;
}
.whats-on-body { padding: 14px; }
.whats-on-cat {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--terra);
  margin-bottom: 5px;
}
.whats-on-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 6px;
}
.whats-on-meta { font-size: 10px; color: var(--ink3); }
.whats-on-placeholder {
  flex: 0 0 260px;
  height: 220px;
  background: var(--surface);
  border: 0.5px dashed var(--rule);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink3);
  font-size: 12px;
}

/* =====================
   ARTICLE GRID
   ===================== */
.article-section { padding-bottom: 10px; }
.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-card {
  background: var(--surface);
  border: 0.5px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-2px); }
.article-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink3);
  font-size: 12px;
  flex-shrink: 0;
}
.article-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-card-cat {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--terra);
  margin-bottom: 6px;
}
.article-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 8px;
  flex: 1;
}
.article-card-excerpt {
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.6;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-meta { font-size: 10px; color: var(--ink3); margin-top: auto; }

/* =====================
   NEWSLETTER
   ===================== */
.newsletter-section {
  background: var(--ink);
  border-radius: 12px;
  padding: 48px 40px;
  text-align: center;
  max-width: 1152px;
  margin: 48px auto;
}
.newsletter-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 10px;
}
.newsletter-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  color: white;
  margin-bottom: 8px;
}
.newsletter-title em { font-style: italic; color: #E8A882; }
.newsletter-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 5px;
  padding: 11px 16px;
  font-size: 13px;
  color: white;
  font-family: 'DM Sans', sans-serif;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.25); }
.newsletter-form input:focus { border-color: rgba(255,255,255,0.35); }
.newsletter-form button {
  background: var(--terra);
  border: none;
  border-radius: 5px;
  padding: 11px 22px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: opacity 0.2s;
}
.newsletter-form button:hover { opacity: 0.85; }

/* =====================
   FOOTER (v5)
   ===================== */
.site-footer {
  background: var(--surface);
  border-top: 0.5px solid var(--rule);
  padding: 88px 24px 72px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 36px;
}

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

.footer-nav a {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-nav a:hover { opacity: 0.6; }

.footer-social {
  display: flex;
  gap: 18px;
}

.footer-social-icon {
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.footer-social-icon svg {
  width: 20px;
  height: 20px;
}

.footer-social-icon:hover {
  opacity: 0.6;
  color: var(--ink);
}

.footer-copy {
  font-size: 11px;
  color: var(--ink2);
  letter-spacing: 0.3px;
}

@media (max-width: 640px) {
  .site-footer {
    padding: 56px 24px 48px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  .footer-right {
    align-items: flex-start;
    width: 100%;
    gap: 24px;
  }
  .footer-nav {
    flex-wrap: wrap;
    gap: 20px;
  }
}

/* =====================
   SINGLE ARTICLE
   ===================== */
.single-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.single-article-cat {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--terra);
  margin-bottom: 12px;
}
.single-article-cat a { color: var(--terra); }
.single-article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 14px;
}
.single-article-dek {
  font-size: 18px;
  color: var(--ink2);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 16px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
}
.single-article-meta {
  font-size: 11px;
  color: var(--ink3);
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 0.5px solid var(--rule);
}
.single-article-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 36px;
}
.single-article-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
}
.single-article-body p { margin-bottom: 1.4rem; color: var(--ink); }
.single-article-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  margin: 2.5rem 0 1rem;
}
.single-article-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  margin: 2rem 0 0.8rem;
}
.single-article-body blockquote {
  border-left: 2px solid var(--terra);
  padding: 4px 0 4px 20px;
  margin: 2rem 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-style: italic;
  color: var(--ink2);
  line-height: 1.55;
}
.single-article-body img { width: 100%; border-radius: 6px; margin: 1.5rem 0; }
.article-tags {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 0.5px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article-tag {
  background: var(--bg);
  border: 0.5px solid var(--rule);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--ink2);
  text-decoration: none;
}
.article-tag:hover { color: var(--terra); border-color: var(--terra); }

/* =====================
   ARCHIVE PAGE
   ===================== */
.archive-header {
  background: var(--surface);
  border-bottom: 0.5px solid var(--rule);
  padding: 48px 24px 32px;
  text-align: center;
}
.archive-eyebrow {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--terra);
  margin-bottom: 10px;
}
.archive-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.archive-desc { font-size: 15px; color: var(--ink2); max-width: 480px; margin: 0 auto; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* =====================
   PAGE
   ===================== */
.page-content { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 0.5px solid var(--rule);
}
.page-content p { font-size: 16px; line-height: 1.85; color: var(--ink); margin-bottom: 1.4rem; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .banner-slider { height: 480px; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 0.5px solid var(--rule);
    padding: 20px 24px;
    gap: 16px;
    z-index: 99;
  }
  .nav-toggle { display: block; }
  .header-inner { position: relative; }
  .article-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .archive-grid { grid-template-columns: 1fr; }
  .newsletter-section { margin: 24px 16px; padding: 32px 20px; }
  .newsletter-form { flex-direction: column; }
  .section-header { padding: 28px 16px 14px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .banner-slider { height: 420px; }
  .banner-slide-inner { padding: 32px 24px; }
  .banner-arrow { display: none; }
}
@media (max-width: 400px) {
  .article-grid { grid-template-columns: 1fr; }
}