/* Gốm Tay - Sidebar layout, Manrope, earth tones - Distinct */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #f8f6f4;
    --bg-cream: #f0ebe4;
    --ink: #2d2926;
    --ink-mid: #5c5652;
    --ink-soft: #8a837c;
    --clay: #a67c52;
    --clay-dark: #8b6914;
    --border: #e0d9d1;
    --white: #fff;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - fixed left on desktop */
.side {
    width: 260px;
    min-height: 100vh;
    flex-shrink: 0;
    background: var(--ink);
    color: var(--white);
    padding: 2rem 1.25rem;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: transform 0.3s var(--ease);
}

.side__logo {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    color: var(--white);
    text-decoration: none;
}

.side__logo:hover { color: var(--clay); }

.side__nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.side__link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.side__link:hover { color: var(--white); background: rgba(255,255,255,0.08); }

.side__link--on {
    color: var(--clay);
    background: rgba(166, 124, 82, 0.2);
}

.side__toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 101;
    flex-direction: column;
    gap: 5px;
    background: var(--ink);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.side__toggle span {
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

/* Main - offset by sidebar */
.main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
}

/* Lead section */
.lead {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: flex-end;
    padding: 4rem 2rem 3rem;
}

.lead__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.lead__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(45,41,38,0.85) 0%, transparent 55%);
}

.lead__box {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.lead__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.lead__desc {
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.lead__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.lead__btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
    font-family: inherit;
}

.lead__btn--main {
    background: var(--clay);
    color: var(--white);
}

.lead__btn--main:hover {
    background: var(--clay-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(166, 124, 82, 0.35);
}

.lead__btn--sub {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}

.lead__btn--sub:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* Block */
.block { padding: 3.5rem 2rem; }

.block--cream { background: var(--bg-cream); }

.block__in { max-width: 1000px; margin: 0 auto; }

.block__title {
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.block__intro {
    color: var(--ink-mid);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Row - 3 items */
.row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.row__item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.row__item:hover {
    box-shadow: 0 16px 40px rgba(45,41,38,0.1);
    transform: translateY(-4px);
}

.row__thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.row__item:hover .row__thumb img { transform: scale(1.05); }

.row__body { padding: 1.25rem; }

.row__body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--ink);
}

.row__body p { color: var(--ink-soft); font-size: 0.9rem; }

/* Grid - 3 cards */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid__card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.grid__card:hover {
    box-shadow: 0 12px 32px rgba(45,41,38,0.08);
    border-color: var(--clay);
}

.grid__img {
    aspect-ratio: 10/7;
    overflow: hidden;
}

.grid__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.grid__card:hover .grid__img img { transform: scale(1.06); }

.grid__txt { padding: 1.25rem; }

.grid__txt h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--ink);
}

.grid__txt p { color: var(--ink-soft); font-size: 0.9rem; }

/* Footer */
.bottom {
    padding: 2.5rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg-cream);
}

.bottom__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bottom__logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--ink);
    text-decoration: none;
}

.bottom__nav { display: flex; gap: 1.25rem; }

.bottom__nav a {
    color: var(--ink-mid);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.bottom__nav a:hover { color: var(--clay); }

.bottom__note { color: var(--ink-soft); font-size: 0.85rem; }

/* Inner pages: same sidebar + content */
.cover {
    position: relative;
    padding: 5rem 2rem 3rem;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}

.cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(45,41,38,0.8) 0%, transparent 60%);
}

.cover .block__in {
    position: relative;
    z-index: 1;
    width: 100%;
}

.cover h1 {
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
}

.cover p { color: rgba(255,255,255,0.9); margin-top: 0.35rem; }

.content {
    padding: 2.5rem 2rem 4rem;
}

.content .block__in { max-width: 720px; }

.content h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 2rem 0 0.6rem;
    color: var(--ink);
}

.content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    color: var(--ink);
}

.content p, .content ul {
    margin-bottom: 1rem;
    color: var(--ink-mid);
}

.content ul { margin-left: 1.5rem; }

.content li { margin-bottom: 0.4rem; }

.content a {
    color: var(--clay);
    text-decoration: none;
    font-weight: 600;
}

.content a:hover { text-decoration: underline; }

.content .pic {
    width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
}

.contact-email-addr { color: var(--clay); font-weight: 700; }

.contact-box {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--bg-cream);
    border-radius: 10px;
    border: 1px solid var(--border);
}

[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .side {
        transform: translateX(-100%);
        width: 280px;
    }
    .side.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .side__toggle { display: flex; }
    .row, .grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .lead__actions { flex-direction: column; }
    .lead__btn { width: 100%; text-align: center; }
    .bottom__row { flex-direction: column; align-items: flex-start; }
}
