/* ============================================
   buihstudio.com — Artist Gallery CSS
   Palette: Cream #FDFAF3 | Yellow #F5C842
            Green #6BBF59 | Blue #5BA4CF
            Pink #F48FB1  | Charcoal #2D2D2D
   Fonts: Fraunces (display) + DM Sans (body)
   Signature: masonry gallery, wavy dividers,
   paint blobs, filter pills, lightbox
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --cream:    #FDFAF3;
    --yellow:   #F5C842;
    --yellow-l: #FDE89A;
    --green:    #6BBF59;
    --green-l:  #B8E4AD;
    --blue:     #5BA4CF;
    --blue-l:   #A8D4EE;
    --pink:     #F48FB1;
    --pink-l:   #FAC5D8;
    --charcoal: #2D2D2D;
    --text:     #2D2D2D;
    --text-mid: #5a5a5a;
    --text-muted:#8a8a8a;
    --font-d:   'Fraunces', Georgia, serif;
    --font-b:   'DM Sans', system-ui, sans-serif;
    --radius:   12px;
    --radius-lg:20px;
    --radius-xl:32px;
    --max-w:    1160px;
    --section-gap: 100px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-b); background: var(--cream); color: var(--text); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* ---- NAV ---- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 14px 28px;
    transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled { background: rgba(253,250,243,0.95); backdrop-filter: blur(10px); box-shadow: 0 2px 20px rgba(45,45,45,0.08); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--max-w); margin: 0 auto; }
.nav__wordmark { font-family: var(--font-d); font-size: 22px; font-weight: 900; color: var(--charcoal); }
.nav__wordmark span { color: var(--green); }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a { padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--text-mid); border-radius: 40px; transition: all 0.2s; }
.nav__links a:hover { background: var(--yellow); color: var(--charcoal); }
.nav__cta { background: var(--charcoal) !important; color: var(--cream) !important; font-weight: 600 !important; }
.nav__cta:hover { background: var(--yellow) !important; color: var(--charcoal) !important; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 32px; border-radius: 40px; font-size: 15px; font-weight: 600; font-family: var(--font-b); cursor: pointer; border: none; transition: all 0.2s; }
.btn--yellow { background: var(--yellow); color: var(--charcoal); }
.btn--yellow:hover { background: #e6b530; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,200,66,0.4); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: #5aaa48; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(107,191,89,0.4); }
.btn--outline-dark { background: transparent; color: var(--charcoal); border: 2px solid var(--charcoal); }
.btn--outline-dark:hover { background: var(--charcoal); color: var(--cream); transform: translateY(-2px); }
.btn--full { width: 100%; justify-content: center; }

/* ---- EYEBROW ---- */
.eyebrow { font-family: var(--font-b); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink); margin-bottom: 10px; }

/* ---- SECTION TITLES ---- */
.section-title { font-family: var(--font-d); font-size: clamp(36px, 6vw, 64px); font-weight: 900; color: var(--charcoal); line-height: 1.05; margin-bottom: 20px; }
.section-title--tilted { display: inline-block; transform: rotate(-1.5deg); transform-origin: left center; }

/* ---- PAINT BLOBS ---- */
.blob { position: absolute; pointer-events: none; z-index: 0; }
.blob--hero-1 { width: 300px; top: -80px; right: -60px; }
.blob--hero-2 { width: 200px; bottom: 40px; right: 20%; opacity: 0.7; }
.blob--hero-3 { width: 160px; top: 30%; left: -40px; }
.blob--about-1 { width: 280px; top: 0; right: -60px; }
.blob--shop-1  { width: 220px; bottom: -40px; left: -50px; }
.blob--contact-1 { width: 200px; top: 40px; right: -50px; }

/* ---- WAVE DIVIDERS ---- */
.wave-divider { line-height: 0; display: block; overflow: hidden; }
.wave-divider svg { display: block; width: 100%; }

/* ---- SECTIONS ---- */
.section { padding: var(--section-gap) 0; position: relative; overflow: hidden; }
.section--yellow { background: var(--yellow-l); }
.section--green  { background: var(--green-l); }
.section--blue   { background: var(--blue-l); }

/* ---- HERO ---- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 60px; position: relative; overflow: hidden; background: var(--cream); }
.hero__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 2; width: 100%; }
.hero__handle { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--pink); text-transform: uppercase; margin-bottom: 12px; }
.hero__wordmark { font-family: var(--font-d); font-size: clamp(56px, 8vw, 96px); font-weight: 900; line-height: 0.95; letter-spacing: -0.02em; color: var(--charcoal); margin-bottom: 14px; }
.hero__wordmark span { color: var(--green); display: block; }
.hero__sub-en { font-size: 14px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.hero__tagline { font-family: var(--font-d); font-size: clamp(20px, 2.5vw, 28px); font-style: italic; color: var(--charcoal); margin-bottom: 10px; line-height: 1.3; }
.hero__tagline-ms { font-size: 14px; color: var(--text-muted); font-style: italic; margin-bottom: 36px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__canvas-wrap {
    width: 100%; aspect-ratio: 4/5; border-radius: var(--radius-xl);
    overflow: hidden; position: relative;
    box-shadow: 6px 6px 0 var(--charcoal);
    border: 3px solid var(--charcoal);
    display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
}
.hero__color-block { width: 100%; height: 100%; }
.hero__color-block--y { background: var(--yellow); }
.hero__color-block--g { background: var(--green); }
.hero__color-block--b { background: var(--blue); }
.hero__color-block--p { background: var(--pink); }
.hero__canvas-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-size: 18px; font-style: italic; color: rgba(45,45,45,0.7); background: rgba(253,250,243,0.3); text-align: center; }

/* ---- GALLERY ---- */
.gallery__header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 40px; }
.gallery__header-text .eyebrow { margin-bottom: 4px; }
.gallery__filters { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 4px; }
.filter-pill {
    padding: 8px 20px; border-radius: 40px; font-size: 13px; font-weight: 600;
    background: rgba(45,45,45,0.08); color: var(--charcoal); border: 2px solid transparent;
    cursor: pointer; transition: all 0.2s; font-family: var(--font-b);
}
.filter-pill:hover { background: var(--yellow); border-color: var(--charcoal); }
.filter-pill--active { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }

/* ---- MASONRY GRID ---- */
.masonry { columns: 4; column-gap: 14px; }
.masonry__item { break-inside: avoid; margin-bottom: 14px; }
.masonry__item--tall  .artwork__img { padding-bottom: 140%; }
.masonry__item--mid   .artwork__img { padding-bottom: 100%; }
.masonry__item--short .artwork__img { padding-bottom: 70%; }
.artwork {
    display: block; width: 100%; position: relative; overflow: hidden;
    border-radius: var(--radius-lg); cursor: pointer; background: none; border: none; padding: 0;
    border: 3px solid var(--charcoal);
    box-shadow: 4px 4px 0 var(--charcoal);
    transition: transform 0.2s, box-shadow 0.2s;
}
.artwork:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--charcoal); }
.artwork__img { position: relative; width: 100%; overflow: hidden; }
.artwork__img::before { content: ''; display: block; }
.artwork__img > div { display: none; } /* replaced by bg color on element itself */
.artwork__img { display: block; }
.artwork[data-bg] .artwork__img { background-color: attr(data-bg color); }
.artwork__overlay {
    position: absolute; inset: 0; background: rgba(45,45,45,0.88);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.25s; padding: 20px; text-align: center;
}
.artwork:hover .artwork__overlay { opacity: 1; }
.artwork__title { font-family: var(--font-d); font-size: 18px; font-weight: 700; color: var(--yellow); margin-bottom: 6px; }
.artwork__medium { font-size: 13px; color: rgba(253,250,243,0.75); }

/* ---- ABOUT ---- */
.about__inner { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.about__photo-frame {
    width: 300px; height: 360px; border-radius: var(--radius-xl);
    border: 4px solid var(--charcoal); box-shadow: 8px 8px 0 var(--yellow);
    overflow: hidden; background: var(--cream); margin-bottom: 20px;
}
.about__photo-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--yellow) 0%, var(--green) 100%); }
.about__photo-placeholder span { font-family: var(--font-d); font-size: 24px; font-weight: 700; color: var(--charcoal); }
.about__media-list { display: flex; flex-wrap: wrap; gap: 8px; }
.media-tag { padding: 6px 14px; border-radius: 40px; font-size: 13px; font-weight: 600; border: 2px solid var(--charcoal); }
.media-tag--y { background: var(--yellow); }
.media-tag--g { background: var(--green); color: #fff; }
.media-tag--b { background: var(--blue); color: #fff; }
.media-tag--p { background: var(--pink); }
.about__bio { font-family: var(--font-d); font-size: 20px; font-style: italic; color: var(--charcoal); margin-bottom: 16px; line-height: 1.5; }
.about__body { font-size: 16px; color: var(--text-mid); margin-bottom: 16px; line-height: 1.75; }
.about__social-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.social-link { padding: 8px 18px; border-radius: 40px; font-size: 14px; font-weight: 600; border: 2px solid var(--charcoal); transition: all 0.2s; }
.social-link--ig { background: var(--pink); }
.social-link--tt { background: var(--charcoal); color: var(--cream); }
.social-link--yt { background: var(--yellow); }
.social-link:hover { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--charcoal); }

/* ---- SHOP ---- */
.shop__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.coming-badge { display: inline-block; background: var(--pink); color: var(--charcoal); font-size: 16px; font-weight: 600; padding: 4px 16px; border-radius: 40px; margin-left: 14px; vertical-align: middle; border: 2px solid var(--charcoal); font-family: var(--font-b); transform: rotate(2deg); }
.shop__body { font-size: 17px; color: var(--text-mid); margin-bottom: 12px; }
.shop__body--ms { font-style: italic; font-size: 15px; color: var(--text-muted); }
.shop__notify { background: var(--cream); border-radius: var(--radius-xl); padding: 36px; border: 3px solid var(--charcoal); box-shadow: 6px 6px 0 var(--charcoal); }
.shop__notify-head { font-family: var(--font-d); font-size: 22px; font-weight: 700; margin-bottom: 20px; color: var(--charcoal); }
.notify-form { display: flex; flex-direction: column; gap: 12px; }

/* ---- CONTACT ---- */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__sub { font-size: 16px; color: var(--text-mid); margin-bottom: 10px; line-height: 1.7; }
.contact__sub--ms { font-style: italic; font-size: 14px; color: var(--text-muted) !important; }
.contact__socials { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.big-social { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: var(--radius-lg); font-size: 15px; font-weight: 600; border: 2px solid var(--charcoal); transition: all 0.2s; }
.big-social:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--charcoal); }
.big-social--ig { background: var(--pink); }
.big-social--tt { background: var(--charcoal); color: var(--cream); }
.big-social--yt { background: var(--yellow); }
.big-social--fb { background: var(--blue); color: #fff; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }

/* ---- FORM ---- */
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-group label { font-size: 13px; font-weight: 600; color: var(--text-mid); }
.field-group input, .field-group textarea {
    background: var(--cream); border: 2px solid var(--charcoal); border-radius: var(--radius);
    padding: 12px 16px; font-size: 15px; color: var(--text); font-family: var(--font-b);
    transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
.field-group input:focus, .field-group textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 4px 4px 0 var(--yellow); }
.field-group input::placeholder, .field-group textarea::placeholder { color: var(--text-muted); }
.field-group.has-error input, .field-group.has-error textarea { border-color: var(--pink); }
.field-error { font-size: 12px; color: #c0392b; }
.alert--funky { padding: 16px 20px; background: var(--yellow); border: 2px solid var(--charcoal); border-radius: var(--radius-lg); font-weight: 600; font-size: 15px; box-shadow: 4px 4px 0 var(--charcoal); }

/* ---- FOOTER ---- */
.site-footer { background: var(--charcoal); color: var(--cream); padding: 56px 28px 32px; position: relative; overflow: hidden; }
.footer__blob { position: absolute; top: -40px; right: -60px; width: 280px; height: 280px; background: var(--yellow); border-radius: 50% 30% 60% 40%; opacity: 0.1; }
.footer__inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: center; }
.footer__wordmark { font-family: var(--font-d); font-size: 28px; font-weight: 900; }
.footer__wordmark span { color: var(--green); }
.footer__sub { font-size: 13px; color: rgba(253,250,243,0.55); margin-top: 4px; }
.footer__socials { display: flex; gap: 10px; }
.footer__social { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(253,250,243,0.2); transition: all 0.2s; color: var(--cream); }
.footer__social:hover { transform: translateY(-3px); }
.footer__social--ig:hover { background: var(--pink); border-color: var(--pink); }
.footer__social--tt:hover { background: var(--yellow); border-color: var(--yellow); color: var(--charcoal); }
.footer__social--yt:hover { background: #ff0000; border-color: #ff0000; }
.footer__social--fb:hover { background: var(--blue); border-color: var(--blue); }
.footer__copy { font-size: 12px; color: rgba(253,250,243,0.35); text-align: right; }

/* ---- LIGHTBOX ---- */
.lightbox {
    position: fixed; inset: 0; z-index: 1000; background: rgba(45,45,45,0.95);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox__close { position: absolute; top: 24px; right: 28px; background: var(--yellow); border: 2px solid var(--charcoal); border-radius: 50%; width: 44px; height: 44px; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 700; transition: all 0.2s; }
.lightbox__close:hover { background: var(--pink); transform: rotate(90deg); }
.lightbox__content { max-width: 80vw; max-height: 80vh; text-align: center; }
.lightbox__content img { max-width: 100%; max-height: 70vh; border-radius: var(--radius-lg); border: 4px solid var(--charcoal); }
.lightbox__caption { margin-top: 16px; }
.lightbox__caption p:first-child { font-family: var(--font-d); font-size: 20px; color: var(--yellow); font-weight: 700; }
.lightbox__caption p:last-child { font-size: 14px; color: rgba(253,250,243,0.65); }

/* ---- HIDDEN for filtering ---- */
.masonry__item.hidden { display: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) { .masonry { columns: 3; } }
@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__splash { display: none; }
    .about__inner { grid-template-columns: 1fr; }
    .shop__inner { grid-template-columns: 1fr; }
    .contact__inner { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; text-align: center; }
    .footer__copy { text-align: center; }
    .footer__socials { justify-content: center; }
    .masonry { columns: 2; }
}
@media (max-width: 640px) {
    :root { --section-gap: 72px; }
    .nav__links { display: none; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--cream); padding: 90px 28px 32px; gap: 8px; }
    .nav__links.open { display: flex; }
    .nav__links a { font-size: 18px; border-radius: 0; padding: 12px 0; }
    .nav__toggle { display: flex; }
    .hero__cta { flex-direction: column; align-items: flex-start; }
    .gallery__header { flex-direction: column; align-items: flex-start; }
    .about__photo-frame { width: 240px; height: 290px; }
    .big-social { padding: 12px 16px; }
}
