/*
Theme Name: Mandu Life
Theme URI: https://echo.l-langji.com/
Author: Codex
Description: A responsive wellness and beauty company theme inspired by the supplied reference site.
Version: 1.0.0
Text Domain: mandu-life
*/

:root {
  --ink: #333534;
  --muted: #777c78;
  --sage: #9bc696;
  --sage-soft: #e8f0e7;
  --paper: #ffffff;
  --mist: #f5f6f5;
  --line: #dfe3df;
  --dark: #4c4d4c;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 15px; line-height: 1.7; }
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(920px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow { margin: 0 0 5px; color: #8ca587; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.section-title { margin: 0; font-size: clamp(32px, 4vw, 50px); line-height: 1; font-weight: 300; letter-spacing: -.035em; }
.section-subtitle { margin: 3px 0 0; color: #777; font-family: var(--serif); font-size: 14px; font-style: italic; }
.section-head { text-align: center; margin-bottom: 54px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-width: 142px; padding: 13px 25px; border: 1px solid #c9cec9; background: transparent; color: #505450; font-size: 12px; letter-spacing: .05em; transition: .25s ease; }
.btn:hover { color: #fff; border-color: var(--sage); background: var(--sage); transform: translateY(-2px); }
.btn-light { color: #6c8768; background: #fff; border-color: #fff; }

.site-header { position: sticky; z-index: 50; top: 0; height: 74px; background: rgba(255,255,255,.96); box-shadow: 0 1px 0 rgba(0,0,0,.05); backdrop-filter: blur(8px); }
.header-inner { height: 74px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 13px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.nav-list { display: flex; align-items: center; gap: 42px; margin: 0; padding: 0; list-style: none; }
.nav-list a { position: relative; font-size: 12px; font-weight: 600; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--sage); transition: .25s; }
.nav-list a:hover::after, .nav-list .current-menu-item a::after { right: 0; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 9px; border: 0; background: transparent; }
.menu-toggle span { display: block; height: 1px; margin: 6px 0; background: #333; }

.hero { position: relative; min-height: 720px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(50,40,32,.18)), url('assets/hero.jpg') center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 150px; background: linear-gradient(transparent, rgba(0,0,0,.08)); pointer-events: none; }
.hero-copy { position: absolute; z-index: 2; left: 60%; width: min(430px, 36vw); color: #fff; text-shadow: 0 1px 16px rgba(0,0,0,.13); }
.hero-copy h1 { margin: 0 0 18px; font-size: clamp(34px, 3.2vw, 50px); line-height: .95; font-weight: 400; letter-spacing: -.04em; white-space: nowrap; }
.hero-copy h1 span { display: block; margin-top: 12px; font-size: .33em; font-weight: 400; letter-spacing: .11em; }
.hero-copy p { max-width: 330px; margin: 0 0 28px; font-family: var(--serif); font-size: 16px; }

.about-home { padding: 110px 0; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 105px; align-items: center; }
.about-photo { position: relative; width: 100%; max-width: 460px; margin-left: auto; }
.about-photo::before { content: ""; position: absolute; inset: -20px 22px 22px -20px; z-index: -1; border: 1px solid var(--sage-soft); }
.about-photo img { width: 100%; aspect-ratio: .76; object-fit: cover; }
.about-copy { max-width: 500px; }
.about-copy p { margin: 22px 0 36px; color: #737773; }

.services-home { position: relative; padding: 100px 0 130px; background: linear-gradient(to bottom, #f4f7f4 0 58%, #e4eee3 58%); overflow: hidden; }
.services-home::before { content: ""; position: absolute; left: calc(50% - 470px); top: 46px; width: 380px; height: 390px; opacity: .85; background: url('assets/oil.png') center/contain no-repeat; }
.service-intro { position: relative; z-index: 2; max-width: 540px; margin: 0 0 55px auto; text-align: center; }
.service-intro p { color: #777; font-size: 13px; }
.service-grid { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.service-card { min-height: 330px; padding: 48px 24px 35px; background: #fff; text-align: center; box-shadow: 0 12px 30px rgba(49,67,48,.05); transition: .3s ease; }
.service-card:hover { transform: translateY(-9px); box-shadow: 0 18px 38px rgba(49,67,48,.12); }
.service-icon { width: 82px; height: 82px; display: grid; place-items: center; margin: 0 auto 62px; color: #9aaf94; font-family: var(--serif); font-size: 42px; border: 1px solid #cfdbcc; border-radius: 50%; }
.service-card h3 { margin: 0; font-size: 17px; }
.service-card p { margin: 4px 0 0; color: #aaa; font-family: var(--serif); font-size: 12px; }

.team-home { padding: 100px 0 0; }
.team-slider { position: relative; min-height: 540px; overflow: hidden; }
.team-slide { display: none; grid-template-columns: 1.3fr .7fr; align-items: end; min-height: 500px; }
.team-slide.is-active { display: grid; }
.team-copy { align-self: center; max-width: 610px; padding: 50px 0 90px; }
.team-copy h3 { margin: 0; font-size: 19px; text-decoration: underline; text-decoration-color: #cbd7c9; text-underline-offset: 5px; }
.team-role { margin: 1px 0 12px; color: #aaa; font-size: 12px; }
.team-copy p { color: #777; font-size: 13px; }
.team-photo { align-self: end; }
.team-photo img { width: 100%; max-height: 470px; object-fit: contain; object-position: bottom; }
.slider-arrow { position: absolute; z-index: 4; top: 50%; width: 45px; height: 45px; border: 0; background: transparent; color: #c9cdc9; font-size: 42px; cursor: pointer; }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
.slider-dots { position: absolute; z-index: 5; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 8px; }
.slider-dot { width: 9px; height: 9px; padding: 0; border: 0; background: #d7dad7; cursor: pointer; }
.slider-dot.is-active { background: #eab7b7; }

.knowledge-home { padding: 100px 0 80px; background: #f6f6f6; }
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid #eee; }
.news-card { min-width: 0; background: #fff; border-right: 1px solid #eee; }
.news-card:last-child { border-right: 0; }
.news-image { aspect-ratio: 1.55; overflow: hidden; background: #eee; }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.news-card:hover img { transform: scale(1.04); }
.news-body { padding: 28px; }
.news-body h3 { margin: 0 0 10px; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.news-body p { display: -webkit-box; margin: 0 0 14px; overflow: hidden; color: #8d918d; font-size: 12px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-meta { color: #b2b5b2; font-size: 11px; }
.brand-strip { padding: 80px 0; background: #fff; }
.brand-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; align-items: center; }
.brand-tile { aspect-ratio: 1.5; display: grid; place-items: center; border: 1px solid #eef0ee; color: #9aa69a; font-family: var(--serif); font-size: 17px; letter-spacing: .08em; }
.sage-band { height: 155px; background: var(--sage); }

.page-hero { min-height: 360px; display: grid; place-items: center; color: #fff; text-align: center; background: linear-gradient(rgba(30,35,30,.27),rgba(30,35,30,.27)), url('assets/page-hero.jpg') center/cover no-repeat; }
.page-hero h1 { margin: 0; font-size: clamp(38px,6vw,64px); font-weight: 300; letter-spacing: -.04em; }
.page-hero p { margin: 3px 0 0; font-family: var(--serif); font-style: italic; }
.page-section { padding: 100px 0; }
.prose { color: #6e736e; }
.prose h2 { color: var(--ink); font-size: 30px; font-weight: 400; }
.about-story { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; }
.about-story img { width: 100%; aspect-ratio: 1.2; object-fit: cover; }
.team-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 30px; margin-top: 70px; }
.team-profile { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; background: #f6f8f5; }
.team-profile img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; object-position: top; }
.team-profile div { padding: 32px; }
.service-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.service-detail { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 350px; overflow: hidden; background: #f7f8f7; }
.service-detail:nth-child(even) .service-detail-image { order: 2; }
.service-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.service-detail-copy { display: flex; flex-direction: column; justify-content: center; padding: 42px; }
.service-detail-copy h2 { margin: 0; font-size: 26px; font-weight: 400; }
.service-detail-copy p { color: #777; }
.archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; }
.pagination { margin-top: 45px; text-align: center; }
.pagination .page-numbers { display: inline-grid; width: 38px; height: 38px; place-items: center; margin: 0 2px; border: 1px solid var(--line); }
.pagination .current { color: #fff; background: var(--sage); border-color: var(--sage); }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; }
.contact-form { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.contact-form .full { grid-column: 1/-1; }
.field label { display: block; margin-bottom: 5px; color: #777; font-size: 12px; }
.field input, .field textarea { width: 100%; padding: 14px 15px; border: 1px solid #dadeda; outline: none; font: inherit; }
.field input:focus, .field textarea:focus { border-color: var(--sage); }
.field textarea { min-height: 130px; resize: vertical; }
.notice { margin-bottom: 20px; padding: 12px 15px; background: #edf6eb; color: #577253; }
.contact-card { padding: 45px; background: var(--sage-soft); }
.contact-card h3 { margin-top: 0; font-size: 24px; }
.contact-card ul { margin: 0; padding: 0; list-style: none; }
.contact-card li { margin: 16px 0; }
.article { padding: 90px 0; }
.article h1 { font-size: clamp(34px,5vw,58px); line-height: 1.1; font-weight: 400; }
.article-meta { color: #999; }
.article-content { margin-top: 35px; color: #606560; font-family: var(--serif); font-size: 18px; }

.site-footer { color: #d9dbd9; background: var(--dark); }
.footer-main { display: grid; grid-template-columns: 1.15fr .85fr .85fr 1fr; gap: 60px; padding: 72px 0 52px; }
.footer-title { margin: 0 0 18px; color: #fff; font-size: 14px; font-weight: 600; }
.footer-main p, .footer-main li, .footer-main a { color: #c4c7c4; font-size: 12px; }
.footer-main ul { margin: 0; padding: 0; list-style: none; }
.footer-main li { margin: 7px 0; }
.qr { width: 92px; height: 92px; display: grid; place-items: center; background: repeating-linear-gradient(45deg,#fff 0 5px,#333 5px 10px); color: transparent; }
.footer-bottom { padding: 17px 0; border-top: 1px solid rgba(255,255,255,.08); color: #aeb1ae; text-align: center; font-size: 11px; }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 74px; left: 0; right: 0; display: none; padding: 20px 24px 28px; background: #fff; border-top: 1px solid #eee; }
  .site-nav.is-open { display: block; }
  .nav-list { display: block; }
  .nav-list li { padding: 10px 0; }
  .hero { min-height: 620px; background-position: 43% center; }
  .hero-copy { left: 50%; width: 44vw; }
  .about-grid, .about-story, .contact-grid { grid-template-columns: 1fr; gap: 45px; }
  .about-photo { margin: 0; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .services-home::before { opacity: .25; left: -80px; }
  .team-grid, .service-list { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: repeat(2,1fr); }
  .footer-main { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .wrap, .narrow { width: min(100% - 32px, 1160px); }
  .hero { min-height: 610px; background-position: 38% center; }
  .hero::before { content: ""; position: absolute; inset: 0; background: rgba(30,25,20,.18); }
  .hero-copy { position: relative; left: auto; width: calc(100% - 32px); padding: 230px 0 0; text-align: center; }
  .hero-copy h1 { white-space: normal; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .about-home, .page-section { padding: 72px 0; }
  .services-home { padding: 80px 0; }
  .service-grid, .news-grid, .archive-grid, .brand-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2,1fr); }
  .news-card { border-right: 0; border-bottom: 1px solid #eee; }
  .team-slide { grid-template-columns: 1fr; }
  .team-copy { padding: 30px 45px; }
  .team-photo img { max-height: 320px; }
  .team-profile, .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) .service-detail-image { order: 0; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; }
  .sage-band { height: 90px; }
}
