/*
Theme Name: Lala Studio
Theme URI: https://laladecorvn.com
Author: Lala Decor
Description: Giao diện tối giản dạng gallery cho Công ty TNHH Lala Decor – slider toàn màn hình, lưới dự án 2 cột, quy trình 2 giai đoạn.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: lala
*/

:root {
  --ink: #111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --accent: #5E8467;
  --accent-soft: #E6EDE3;
  --dark: #0c0c0c;
  --header-h: 70px;
  --gutter: 20px;
  --wrap: 1260px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 300; font-size: 15px; line-height: 1.75; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.3; font-weight: 400; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
svg { flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand-text { font-size: 26px; font-weight: 300; letter-spacing: .02em; white-space: nowrap; }
.brand-text b { font-weight: 600; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 46px; }
.main-nav a { font-size: 14px; font-weight: 300; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-menu-ancestor > a { color: var(--accent); }
.icon-btn { width: 40px; height: 40px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; padding: 0; color: inherit; }
.icon-btn svg { width: 20px; height: 20px; }
.search-toggle { order: -1; }
.main-nav + .search-toggle { order: 0; }
.nav-toggle { display: none; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 5px auto; transition: transform .25s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.search-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 18px 0; }
.search-panel form { display: flex; gap: 12px; align-items: center; }
.search-panel input { flex: 1; border: 0; border-bottom: 1px solid var(--ink); padding: 10px 0; font-size: 16px; outline: none; background: transparent; }
.search-panel button { border: 0; background: var(--ink); color: #fff; padding: 10px 22px; cursor: pointer; }

/* Home: header floats over the slider */
.home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: #fff; }
.home .site-header .brand img { filter: brightness(0) invert(1); }
.home .main-nav a:hover, .home .main-nav .current-menu-item > a { color: #fff; opacity: .75; }

/* ---------- Slider ---------- */
.slider { position: relative; height: 100vh; height: 100svh; min-height: 480px; background: #222; overflow: hidden; color: #fff; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.slide.is-active img { transform: scale(1); }
.slider::before { content: ""; position: absolute; inset: 0 0 auto; height: 160px; z-index: 1; background: linear-gradient(rgba(0, 0, 0, .45), transparent); pointer-events: none; }
.slider::after { content: ""; position: absolute; inset: auto 0 0; height: 200px; z-index: 1; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); pointer-events: none; }
.slider-arrow { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 48px; height: 48px; border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; opacity: .8; transition: opacity .2s; }
.slider-arrow:hover { opacity: 1; }
.slider-arrow svg { width: 30px; height: 30px; }
.slider-arrow.prev { left: 6px; }
.slider-arrow.next { right: 6px; }
.slider-caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 34px; }
.slider-caption .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.slide-title { font-size: 15px; }
.slide-title a { border-bottom: 1px solid rgba(255, 255, 255, .5); padding-bottom: 2px; }
.slide-title a:hover { border-color: #fff; }
.copyright { font-size: 13px; opacity: .9; }
.slider-dots { display: flex; gap: 8px; margin-top: 12px; }
.slider-dots button { width: 22px; height: 2px; border: 0; padding: 0; background: rgba(255, 255, 255, .45); cursor: pointer; }
.slider-dots button.is-active { background: #fff; }

/* ---------- Page title & toolbar ---------- */
.page-title { text-align: center; font-size: 21px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin: 34px 0 26px; }
.page-intro { font-size: 17px; font-weight: 300; letter-spacing: .01em; margin-bottom: 64px; }
.toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 20px; margin: 30px 0 26px; font-size: 14px; }
.toolbar label { display: inline-flex; align-items: center; gap: 6px; }
.toolbar select { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 2px 0; }
.toolbar a { display: inline-flex; align-items: center; gap: 4px; }
.toolbar svg { width: 16px; height: 16px; }

/* ---------- Project tiles ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; }
.tile a { display: block; }
.tile-media { aspect-ratio: 610 / 484; overflow: hidden; background: #f2f2f2; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile-title { text-align: center; font-size: 18px; margin: 18px 0 0; transition: color .2s; }
.tile:hover .tile-title { color: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

.pagination { margin: 56px 0 0; }
.pagination .nav-links { display: flex; justify-content: center; gap: 6px; }
.page-numbers { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); font-size: 14px; }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Single project ---------- */
.project-title { text-align: center; font-size: 18px; margin: 0 0 20px; }
.project-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 28px; font-size: 13px; color: var(--muted); margin: -8px 0 26px; }
.project-meta b { color: var(--ink); font-weight: 400; }
.project-lead { max-width: 760px; margin: 0 auto 30px; text-align: center; color: var(--muted); }
.stack { max-width: 900px; margin: 0 auto; display: grid; gap: 20px; }
.stack img { width: 100%; }
.project-nav { max-width: 900px; margin: 48px auto 0; display: flex; justify-content: space-between; gap: 20px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 22px; }
.project-nav a:hover { color: var(--accent); }

/* ---------- About ---------- */
.about-lead { font-size: 17px; letter-spacing: .01em; }
.team-title { text-align: center; font-size: 21px; font-weight: 300; margin: 80px 0 36px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }
.member-photo { aspect-ratio: 3 / 4; background: #f1f1f1; display: grid; place-items: center; overflow: hidden; margin-bottom: 16px; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s; }
.member:hover .member-photo img { filter: none; }
.member-initials { font-size: 44px; font-weight: 200; color: #9a9a9a; }
.member h3 { font-size: 17px; margin: 0; text-align: center; }
.member-role { display: block; text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 2px 0 8px; }
.member p { font-size: 14px; color: var(--muted); text-align: center; margin: 0; }

/* ---------- Workflow ---------- */
.phase-title { font-size: 26px; font-weight: 300; text-transform: uppercase; margin: 10px 0 24px; }
.phase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 40px; margin-bottom: 50px; }
.wf-step { display: grid; grid-template-columns: 56px 1fr; gap: 14px; }
.wf-step svg { width: 50px; height: 50px; color: var(--ink); }
.wf-step .num { font-size: 18px; display: block; margin-bottom: 8px; }
.wf-step h3 { font-size: 15px; margin: 0; }
.wf-step p { font-size: 14px; color: var(--muted); margin: 4px 0 0; }

/* ---------- Blog ---------- */
.post-card { border: 1px solid var(--line); display: flex; flex-direction: column; }
.post-card .tile-media { aspect-ratio: 615 / 451; }
.post-body { padding: 28px 30px 34px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.post-body h2 { font-size: 20px; margin: 0; line-height: 1.5; }
.post-body h2 a:hover { color: var(--accent); }
.see-more { color: var(--accent); font-size: 15px; margin-top: auto; }
.see-more:hover { text-decoration: underline; }
.post-date { font-size: 13px; color: var(--muted); text-align: center; margin: -14px 0 26px; }
.entry { max-width: 820px; margin: 0 auto; font-size: 16px; }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { font-size: 22px; margin-top: 1.8em; font-weight: 400; }
.entry ul { padding-left: 1.2em; }
.entry a { color: var(--accent); text-decoration: underline; }
.entry figure { margin: 1.8em 0; }
.entry .lead { font-size: 18px; }
.post-cover { max-width: 1000px; margin: 0 auto 36px; }

/* ---------- Contact ---------- */
.contact-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; margin-top: 20px; }
.pill { height: 500px; background: var(--accent-soft); border-radius: 0 250px 250px 0; display: flex; align-items: center; padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.pill h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 700; margin: 0; letter-spacing: -.01em; }
.contact-info { padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); display: grid; gap: 26px; }
.contact-info dt { font-weight: 700; font-size: 18px; text-transform: uppercase; }
.contact-info dd { margin: 2px 0 0; font-size: 19px; font-weight: 300; }
.contact-info a:hover { color: var(--accent); }
.contact-form { max-width: 1000px; margin: 60px auto 0; }
.line-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 40px; }
.line-grid .full { grid-column: 1 / -1; }
.line-grid input, .line-grid textarea { width: 100%; border: 0; border-bottom: 1px solid var(--ink); padding: 18px 0 12px; font-size: 15px; background: transparent; outline: none; border-radius: 0; }
.line-grid input:focus, .line-grid textarea:focus { border-color: var(--accent); }
.line-grid textarea { min-height: 180px; resize: vertical; }
.line-grid ::placeholder { color: #777; text-transform: uppercase; font-size: 14px; }
.form-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.btn-dark { min-width: 140px; height: 50px; border: 0; background: var(--ink); color: #fff; font-size: 15px; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.btn-dark:hover { background: var(--accent); }
.hp { position: absolute; left: -9999px; }
.notice { max-width: 1000px; margin: 0 auto 10px; padding: 14px 18px; font-size: 15px; }
.notice-ok { background: var(--accent-soft); color: #2b4a33; }
.notice-err { background: #fbeae7; color: #8a2d1f; }
.map { margin-top: 80px; }
.map iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.4); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #fff; margin-top: 70px; }
.experience { text-align: center; padding: 60px 0 0; }
.experience h2 { font-size: 21px; font-weight: 300; margin-bottom: 18px; }
.quick-form { width: min(770px, 100%); margin: 0 auto 30px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #444; }
.quick-form input { flex: 1; border: 0; background: transparent; color: #fff; padding: 12px 4px; font-size: 14px; outline: none; }
.quick-form input::placeholder { color: #888; }
.quick-form button { border: 0; background: none; color: #bbb; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; }
.quick-form button:hover { color: #fff; }
.quick-form svg { width: 18px; height: 18px; }
.quick-note { font-size: 14px; color: var(--accent-soft); margin: -16px 0 24px; }
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; padding: 0 3%; }
.strip a { display: block; aspect-ratio: 261 / 209; overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s, opacity .3s; }
.strip a:hover img { transform: scale(1.05); opacity: .85; }
.footer-bar { margin-top: 60px; border-top: 1px solid #262626; }
.footer-bar .inner { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 40px; padding: 24px 3%; font-size: 14px; color: #ccc; }
.footer-bar .brand-text { color: #fff; font-size: 34px; }
.footer-bar .addr { text-align: center; }
.socials { display: flex; gap: 14px; }
.socials a { width: 32px; height: 32px; display: grid; place-items: center; color: #aaa; font-size: 12px; font-weight: 700; }
.socials a:hover { color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer-legal { text-align: center; font-size: 12px; color: #777; padding: 0 3% 22px; }

/* ---------- Floating contact ---------- */
.float-contact { position: fixed; right: 14px; top: 58%; z-index: 40; display: flex; flex-direction: column; gap: 14px; }
.float-contact a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #0068FF; box-shadow: 0 0 0 6px rgba(0, 104, 255, .15); transition: transform .2s; }
.float-contact a:hover { transform: scale(1.06); }
.float-contact svg { width: 24px; height: 24px; }
.fc-zalo { font-size: 13px; font-weight: 700; }
.fc-label, .fc-form { display: none !important; }
.to-top { position: fixed; right: 22px; bottom: 26px; z-index: 40; width: 40px; height: 40px; border: 0; background: none; color: #555; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top svg { width: 30px; height: 30px; }
.home .to-top { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav ul { gap: 28px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .phase { grid-template-columns: repeat(2, 1fr); }
  .footer-bar .inner { grid-template-columns: 1fr 1fr; text-align: left; }
  .footer-bar .addr { text-align: left; }
}
@media (max-width: 960px) {
  :root { --header-h: 60px; }
  .header-inner { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; }
  .nav-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; order: 0; }
  .nav-toggle span { margin: 0; }
  .header-inner .brand { order: 1; justify-self: center; }
  .header-inner .brand img { height: 32px; }
  .header-inner .brand-text { font-size: 21px; }
  .home.nav-open .site-header { background: #fff; color: var(--ink); border-color: var(--line); }
  .home.nav-open .site-header .brand img { filter: none; }
  .search-toggle, .main-nav + .search-toggle { order: 2; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; color: var(--ink); padding: 16px var(--gutter); transform: translateX(-100%); visibility: hidden; transition: transform .3s, visibility .3s; overflow-y: auto; margin: 0; }
  .admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 15px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .home .main-nav a { color: var(--ink); }
  .contact-hero { grid-template-columns: 1fr; }
  .pill { height: 240px; margin-right: 16px; border-radius: 0 120px 120px 0; }
  .contact-info { padding: 0 var(--gutter); }
}
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .grid-2, .line-grid, .phase, .footer-bar .inner { grid-template-columns: 1fr; }
  .grid-2 { gap: 30px; }
  .team-grid { gap: 26px 14px; }
  .page-intro { margin-bottom: 40px; }
  .toolbar { justify-content: space-between; }
  .slider-arrow { width: 40px; }
  .slider-arrow svg { width: 26px; height: 26px; }
  .slider-caption .wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 6px; }
  .strip a { flex: 0 0 70%; scroll-snap-align: start; }
  .footer-bar .inner { text-align: center; gap: 14px; }
  .footer-bar .addr { text-align: center; }
  .socials { justify-content: center; }
  .contact-info dd { font-size: 17px; }
  /* bottom contact bar */
  .float-contact { top: auto; left: 0; right: 0; bottom: 0; flex-direction: row; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .float-contact a { flex: 1; width: auto; height: 48px; border-radius: 0; box-shadow: none; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 500; }
  .home .slider { height: calc(100svh - 66px - env(safe-area-inset-bottom)); min-height: 420px; }
  .slider-caption { bottom: 18px; }
  .float-contact svg { width: 18px; height: 18px; }
  .fc-phone { background: var(--ink) !important; }
  .fc-label { display: inline !important; }
  .fc-form { display: flex !important; background: var(--accent-soft) !important; color: var(--ink) !important; }
  .to-top { display: none; }
  .footer-bar .brand { justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
