/* ============================================================
   DAC SAN TRI AN — Main Stylesheet
   ============================================================ */

:root {
  --primary:    #b54848;
  --primary-dk: #8f2f2f;
  --secondary:  #d26e4b;
  --accent:     #e8a87c;
  --gold:       #c9a84c;
  --dark:       #1a1208;
  --dark-2:     #2c1f10;
  --text:       #3d2b1a;
  --text-light: #7a6252;
  --bg:         #fdf8f2;
  --bg-2:       #f5ede0;
  --white:      #ffffff;
  --border:     rgba(181,72,72,0.15);
  --shadow:     0 4px 24px rgba(26,18,8,0.10);
  --shadow-lg:  0 12px 48px rgba(26,18,8,0.18);
  --radius:     8px;
  --radius-lg:  16px;
  --header-h:   72px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-ui:      'DM Sans', system-ui, sans-serif;
  --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Page Transition */
.page-transition-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--dark);
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}
body.leaving .page-transition-overlay { transform: translateY(0); }

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Container */
.container { max-width: 1300px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(253,248,242,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow);
  background: rgba(253,248,242,0.98);
}
.header-spacer { height: var(--header-h); }
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}

/* Logo */
.header-logo a { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 1.8rem; line-height: 1; }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--primary); line-height: 1.1;
}
.logo-tagline {
  font-family: var(--font-ui);
  font-size: 0.63rem; color: var(--text-light);
  font-weight: 300; letter-spacing: 0.08em; text-transform: uppercase;
}

/* Nav */
.header-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list li a {
  font-family: var(--font-ui); font-size: 0.85rem;
  font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text); padding: 8px 14px;
  border-radius: 6px; position: relative;
  transition: color var(--transition);
}
.nav-list li a::after {
  content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px;
  height: 2px; background: var(--primary);
  transform: scaleX(0); transition: transform var(--transition);
  border-radius: 2px;
}
.nav-list li.active a, .nav-list li a:hover { color: var(--primary); }
.nav-list li.active a::after, .nav-list li a:hover::after { transform: scaleX(1); }

/* Controls */
.header-controls { display: flex; align-items: center; gap: 8px; }
.header-search-wrap { position: relative; }
.btn-search {
  background: none; border: none; cursor: pointer;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.btn-search:hover { color: var(--primary); background: var(--bg-2); }
.btn-search svg { width: 18px; height: 18px; }
.search-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; width: 280px; overflow: hidden;
  opacity: 0; transform: translateY(-8px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
.search-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: all; }
.search-input {
  flex: 1; border: none; outline: none; padding: 12px 16px;
  font-family: var(--font-ui); font-size: 0.9rem;
  background: transparent; color: var(--text);
}
.search-submit {
  background: var(--primary); border: none; cursor: pointer;
  padding: 12px 14px; color: white; transition: background var(--transition);
}
.search-submit:hover { background: var(--primary-dk); }
.search-submit svg { width: 16px; height: 16px; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.05em; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 20px;
  color: var(--text); transition: all var(--transition);
}
.lang-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* Hamburger */
.btn-hamburger {
  display: none; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.btn-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.3s;
}
.btn-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-hamburger.open span:nth-child(2) { opacity: 0; }
.btn-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none; background: var(--white);
  border-top: 1px solid var(--border);
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.mobile-menu.open { max-height: 400px; }
.mobile-nav-list { padding: 16px 24px 24px; }
.mobile-nav-list li { border-bottom: 1px solid var(--border); }
.mobile-nav-list li:last-child { border-bottom: none; }
.mobile-nav-list li a {
  display: block; padding: 14px 0;
  font-family: var(--font-ui); font-size: 1rem; font-weight: 500;
  color: var(--text); transition: color var(--transition);
}
.mobile-nav-list li a:hover { color: var(--primary); }

/* ===== HERO ===== */
.hero-section {
  position: relative; min-height: 600px;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 60%; transform: scale(1.05);
  transition: transform 8s ease-out;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg,rgba(26,18,8,0.62) 0%,rgba(26,18,8,0.28) 60%,rgba(26,18,8,0.15) 100%);
}
.hero-section.loaded .hero-bg img { transform: scale(1); }
.hero-content { position: relative; z-index: 1; width: 100%; padding: 80px 0; }
.hero-content .container { max-width: 720px; }
.hero-label {
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-label::before { content: ''; width: 32px; height: 1px; background: var(--accent); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.15;
  color: var(--white); margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.88);
  max-width: 500px; line-height: 1.8; margin-bottom: 36px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: white;
  font-family: var(--font-ui); font-size: 0.9rem;
  font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 32px; border-radius: 40px; border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(181,72,72,0.4);
}
.btn-primary:hover {
  background: var(--primary-dk); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(181,72,72,0.5);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--primary);
  font-family: var(--font-ui); font-size: 0.9rem;
  font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 13px 32px; border-radius: 40px;
  border: 2px solid var(--primary); cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--primary); color: white; transform: translateY(-2px); }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-2); }
.section-header {
  text-align: center; max-width: 700px; margin: 0 auto 60px;
}
.section-label {
  font-family: var(--font-ui); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary);
  margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.section-label::before, .section-label::after {
  content: ''; flex: 0 0 28px; height: 1px; background: var(--primary);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.2;
  color: var(--dark); margin-bottom: 16px;
}
.section-sub { font-size: 1rem; line-height: 1.85; color: var(--text-light); }

/* ===== SPLIT ===== */
.split-section { padding: 80px 0; overflow: hidden; }
.split-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.split-row.reverse { direction: rtl; }
.split-row.reverse > * { direction: ltr; }
.split-image {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-lg);
}
.split-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.split-image:hover img { transform: scale(1.04); }
.split-image::before {
  content: ''; position: absolute; inset: 0;
  border: 2px solid rgba(201,168,76,0.35);
  border-radius: var(--radius-lg); z-index: 1; pointer-events: none;
}
.split-content .section-label { justify-content: flex-start; }
.split-content .section-label::before { display: none; }
.split-content .section-title { text-align: left; }
.split-content p { color: var(--text-light); font-size: 1rem; line-height: 1.9; margin-bottom: 16px; }
.split-content ul { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.split-content ul li {
  padding: 16px 20px;
  background: var(--bg-2); border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem; line-height: 1.75; color: var(--text);
  transition: border-color var(--transition), background var(--transition);
}
.split-content ul li:hover { border-color: var(--secondary); background: #eee0ce; }
.split-content ul li strong { color: var(--primary); }

/* ===== PARALLAX BANNER ===== */
.parallax-section {
  position: relative; min-height: 380px;
  display: flex; align-items: center; overflow: hidden;
}
.parallax-bg { position: absolute; inset: 0; z-index: 0; }
.parallax-bg img { width: 100%; height: 120%; object-fit: cover; position: absolute; top: -10%; }
.parallax-bg::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(26,18,8,0.65);
}
.parallax-content {
  position: relative; z-index: 1; width: 100%;
  text-align: center; padding: 60px 0;
}
.parallax-content .section-title { color: white; }
.parallax-content .section-sub { color: rgba(255,255,255,0.82); max-width: 600px; margin: 0 auto 28px; }
.parallax-content .section-label { color: var(--accent); }
.parallax-content .section-label::before,
.parallax-content .section-label::after { background: var(--accent); }

/* ===== CATEGORY CARDS ===== */
.categories-section { padding: 80px 0; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px; margin-top: 0;
}
.cat-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card-image { aspect-ratio: 16/10; overflow: hidden; }
.cat-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.cat-card:hover .cat-card-image img { transform: scale(1.08); }
.cat-card-body { padding: 24px 24px 28px; text-align: center; }
.cat-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 700;
  color: var(--dark); margin-bottom: 12px;
}
.cat-card-body p {
  font-size: 0.93rem; color: var(--text-light);
  line-height: 1.75; margin-bottom: 20px; font-style: italic;
}
.btn-cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary); border-bottom: 1.5px solid var(--primary);
  padding-bottom: 2px; transition: gap var(--transition);
}
.btn-cat:hover { gap: 10px; }
.btn-cat svg { width: 14px; height: 14px; }

/* ===== POSTS GRID ===== */
.posts-section { padding: 60px 0 80px; }
.section-title-bar {
  display: flex; align-items: center; gap: 16px; margin-bottom: 40px;
}
.section-title-bar h2 {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  color: var(--dark); white-space: nowrap;
}
.title-line { flex: 1; height: 1px; background: var(--border); }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-card-image { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.post-card-image img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.06); }
.post-date-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: white;
  border-radius: var(--radius); padding: 6px 10px;
  text-align: center; min-width: 44px;
  font-family: var(--font-ui);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.post-date-badge .day { display: block; font-size: 1rem; font-weight: 700; line-height: 1; }
.post-date-badge .month { display: block; font-size: 0.6rem; text-transform: uppercase; opacity: 0.85; }
.post-card-body { padding: 20px; border-top: 2px solid transparent; transition: border-color var(--transition); }
.post-card:hover .post-card-body { border-color: var(--primary); }
.post-card-tag {
  font-family: var(--font-ui); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 8px;
}
.post-card-title {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  line-height: 1.45; color: var(--dark); margin-bottom: 12px;
}
.post-card-title a { color: inherit; transition: color var(--transition); }
.post-card-title a:hover { color: var(--primary); }
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.post-card-more {
  font-family: var(--font-ui); font-size: 0.8rem; color: var(--text-light);
  display: flex; align-items: center; gap: 4px;
  transition: color var(--transition), gap var(--transition);
}
.post-card:hover .post-card-more { color: var(--primary); gap: 8px; }

/* ===== PAGE HERO ===== */
.page-hero {
  position: relative; min-height: 360px;
  display: flex; align-items: center; overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg,rgba(26,18,8,0.72) 0%,rgba(26,18,8,0.35) 100%);
}
.page-hero-content { position: relative; z-index: 1; padding: 60px 0; }
.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700;
  color: white; line-height: 1.15; margin-bottom: 16px;
}
.page-hero-content p { font-size: 1.05rem; color: rgba(255,255,255,0.85); max-width: 520px; line-height: 1.8; }
.page-hero-content .hero-label { color: var(--accent); }

.breadcrumb {
  padding: 14px 0; font-family: var(--font-ui); font-size: 0.82rem;
  color: var(--text-light); border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* Page Content */
.page-content { padding: 60px 0 80px; }
.page-intro { max-width: 800px; margin: 0 auto 60px; text-align: center; }
.page-intro h2 {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 700;
  color: var(--dark); margin-bottom: 16px;
}
.page-intro p { font-size: 1rem; color: var(--text-light); line-height: 1.9; }

/* Recipe card special */
.recipe-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.recipe-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.recipe-card-image { aspect-ratio: 4/3; overflow: hidden; }
.recipe-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.recipe-card:hover .recipe-card-image img { transform: scale(1.06); }
.recipe-card-body { padding: 24px; }
.recipe-card-body h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  color: var(--dark); margin-bottom: 10px;
}
.recipe-card-body p { font-size: 0.9rem; color: var(--text-light); line-height: 1.75; margin-bottom: 16px; }
.recipe-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-ui); font-size: 0.78rem; color: var(--text-light);
  margin-bottom: 16px; padding: 12px 0; border-top: 1px solid var(--border);
}
.recipe-meta span { display: flex; align-items: center; gap: 4px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark-2); color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo .logo-name {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--accent);
}
.footer-about p { font-size: 0.9rem; line-height: 1.8; }
.footer-col h4 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  color: white; margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li { font-size: 0.88rem; line-height: 1.6; }
.footer-col ul li a { color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0; text-align: center;
  font-family: var(--font-ui); font-size: 0.82rem; color: rgba(255,255,255,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .btn-hamburger { display: flex; }
  .mobile-menu { display: block; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .split-row { grid-template-columns: 1fr; gap: 36px; }
  .split-row.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .section { padding: 56px 0; }
  .posts-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-section { min-height: 480px; }
  .parallax-section { min-height: 280px; }
  .logo-tagline { display: none; }
}
