/*
Theme Name: Artshatta
Theme URI: https://artshatta.com
Author: Khalid Shatta
Description: Custom WordPress theme for Artshatta.com
Version: 1.1
Text Domain: artshatta
*/

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
    --color-bg:         #f9f5ee;
    --color-text:       #1a1a1a;
    --color-text-light: #5a5650;
    --color-accent:     #1c1a17;
    --color-accent-hover: #3a3730;
    --color-border:     #e2ddd5;
    --color-surface:    #f2ede4;
    --color-error:      #c0392b;
    --color-success:    #27ae60;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'DM Sans', sans-serif;

    --max-width: 1200px;
    --gutter:    clamp(1rem, 4vw, 2rem);
    --radius:    4px;

    --transition: 0.2s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.75rem); }
p  { font-size: 1rem; color: var(--color-text-light); }

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}
.btn:hover {
    background: transparent;
    color: var(--color-accent);
}
.btn--outline {
    background: transparent;
    color: var(--color-accent);
}
.btn--outline:hover {
    background: var(--color-accent);
    color: #fff;
}

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1.1rem 0;
}
.site-header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

/* toggle hidden on desktop, nav visible */
.menu-toggle { display: none; }
.site-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    justify-self: center;
    text-align: center;
}
.site-logo:hover { color: var(--color-accent-hover); }

.header__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
}

/* ─── Navigation ─────────────────────────────────────────────── */
.primary-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.primary-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text);
    transition: color var(--transition);
    position: relative;
}
.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--color-accent);
    transition: width var(--transition);
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item a::after { width: 100%; }

/* Cart icon in nav */
.nav-cart {
    position: relative;
    font-size: 1.1rem;
}
.nav-cart-count {
    position: absolute;
    top: -8px; right: -8px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile menu toggle */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-text);
    align-items: center;
}

/* ─── Hero Section ───────────────────────────────────────────── */
.hero {
    min-height: 80vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}
.hero__content { padding: var(--gutter) 0; }
.hero__title { margin-bottom: 1rem; }
.hero__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    max-width: 480px;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--radius);
}

/* ─── About Section ──────────────────────────────────────────── */
.about {
    background: var(--color-surface);
}
.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about__image img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius);
}
.about__content h2 { margin-bottom: 1.5rem; }
.about__content p  { margin-bottom: 1rem; }

/* ─── Featured Products ──────────────────────────────────────── */
.featured-products { text-align: center; }
.featured-products h2 { margin-bottom: 0.5rem; }
.featured-products .section-subtitle {
    color: var(--color-text-light);
    margin-bottom: 3rem;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-bottom: 3rem;
}

/* ─── Product Card ───────────────────────────────────────────── */
.product-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.product-card__image {
    overflow: hidden;
    aspect-ratio: 4/3;
}
.product-card__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card__image img { transform: scale(1.04); }
.product-card__body { padding: 1.25rem; }
.product-card__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}
.product-card__price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--color-accent);
    color: #fff;
    padding: 3rem 0 1.5rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}
.footer__brand .site-logo { color: #fff; font-size: 1.4rem; margin-bottom: 0.75rem; }
.footer__brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer__col h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
}
.footer__col ul li { margin-bottom: 0.5rem; }
.footer__col ul a {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer__col ul a:hover { color: #fff; }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero,
    .about .container,
    .woocommerce div.product,
    .footer__grid {
        grid-template-columns: 1fr;
    }
    .hero__image { order: -1; }
    .hero__image img { height: 320px; }
    .about__image img { height: 300px; }

    /* mobile: toggle(left) | logo(center) | cart(right) */
    .site-header .container { grid-template-columns: auto 1fr auto; }
    .menu-toggle { display: flex; order: 1; }
    .site-logo   { order: 2; justify-self: center; }
    .header__right { order: 3; justify-self: end; }

    .primary-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        padding: 1.5rem var(--gutter);
        z-index: 99;
        order: 4;
    }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { flex-direction: column; gap: 1rem; }

    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
    .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ─── Social Links ───────────────────────────────────────────── */
.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    transition: border-color var(--transition), color var(--transition);
}
.social-links a:hover {
    border-color: #fff;
    color: #fff;
}
.social-links a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ─── Quote Section ──────────────────────────────────────────── */
.quote-section {
    background: var(--color-accent);
    color: #fff;
    text-align: center;
}
.quote-section blockquote {
    max-width: 780px;
    margin: 0 auto;
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 400;
    line-height: 1.7;
    font-style: italic;
    color: rgba(255,255,255,0.9);
}
.quote-section blockquote::before {
    content: '\201C';
    font-size: 4rem;
    line-height: 0;
    vertical-align: -1.2rem;
    margin-right: 0.2rem;
    opacity: 0.4;
    font-family: var(--font-heading);
}
.quote-section cite {
    display: block;
    margin-top: 1.5rem;
    font-style: normal;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

/* ─── Intro (Front Page) ─────────────────────────────────────── */
.intro .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
}
.intro__image {
    width: 100%;
    max-width: 680px;
}
.intro__image img {
    width: 100%;
    height: auto;
}
.intro__text {
    max-width: 720px;
}
.intro__name {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    margin-bottom: 0.25rem;
}
.intro__tagline {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}
.intro__text p { margin-bottom: 1rem; text-align: left; }

/* ─── Statement Section ──────────────────────────────────────── */
.statement__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}
.statement__heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.15;
    position: sticky;
    top: 6rem;
}
.statement__body p { margin-bottom: 1rem; }

/* ─── Gods in Action Section ─────────────────────────────────── */
.gods {
    background: var(--color-surface);
}
.gods__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}
.gods__body p { margin-bottom: 1rem; }
.gods__label {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
}
.gods__label span {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    border-top: 1px solid var(--color-border);
    padding-top: 0.75rem;
}

/* ─── Section Header (shop preview) ─────────────────────────── */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2.5rem;
}

/* ─── Page Hero ──────────────────────────────────────────────── */
.page-hero {
    border-bottom: 1px solid var(--color-border);
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero__sub {
    font-size: 1rem;
    color: var(--color-text-light);
    max-width: 700px;
    line-height: 1.7;
    margin-top: 0.5rem;
}

/* ─── Bio Page ───────────────────────────────────────────────── */
.bio__grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
}
.bio__image img {
    width: 100%;
    position: sticky;
    top: 6rem;
}
.bio__text h2 { margin-bottom: 1.5rem; }
.bio__text p  { margin-bottom: 1rem; }

/* ─── CV Section ─────────────────────────────────────────────── */
.cv-section--alt { background: var(--color-surface); }
.cv__grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
}
.cv__heading {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    position: sticky;
    top: 6rem;
}
.cv__list { display: flex; flex-direction: column; gap: 0; }
.cv__list li {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}
.cv__year {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-light);
    padding-top: 0.1rem;
    white-space: nowrap;
}
.cv__detail {
    font-size: 0.95rem;
    color: var(--color-text);
}

/* ─── Contact Page ───────────────────────────────────────────── */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}
.contact__info h1 { margin-bottom: 1rem; }
.contact__info p  { margin-bottom: 1rem; }
.contact__social { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.contact__social a {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-decoration: underline;
    color: var(--color-text);
    transition: color var(--transition);
}
.contact__social a:hover { color: var(--color-text-light); }

.simple-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-light);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: var(--radius);
    outline: none;
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--color-accent); }
.form-group textarea { resize: vertical; }

/* ─── Responsive additions ───────────────────────────────────── */
@media (max-width: 768px) {
    .statement__grid,
    .gods__grid,
    .bio__grid,
    .contact__grid { grid-template-columns: 1fr; gap: 2rem; }

    .cv__grid { grid-template-columns: 1fr; gap: 1rem; }
    .cv__heading { position: static; }
    .cv__list li { grid-template-columns: 80px 1fr; gap: 1rem; }

    .statement__heading h2,
    .bio__image img { position: static; }

    .gods__label { flex-direction: row; flex-wrap: wrap; }
    .gods__label span { border-top: none; border-left: 1px solid var(--color-border); padding: 0 0.75rem; }
    .gods__label span:first-child { border-left: none; padding-left: 0; }

    .section-header { flex-direction: column; gap: 1rem; }
}

/* ─── Single Artwork ─────────────────────────────────────────── */
.product-single {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 768px) {
    .product-single {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ─── Press & Media ─────────────────────────────────────────── */
.press-section-heading {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    margin-bottom: 2rem;
}

.press-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.press-item {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.press-item__meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.4rem;
}

.press-item__source {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.press-item__date {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.press-item__title {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.press-item__title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition);
}

.press-item__title a:hover { color: var(--color-accent-hover); }

.press-item__desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    max-width: 680px;
    margin-bottom: 0.5rem;
}

.press-item__credit {
    font-size: 0.78rem;
    color: var(--color-text-light);
}

.press-item__credit a {
    text-decoration: underline;
    color: var(--color-text-light);
}

/* ─── Press & Media — video embeds ──────────────────────────── */
.press-video-item { margin-bottom: 2.5rem; }

.press-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: #000;
}
.press-video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.press-video-label {
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
}

/* ─── Portfolio (separate from the Shop) ─────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}
.project-card__image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius);
}
.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.project-card:hover .project-card__image img { transform: scale(1.04); }
.project-card__body { padding-top: 1rem; }
.project-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}
.project-card__subtitle {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0.4rem;
}
.project-card__status {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-light);
}
.project-status {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
.project-status a {
    text-decoration: underline;
    color: var(--color-text-light);
}
.project-content { max-width: 760px; }
.project-content p { margin-bottom: 1.25rem; }
.project-content h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin: 3rem 0 2rem;
}

/* Images inside project text: smaller, centered, editorial — not big static blocks */
.project-content figure {
    margin: 2.5rem auto;
    max-width: 420px;
}
.project-content figure img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}
.project-content figcaption {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--color-text-light);
    margin-top: 0.6rem;
    text-align: center;
}

/* ─── Portfolio archive: full content per project, no click-through ──── */
.project-section { border-bottom: 1px solid var(--color-border); }
.project-section:last-of-type { border-bottom: none; }
.project-section__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}
.project-section__heading h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.15;
    position: sticky;
    top: 6rem;
}
.project-section__subtitle {
    color: var(--color-text-light);
    margin-top: 0.5rem;
}
.project-section__body figure:first-child {
    margin-top: 0;
    max-width: 100%;
}
.project-section__body figure:first-child img {
    aspect-ratio: 16/10;
    object-fit: cover;
}

@media (max-width: 768px) {
    .project-section__grid { grid-template-columns: 1fr; gap: 3rem; }
    .project-section__heading h2 { position: static; }
}

/* ─── Shop Coming Soon ───────────────────────────────────────── */
.shop-coming-soon {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
}
.shop-coming-soon p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}
.shop-coming-soon .btn,
.shop-coming-soon .btn--outline {
    margin: 0 0.4rem;
}

/* ─── Sold Artwork ───────────────────────────────────────────── */
.product-card--sold .product-card__image img {
    opacity: 0.55;
}

.sold-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 26, 26, 0.85);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    pointer-events: none;
}

.sold-badge--large {
    font-size: 1.1rem;
    padding: 0.65rem 1.75rem;
}

.sold-label-top {
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    padding: 0.4rem 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.sold-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-decoration: line-through;
}

/* ─── New site (Cloudflare): what used to be inline styles in the WordPress content ─── */
.project-content figure { margin: 2rem 0; }
.project-content figure figcaption { font-size: 0.85rem; margin-top: 0.5rem; }
