/*
Theme Name: Sơn Trang C5
Theme URI: https://sontrangc5.vn
Author: Sơn Trang C5
Description: Giao diện WordPress riêng cho Nhà hàng Sơn Trang C5.
Version: 1.0.1
Text Domain: sontrangc5
*/

:root {
  --forest-950: #0a1710;
  --forest-900: #102319;
  --forest-800: #173524;
  --forest-700: #245035;
  --cream: #f5efdf;
  --cream-2: #e9dec4;
  --gold: #d9ab5a;
  --gold-soft: #edcf95;
  --terracotta: #b45132;
  --ink: #162018;
  --white: #fffdf7;
  --muted: #aab7ac;
  --border: rgba(255, 255, 255, 0.13);
  --shadow: 0 24px 70px rgba(4, 12, 7, 0.22);
  --container: min(1180px, calc(100vw - 48px));
  --serif: "Roboto", Arial, sans-serif;
  --sans: "Roboto", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  background: var(--forest-950);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.container { width: var(--container); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  color: var(--gold-soft); font-size: 12px; font-weight: 800; letter-spacing: .22em;
  line-height: 1.2; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.section-title {
  max-width: 820px; margin: 0; color: var(--white); font-family: var(--serif);
  font-size: clamp(42px, 6vw, 80px); font-weight: 500; line-height: .98; letter-spacing: -.04em;
}
.section-title em { color: var(--gold); font-weight: 500; }
.section-intro { max-width: 610px; margin: 24px 0 0; color: #c8d0c9; font-size: 17px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, transform .3s;
}
.site-header::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--border); }
.site-header.is-scrolled { background: rgba(9, 23, 15, .94); box-shadow: 0 10px 40px rgba(0,0,0,.22); backdrop-filter: blur(14px); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--gold); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { color: var(--white); font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .04em; }
.brand-copy small { margin-top: 6px; color: var(--gold-soft); font-size: 9px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); }
.primary-nav a { position: relative; color: #f6f1e4; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--gold); transition: right .25s; }
.primary-nav a:not(.nav-cta):hover::after { right: 0; }
.nav-cta, .button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 22px; border: 1px solid var(--gold); border-radius: 999px; font-size: 13px;
  font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: .25s ease;
}
.nav-cta, .button-gold { color: var(--forest-950) !important; background: var(--gold); }
.nav-cta:hover, .button-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.button-ghost { color: var(--white); background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.45); }
.button-ghost:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: rgba(255,255,255,.05); }
.menu-toggle span { display: block; width: 19px; height: 1px; margin: 5px auto; background: var(--white); transition: .25s; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.hero-media, .hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media video, .hero-media img { object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(5,14,8,.9) 0%, rgba(5,14,8,.58) 42%, rgba(5,14,8,.2) 72%),
  linear-gradient(0deg, rgba(5,14,8,.94) 0%, transparent 50%, rgba(5,14,8,.35) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 170px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 780px) 1fr; align-items: end; gap: 70px; }
.hero h1 { margin: 0; color: var(--white); font-family: var(--serif); font-size: clamp(58px, 8.7vw, 126px); font-weight: 500; letter-spacing: -.055em; line-height: .82; }
.hero h1 em { display: block; color: var(--gold); font-size: .78em; font-weight: 500; }
.hero-lead { max-width: 610px; margin: 28px 0 0; color: #edf0e9; font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-side { align-self: end; padding-bottom: 6px; }
.hero-card { padding: 24px; border: 1px solid var(--border); background: rgba(13,35,22,.56); backdrop-filter: blur(10px); }
.hero-card-label { color: var(--gold-soft); font-size: 10px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.hero-card p { margin: 12px 0 0; color: var(--white); font-family: var(--serif); font-size: 23px; line-height: 1.25; }
.hero-meta { position: relative; z-index: 2; border-top: 1px solid var(--border); background: rgba(7,19,12,.55); }
.hero-meta .container { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hero-meta-item { display: flex; align-items: center; gap: 10px; color: #d8ddd7; font-size: 13px; }
.hero-meta-item svg { width: 18px; color: var(--gold); }

/* About */
.about { padding: 150px 0; background: var(--cream); color: var(--ink); }
.about .eyebrow { color: #8e672e; }
.about .section-title { color: var(--forest-900); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 8vw, 120px); align-items: center; }
.about-copy p { margin: 26px 0 0; color: #455249; font-size: 18px; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 38px; }
.about-point { padding-top: 18px; border-top: 1px solid rgba(19,51,33,.2); }
.about-point strong { display: block; color: var(--forest-800); font-family: var(--serif); font-size: 25px; font-weight: 600; }
.about-point span { color: #677269; font-size: 13px; }
.about-visual { position: relative; min-height: 680px; }
.about-visual .image-main { width: 78%; height: 610px; margin-left: auto; object-fit: cover; box-shadow: var(--shadow); }
.about-visual .image-float { position: absolute; left: 0; bottom: 0; width: 48%; height: 270px; object-fit: cover; border: 10px solid var(--cream); box-shadow: var(--shadow); }
.about-seal { position: absolute; top: 44px; left: 5%; width: 126px; height: 126px; display: grid; place-items: center; border-radius: 50%; color: var(--cream); background: var(--terracotta); transform: rotate(-8deg); text-align: center; box-shadow: var(--shadow); }
.about-seal span { max-width: 85px; font-family: var(--serif); font-size: 17px; line-height: 1.2; }

/* Specialties */
.specialties { padding: 140px 0; position: relative; overflow: hidden; background: var(--forest-900); }
.specialties::before { content: ""; position: absolute; width: 560px; height: 560px; right: -220px; top: -230px; border: 1px solid rgba(217,171,90,.15); border-radius: 50%; box-shadow: 0 0 0 80px rgba(217,171,90,.025), 0 0 0 160px rgba(217,171,90,.018); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 68px; }
.section-head .section-intro { margin-bottom: 8px; }
.dish-list { border-top: 1px solid var(--border); }
.dish-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 26px; align-items: center; min-height: 104px; border-bottom: 1px solid var(--border); transition: .25s; }
.dish-row:hover { padding-inline: 14px; background: rgba(255,255,255,.035); }
.dish-index { color: var(--gold); font-family: var(--serif); font-size: 17px; }
.dish-name { color: var(--white); font-family: var(--serif); font-size: clamp(25px, 3.3vw, 42px); line-height: 1; }
.dish-note { color: var(--muted); font-size: 13px; text-align: right; }

/* Spaces */
.spaces { padding: 150px 0; background: #f1e8d4; color: var(--ink); }
.spaces .eyebrow { color: #8e672e; }
.spaces .section-title { color: var(--forest-900); }
.spaces .section-intro { color: #59655c; }
.gallery { display: grid; grid-template-columns: 1.3fr .7fr 1fr; grid-template-rows: 310px 230px; gap: 15px; margin-top: 70px; }
.gallery-item { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 0; background: #d8cfbc; cursor: zoom-in; }
.gallery-item:nth-child(1) { grid-row: 1 / 3; }
.gallery-item:nth-child(4) { grid-column: 2 / 4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.gallery-item::after { content: "+"; position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; color: white; background: rgba(10,23,16,.38); font-size: 24px; opacity: 0; transform: translateY(8px); transition: .25s; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item:hover::after { opacity: 1; transform: none; }
.gallery-caption { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 26px; color: #5f6b62; font-size: 14px; }

/* Occasions */
.occasions { padding: 140px 0; background: var(--forest-950); }
.occasion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 70px; background: var(--border); border: 1px solid var(--border); }
.occasion-card { min-height: 360px; padding: 38px; display: flex; flex-direction: column; background: var(--forest-950); transition: background .25s; }
.occasion-card:hover { background: var(--forest-900); }
.occasion-number { color: var(--gold); font-family: var(--serif); font-size: 17px; }
.occasion-card h3 { margin: auto 0 14px; color: var(--white); font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.05; }
.occasion-card p { margin: 0; color: var(--muted); }

/* Story */
.story { position: relative; min-height: 740px; display: grid; align-items: center; isolation: isolate; }
.story-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.story::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,21,13,.93) 0%, rgba(8,21,13,.72) 45%, rgba(8,21,13,.2) 100%); }
.story-copy { max-width: 700px; padding: 110px 0; }
.story-quote { margin: 0; color: var(--white); font-family: var(--serif); font-size: clamp(40px, 6vw, 76px); line-height: 1.04; letter-spacing: -.035em; }
.story-quote em { color: var(--gold); }
.story-copy p { max-width: 550px; margin: 28px 0 0; color: #e6ebe5; font-size: 18px; }

/* Contact */
.contact { padding: 140px 0 120px; background: var(--cream); color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(60px, 10vw, 150px); }
.contact .eyebrow { color: #8e672e; }
.contact .section-title { color: var(--forest-900); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.contact .button-ghost { color: var(--forest-900); border-color: rgba(16,35,25,.32); }
.contact-info { display: grid; align-content: start; }
.contact-line { padding: 22px 0; border-bottom: 1px solid rgba(16,35,25,.18); }
.contact-line:first-child { border-top: 1px solid rgba(16,35,25,.18); }
.contact-label { display: block; margin-bottom: 8px; color: #7c6b4c; font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.contact-line a, .contact-line address { color: var(--forest-900); font-family: var(--serif); font-size: 25px; font-style: normal; line-height: 1.35; }
.contact-note { margin-top: 25px; color: #626e65; font-size: 13px; }

/* Footer */
.site-footer { padding: 70px 0 34px; background: #07110b; }
.footer-top { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; padding-bottom: 54px; border-bottom: 1px solid var(--border); }
.footer-title { margin: 18px 0 0; max-width: 720px; color: var(--white); font-family: var(--serif); font-size: clamp(36px, 5vw, 66px); font-weight: 500; line-height: 1; letter-spacing: -.035em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 30px; color: #849087; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a:hover { color: var(--gold-soft); }
.mobile-dock { display: none; }

/* Motion and lightbox */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 28px; background: rgba(2,8,4,.94); }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1200px, 94vw); max-height: 88vh; object-fit: contain; box-shadow: 0 20px 80px rgba(0,0,0,.48); }
.lightbox-close { position: absolute; top: 22px; right: 22px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: white; background: transparent; font-size: 28px; cursor: pointer; }

@media (max-width: 980px) {
  :root { --container: min(100% - 34px, 760px); }
  .header-inner { min-height: 76px; }
  .menu-toggle { display: block; z-index: 3; }
  .primary-nav { position: fixed; inset: 0; padding: 120px 30px 60px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; background: var(--forest-950); opacity: 0; visibility: hidden; transform: translateY(-14px); transition: .3s; }
  .primary-nav a { font-family: var(--serif); font-size: 31px; letter-spacing: 0; text-transform: none; }
  .primary-nav .nav-cta { margin-top: 12px; font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
  .menu-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
  .menu-open .menu-toggle span:first-child { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:last-child { transform: translateY(-6px) rotate(-45deg); }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .hero-content { padding-bottom: 46px; }
  .hero-side { max-width: 380px; }
  .hero-meta .container { justify-content: flex-start; overflow-x: auto; }
  .hero-meta-item { min-width: max-content; }
  .about-visual { min-height: 600px; order: -1; }
  .about-visual .image-main { height: 540px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 330px 240px 240px; }
  .gallery-item:nth-child(1) { grid-row: 1 / 2; grid-column: 1 / 3; }
  .gallery-item:nth-child(4) { grid-column: auto; }
  .occasion-grid { grid-template-columns: 1fr; }
  .occasion-card { min-height: 270px; }
}

@media (max-width: 640px) {
  :root { --container: calc(100% - 28px); }
  body { padding-bottom: 67px; }
  .brand-copy strong { font-size: 19px; }
  .brand-copy small { font-size: 8px; }
  .hero { min-height: 860px; }
  .hero-content { padding-top: 130px; }
  .hero h1 { font-size: clamp(55px, 17vw, 78px); }
  .hero-side { display: none; }
  .hero-lead { font-size: 17px; }
  .hero-actions .button { flex: 1 1 100%; }
  .hero-meta { display: none; }
  .about, .spaces, .contact { padding: 100px 0; }
  .specialties, .occasions { padding: 100px 0; }
  .section-title { font-size: 47px; }
  .about-points { grid-template-columns: 1fr; }
  .about-visual { min-height: 460px; }
  .about-visual .image-main { width: 88%; height: 420px; }
  .about-visual .image-float { width: 52%; height: 180px; border-width: 7px; }
  .about-seal { top: 22px; width: 105px; height: 105px; }
  .section-head { display: block; margin-bottom: 44px; }
  .dish-row { grid-template-columns: 38px 1fr; min-height: 94px; gap: 14px; }
  .dish-note { display: none; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: repeat(4, 250px); }
  .gallery-item:nth-child(1), .gallery-item:nth-child(4) { grid-column: auto; grid-row: auto; }
  .gallery-item:nth-child(n+5) { display: none; }
  .gallery-caption { align-items: flex-start; flex-direction: column; gap: 8px; }
  .story { min-height: 660px; }
  .contact-line a, .contact-line address { font-size: 21px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .mobile-dock { position: fixed; inset: auto 0 0; z-index: 60; height: 67px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.12); background: rgba(7,17,11,.98); }
  .mobile-dock a { display: grid; place-items: center; color: #e9e9df; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .mobile-dock a:nth-child(2) { color: var(--forest-950); background: var(--gold); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

