/* ==========================================================================
   PALM TREE WORKSHOPS — Global CSS
   Design tokens, reset, typography, base layout
   ========================================================================== */

/* ──────────────────────────────────────────────
   CSS CUSTOM PROPERTIES (Design Tokens)
────────────────────────────────────────────── */
:root {
    /* Colours */
    --ptw-black:         #1a1a1a;
    --ptw-white:         #ffffff;
    --ptw-off-white:     #f5f5f2;
    --ptw-green:         #4a5c3a;      /* Primary brand green (olive) */
    --ptw-green-light:   #6b7c5a;
    --ptw-green-dark:    #2e3a23;
    --ptw-orange:        #c85a1a;      /* ACCOMMODATION CTA */
    --ptw-pink:          #a03060;      /* ARTISTS INTERVIEWS CTA */
    --ptw-grey-100:      #f0f0ed;
    --ptw-grey-200:      #e0e0dc;
    --ptw-grey-400:      #999990;
    --ptw-grey-600:      #666660;
    --ptw-grey-800:      #333330;

    /* Typography */
    --ptw-font-sans:     'Helvetica Neue', Arial, 'Liberation Sans', sans-serif;
    --ptw-font-serif:    Georgia, 'Times New Roman', serif;

    --ptw-text-xs:       11px;
    --ptw-text-sm:       12px;
    --ptw-text-base:     14px;
    --ptw-text-md:       16px;
    --ptw-text-lg:       20px;
    --ptw-text-xl:       28px;
    --ptw-text-2xl:      40px;
    --ptw-text-3xl:      56px;

    --ptw-leading-tight: 1.2;
    --ptw-leading-body:  1.6;
    --ptw-tracking-wide: 0.08em;
    --ptw-tracking-xwide:0.15em;

    /* Spacing */
    --ptw-gap-xs:        8px;
    --ptw-gap-sm:        16px;
    --ptw-gap-md:        32px;
    --ptw-gap-lg:        64px;
    --ptw-gap-xl:        96px;

    /* Layout */
    --ptw-max-width:     1400px;
    --ptw-content-width: 1200px;
    --ptw-header-height: 64px;

    /* Transitions */
    --ptw-ease:          cubic-bezier(0.25, 0.1, 0.25, 1);
    --ptw-ease-out:      cubic-bezier(0.0, 0.0, 0.2, 1);
    --ptw-duration:      0.35s;
    --ptw-duration-slow: 0.6s;
}


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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--ptw-font-sans);
    font-size: var(--ptw-text-base);
    line-height: var(--ptw-leading-body);
    color: var(--ptw-black);
    background-color: var(--ptw-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* When overlay menu is open — prevent body scroll */
body.ptw-menu-open {
    overflow: hidden;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--ptw-duration) var(--ptw-ease);
}

a:hover {
    opacity: 0.6;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul,
ol {
    list-style: none;
}


/* ──────────────────────────────────────────────
   TYPOGRAPHY UTILITIES
────────────────────────────────────────────── */
.ptw-label {
    font-size: var(--ptw-text-xs);
    font-weight: 600;
    letter-spacing: var(--ptw-tracking-xwide);
    text-transform: uppercase;
}

.ptw-body-sm {
    font-size: var(--ptw-text-sm);
    line-height: var(--ptw-leading-body);
    color: var(--ptw-grey-800);
}

.ptw-body-xs {
    font-size: var(--ptw-text-xs);
    line-height: 1.7;
    color: var(--ptw-grey-600);
}

.ptw-heading-lg {
    font-size: var(--ptw-text-2xl);
    font-weight: 700;
    line-height: var(--ptw-leading-tight);
    letter-spacing: -0.01em;
}

.ptw-heading-xl {
    font-size: var(--ptw-text-3xl);
    font-weight: 700;
    line-height: var(--ptw-leading-tight);
    letter-spacing: -0.02em;
}


/* ──────────────────────────────────────────────
   LAYOUT UTILITIES
────────────────────────────────────────────── */
.ptw-container {
    width: 100%;
    max-width: var(--ptw-content-width);
    margin-inline: auto;
    padding-inline: var(--ptw-gap-md);
}

/* Full-viewport-height section */
.ptw-full-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Two-column 50/50 split */
.ptw-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Two-column content split (text heavy) */
.ptw-split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ptw-gap-md);
    align-items: start;
}

/* Sticky side (for interview layout) */
.ptw-sticky-right {
    position: sticky;
    top: var(--ptw-header-height);
    height: calc(100vh - var(--ptw-header-height));
    overflow: hidden;
}


/* ──────────────────────────────────────────────
   CIRCLE / BADGE STATS (Accommodation)
────────────────────────────────────────────── */
.ptw-stat-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ptw-gap-sm);
    margin-top: var(--ptw-gap-md);
}

.ptw-stat-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1.5px solid var(--ptw-black);
    font-size: var(--ptw-text-sm);
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    padding: 8px;
}


/* ──────────────────────────────────────────────
   CIRCULAR ROTATING TEXT CTA
   (ACCOMMODATION / ARTISTS INTERVIEWS circles)
────────────────────────────────────────────── */
.ptw-circle-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    cursor: pointer;
}

.ptw-circle-cta__text {
    position: absolute;
    inset: 0;
    animation: ptw-rotate-text 10s linear infinite;
    transform-origin: center;
}

.ptw-circle-cta--orange { background-color: var(--ptw-orange); }
.ptw-circle-cta--pink   { background-color: var(--ptw-pink); }

.ptw-circle-cta svg {
    width: 100%;
    height: 100%;
    fill: var(--ptw-white);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@keyframes ptw-rotate-text {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}


/* ──────────────────────────────────────────────
   WORKSHOP SPEC TABLE
────────────────────────────────────────────── */
.ptw-workshop-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--ptw-grey-200);
    border: 1px solid var(--ptw-grey-200);
}

.ptw-workshop-spec {
    background: var(--ptw-white);
    padding: var(--ptw-gap-sm);
}

.ptw-workshop-spec__label {
    font-size: var(--ptw-text-xs);
    font-weight: 700;
    letter-spacing: var(--ptw-tracking-xwide);
    text-transform: uppercase;
    color: var(--ptw-grey-600);
    margin-bottom: 4px;
}

.ptw-workshop-spec__value {
    font-size: var(--ptw-text-sm);
    font-weight: 600;
}


/* ──────────────────────────────────────────────
   ARTIST BIO BLOCK
────────────────────────────────────────────── */
.ptw-artist-bio {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--ptw-gap-md);
    padding: var(--ptw-gap-md);
    background: var(--ptw-green);
    color: var(--ptw-white);
    align-items: start;
}

.ptw-artist-bio__photo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%);
}

.ptw-artist-bio__name {
    font-size: var(--ptw-text-sm);
    font-weight: 700;
    letter-spacing: var(--ptw-tracking-xwide);
    text-transform: uppercase;
    margin-bottom: var(--ptw-gap-xs);
}

.ptw-artist-bio__text {
    font-size: var(--ptw-text-xs);
    line-height: 1.7;
    opacity: 0.85;
}

.ptw-artist-bio__url {
    display: inline-block;
    margin-top: var(--ptw-gap-xs);
    font-size: var(--ptw-text-xs);
    text-decoration: underline;
    opacity: 0.7;
}


/* ──────────────────────────────────────────────
   APPLICATION FORM
────────────────────────────────────────────── */
.ptw-apply-form {
    padding: var(--ptw-gap-md);
    border-top: 1px solid var(--ptw-grey-200);
}

.ptw-apply-form__intro {
    font-size: var(--ptw-text-xs);
    color: var(--ptw-grey-600);
    margin-bottom: var(--ptw-gap-md);
    max-width: 600px;
}

.ptw-apply-form .ptw-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ptw-gap-sm);
}

.ptw-apply-form input[type="text"],
.ptw-apply-form input[type="email"],
.ptw-apply-form textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--ptw-black);
    padding: var(--ptw-gap-xs) 0;
    font-size: var(--ptw-text-sm);
    font-family: var(--ptw-font-sans);
    background: transparent;
    outline: none;
    color: var(--ptw-black);
    transition: border-color var(--ptw-duration) var(--ptw-ease);
}

.ptw-apply-form input::placeholder,
.ptw-apply-form textarea::placeholder {
    color: var(--ptw-grey-400);
    font-size: var(--ptw-text-sm);
    letter-spacing: 0.04em;
}

.ptw-apply-form input:focus,
.ptw-apply-form textarea:focus {
    border-bottom-color: var(--ptw-green);
}

.ptw-apply-form textarea {
    resize: vertical;
    min-height: 80px;
}

.ptw-apply-form__privacy {
    font-size: var(--ptw-text-xs);
    color: var(--ptw-grey-600);
    margin-top: var(--ptw-gap-sm);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ptw-btn-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1.5px solid var(--ptw-black);
    font-size: var(--ptw-text-xs);
    font-weight: 700;
    letter-spacing: var(--ptw-tracking-wide);
    text-transform: uppercase;
    transition: background-color var(--ptw-duration) var(--ptw-ease),
                color var(--ptw-duration) var(--ptw-ease);
    margin-top: var(--ptw-gap-sm);
}

.ptw-btn-circle:hover {
    background-color: var(--ptw-black);
    color: var(--ptw-white);
    opacity: 1;
}


/* ──────────────────────────────────────────────
   CONTACT BLOCK (Email / Messenger / WhatsApp)
────────────────────────────────────────────── */
.ptw-contact-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ptw-contact-block a {
    font-size: var(--ptw-text-sm);
    font-weight: 600;
    letter-spacing: var(--ptw-tracking-wide);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ──────────────────────────────────────────────
   WORKSHOP PREV/NEXT NAVIGATION
────────────────────────────────────────────── */
.ptw-workshop-nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: var(--ptw-gap-sm) var(--ptw-gap-md);
    border-top: 1px solid var(--ptw-grey-200);
    font-size: var(--ptw-text-xs);
    font-weight: 700;
    letter-spacing: var(--ptw-tracking-xwide);
    text-transform: uppercase;
}

.ptw-workshop-nav__archive {
    text-align: center;
}

.ptw-workshop-nav__next {
    text-align: right;
}

.ptw-workshop-nav__disabled {
    opacity: 0.3;
    cursor: default;
}


/* ──────────────────────────────────────────────
   LOCATION DISTANCES GRID
────────────────────────────────────────────── */
.ptw-distances {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 16px;
    align-items: baseline;
    font-size: var(--ptw-text-xs);
}

.ptw-distances__time {
    font-weight: 700;
    white-space: nowrap;
}

.ptw-distances__label {
    color: var(--ptw-grey-600);
}


/* ──────────────────────────────────────────────
   SCROLL ARROW (Homepage hero)
────────────────────────────────────────────── */
.ptw-scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: var(--ptw-text-xs);
    letter-spacing: var(--ptw-tracking-xwide);
    text-transform: uppercase;
    color: var(--ptw-white);
    animation: ptw-bounce 2s ease-in-out infinite;
}

@keyframes ptw-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}


/* ──────────────────────────────────────────────
   NEWSLETTER FORM
────────────────────────────────────────────── */
.ptw-newsletter {
    display: flex;
    flex-direction: column;
    gap: var(--ptw-gap-sm);
    max-width: 480px;
}

.ptw-newsletter__heading {
    font-size: var(--ptw-text-lg);
    font-weight: 700;
}

.ptw-newsletter__sub {
    font-size: var(--ptw-text-xs);
    color: var(--ptw-grey-600);
}

.ptw-newsletter__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ptw-gap-sm);
}

.ptw-newsletter__full {
    grid-column: 1 / -1;
}

.ptw-newsletter input[type="text"],
.ptw-newsletter input[type="email"] {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--ptw-grey-400);
    padding: 8px 0;
    font-size: var(--ptw-text-sm);
    background: transparent;
    outline: none;
    font-family: var(--ptw-font-sans);
    color: inherit;
}

.ptw-newsletter input::placeholder {
    color: var(--ptw-grey-400);
    font-size: var(--ptw-text-sm);
    letter-spacing: 0.04em;
}

.ptw-newsletter__submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}


/* ──────────────────────────────────────────────
   FAQ ACCORDION (Art Residency)
────────────────────────────────────────────── */
.ptw-faq {
    border-top: 1px solid var(--ptw-grey-200);
}

.ptw-faq__item {
    border-bottom: 1px solid var(--ptw-grey-200);
}

.ptw-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--ptw-gap-sm) 0;
    font-size: var(--ptw-text-sm);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.ptw-faq__icon {
    font-size: var(--ptw-text-md);
    transition: transform var(--ptw-duration) var(--ptw-ease);
    flex-shrink: 0;
    margin-left: var(--ptw-gap-sm);
}

.ptw-faq__item.is-open .ptw-faq__icon {
    transform: rotate(45deg);
}

.ptw-faq__answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s var(--ptw-ease-out);
}

.ptw-faq__item.is-open .ptw-faq__answer {
    max-height: 600px;
}

.ptw-faq__answer-inner {
    padding-bottom: var(--ptw-gap-sm);
    font-size: var(--ptw-text-sm);
    color: var(--ptw-grey-800);
    line-height: var(--ptw-leading-body);
}


/* ──────────────────────────────────────────────
   VIRTUAL TOUR CTA
────────────────────────────────────────────── */
.ptw-virtual-tour {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ptw-gap-sm);
    padding: var(--ptw-gap-lg) 0;
}

.ptw-virtual-tour__label {
    font-size: var(--ptw-text-xs);
    font-weight: 700;
    letter-spacing: var(--ptw-tracking-xwide);
    text-transform: uppercase;
}

.ptw-virtual-tour__btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1.5px solid var(--ptw-black);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: var(--ptw-text-xs);
    font-weight: 700;
    letter-spacing: var(--ptw-tracking-wide);
    text-transform: uppercase;
    line-height: 1.4;
    transition: background-color var(--ptw-duration) var(--ptw-ease),
                color var(--ptw-duration) var(--ptw-ease);
}

.ptw-virtual-tour__btn:hover {
    background-color: var(--ptw-black);
    color: var(--ptw-white);
    opacity: 1;
}


/* ──────────────────────────────────────────────
   ACCESSIBILITY
────────────────────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--ptw-green);
    outline-offset: 3px;
}

/* ──────────────────────────────────────────────
   RESPONSIVE BREAKPOINTS
────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ptw-split,
    .ptw-split-content {
        grid-template-columns: 1fr;
    }
    .ptw-sticky-right {
        position: relative;
        height: auto;
    }
    .ptw-workshop-specs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --ptw-text-2xl: 28px;
        --ptw-text-3xl: 36px;
        --ptw-gap-lg:   40px;
    }
    .ptw-artist-bio {
        grid-template-columns: 80px 1fr;
        gap: var(--ptw-gap-sm);
    }
    .ptw-artist-bio__photo {
        width: 80px;
        height: 80px;
    }
    .ptw-apply-form .ptw-field-row {
        grid-template-columns: 1fr;
    }
    .ptw-workshop-nav {
        font-size: 10px;
        padding: var(--ptw-gap-sm);
    }
    .ptw-newsletter__fields {
        grid-template-columns: 1fr;
    }
}
