/**
 * Utility Classes
 * 270 Park Avenue Website
 *
 * Single-purpose helper classes for rapid styling
 */

/* ================================ */
/* DISPLAY                          */
/* ================================ */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline {
    display: inline;
}

.inline-block {
    display: inline-block;
}

.invisible {
    visibility: hidden;
}

.visible {
    visibility: visible;
}

/* ================================ */
/* TYPOGRAPHY UTILITIES             */
/* ================================ */
/* Font sizes */
.text-2xs {
    font-size: var(--text-2xs);
}

.text-xs {
    font-size: var(--text-xs);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-base {
    font-size: var(--text-base);
}

.text-lg {
    font-size: var(--text-lg);
}

.text-xl {
    font-size: var(--text-xl);
}

.text-2xl {
    font-size: var(--text-2xl);
}

.text-3xl {
    font-size: var(--text-3xl);
}

.text-4xl {
    font-size: var(--text-4xl);
}

.text-5xl {
    font-size: var(--text-5xl);
}

.text-6xl {
    font-size: var(--text-6xl);
}

/* Font weights */
.font-light {
    font-weight: var(--font-light);
}

.font-normal {
    font-weight: var(--font-normal);
}

.font-medium {
    font-weight: var(--font-medium);
}

.font-semibold {
    font-weight: var(--font-semibold);
}

.font-bold {
    font-weight: var(--font-bold);
}

.font-extrabold {
    font-weight: var(--font-extrabold);
}

/* Font families */
.font-display {
    font-family: var(--font-display);
}

.font-serif {
    font-family: var(--font-serif);
}

.font-sans {
    font-family: var(--font-sans);
}

.font-mono {
    font-family: var(--font-mono);
}

/* Text transforms */
.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: lowercase;
}

.capitalize {
    text-transform: capitalize;
}

.normal-case {
    text-transform: none;
}

/* Letter spacing */
.tracking-tight {
    letter-spacing: var(--tracking-tight);
}

.tracking-normal {
    letter-spacing: var(--tracking-normal);
}

.tracking-wide {
    letter-spacing: var(--tracking-wide);
}

.tracking-wider {
    letter-spacing: var(--tracking-wider);
}

.tracking-widest {
    letter-spacing: var(--tracking-widest);
}

.tracking-caps {
    letter-spacing: var(--tracking-caps);
}

/* Line height */
.leading-none {
    line-height: var(--leading-none);
}

.leading-tight {
    line-height: var(--leading-tight);
}

.leading-snug {
    line-height: var(--leading-snug);
}

.leading-normal {
    line-height: var(--leading-normal);
}

.leading-relaxed {
    line-height: var(--leading-relaxed);
}

.leading-loose {
    line-height: var(--leading-loose);
}

/* Text alignment */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

/* Text decoration */
.underline {
    text-decoration: underline;
}

.line-through {
    text-decoration: line-through;
}

.no-underline {
    text-decoration: none;
}

/* Font style */
.italic {
    font-style: italic;
}

.not-italic {
    font-style: normal;
}

/* ================================ */
/* COLOR UTILITIES                  */
/* ================================ */
/* Text colors */
.text-primary {
    color: var(--color-text-primary);
}

.text-secondary {
    color: var(--color-text-secondary);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-subtle {
    color: var(--color-text-subtle);
}

.text-inverse {
    color: var(--color-text-inverse);
}

.text-accent {
    color: var(--color-text-accent);
}

.text-success {
    color: var(--color-success);
}

.text-error {
    color: var(--color-error);
}

.text-warning {
    color: var(--color-warning);
}

.text-info {
    color: var(--color-info);
}

/* Background colors */
.bg-primary {
    background-color: var(--color-bg-primary);
}

.bg-secondary {
    background-color: var(--color-bg-secondary);
}

.bg-tertiary {
    background-color: var(--color-bg-tertiary);
}

.bg-elevated {
    background-color: var(--color-bg-elevated);
}

.bg-muted {
    background-color: var(--color-bg-muted);
}

.bg-inverse {
    background-color: var(--color-bg-inverse);
}

.bg-accent {
    background-color: var(--color-accent-primary);
}

.bg-transparent {
    background-color: transparent;
}

/* ================================ */
/* BORDER UTILITIES                 */
/* ================================ */
.border {
    border: var(--border-thin);
}

.border-0 {
    border: none;
}

.border-t {
    border-top: var(--border-thin);
}

.border-b {
    border-bottom: var(--border-thin);
}

.border-l {
    border-left: var(--border-thin);
}

.border-r {
    border-right: var(--border-thin);
}

.border-accent {
    border-color: var(--color-accent-primary);
}

.border-strong {
    border-color: var(--color-border-strong);
}

/* Border radius */
.rounded-none {
    border-radius: var(--radius-none);
}

.rounded-sm {
    border-radius: var(--radius-sm);
}

.rounded {
    border-radius: var(--radius-md);
}

.rounded-md {
    border-radius: var(--radius-md);
}

.rounded-lg {
    border-radius: var(--radius-lg);
}

.rounded-xl {
    border-radius: var(--radius-xl);
}

.rounded-2xl {
    border-radius: var(--radius-2xl);
}

.rounded-full {
    border-radius: var(--radius-full);
}

/* ================================ */
/* SHADOW UTILITIES                 */
/* ================================ */
.shadow-none {
    box-shadow: none;
}

.shadow-xs {
    box-shadow: var(--shadow-xs);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow {
    box-shadow: var(--shadow-md);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}

.shadow-2xl {
    box-shadow: var(--shadow-2xl);
}

.shadow-card {
    box-shadow: var(--shadow-card);
}

.shadow-elevated {
    box-shadow: var(--shadow-elevated);
}

.shadow-inner {
    box-shadow: var(--shadow-inner);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

/* ================================ */
/* OPACITY                          */
/* ================================ */
.opacity-0 {
    opacity: 0;
}

.opacity-25 {
    opacity: 0.25;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-90 {
    opacity: 0.9;
}

.opacity-95 {
    opacity: 0.95;
}

.opacity-100 {
    opacity: 1;
}

/* ================================ */
/* CURSOR                           */
/* ================================ */
.cursor-auto {
    cursor: auto;
}

.cursor-default {
    cursor: default;
}

.cursor-pointer {
    cursor: pointer;
}

.cursor-wait {
    cursor: wait;
}

.cursor-text {
    cursor: text;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

/* ================================ */
/* POINTER EVENTS                   */
/* ================================ */
.pointer-events-none {
    pointer-events: none;
}

.pointer-events-auto {
    pointer-events: auto;
}

/* ================================ */
/* USER SELECT                      */
/* ================================ */
.select-none {
    user-select: none;
}

.select-text {
    user-select: text;
}

.select-all {
    user-select: all;
}

.select-auto {
    user-select: auto;
}

/* ================================ */
/* TRANSITIONS                      */
/* ================================ */
.transition-none {
    transition: none;
}

.transition {
    transition-property: all;
    transition-duration: var(--duration-base);
    transition-timing-function: var(--ease-default);
}

.transition-fast {
    transition-property: all;
    transition-duration: var(--duration-fast);
    transition-timing-function: var(--ease-default);
}

.transition-slow {
    transition-property: all;
    transition-duration: var(--duration-slow);
    transition-timing-function: var(--ease-default);
}

.transition-colors {
    transition: var(--transition-colors);
}

/* ================================ */
/* TRANSFORM                        */
/* ================================ */
.transform-none {
    transform: none;
}

.rotate-45 {
    transform: rotate(45deg);
}

.rotate-90 {
    transform: rotate(90deg);
}

.rotate-180 {
    transform: rotate(180deg);
}

.-rotate-45 {
    transform: rotate(-45deg);
}

.-rotate-90 {
    transform: rotate(-90deg);
}

.scale-95 {
    transform: scale(0.95);
}

.scale-100 {
    transform: scale(1);
}

.scale-105 {
    transform: scale(1.05);
}

.scale-110 {
    transform: scale(1.1);
}

/* ================================ */
/* Z-INDEX                          */
/* ================================ */
.z-0 {
    z-index: var(--z-base);
}

.z-10 {
    z-index: var(--z-raised);
}

.z-dropdown {
    z-index: var(--z-dropdown);
}

.z-sticky {
    z-index: var(--z-sticky);
}

.z-overlay {
    z-index: var(--z-overlay);
}

.z-modal {
    z-index: var(--z-modal);
}

.z-tooltip {
    z-index: var(--z-tooltip);
}

/* ================================ */
/* LIST STYLES                      */
/* ================================ */
.list-none {
    list-style: none;
}

.list-disc {
    list-style-type: disc;
}

.list-decimal {
    list-style-type: decimal;
}

.list-inside {
    list-style-position: inside;
}

.list-outside {
    list-style-position: outside;
}

/* ================================ */
/* OBJECT FIT                       */
/* ================================ */
.object-contain {
    object-fit: contain;
}

.object-cover {
    object-fit: cover;
}

.object-fill {
    object-fit: fill;
}

.object-none {
    object-fit: none;
}

.object-center {
    object-position: center;
}

.object-top {
    object-position: top;
}

.object-bottom {
    object-position: bottom;
}

/* ================================ */
/* ASPECT RATIO                     */
/* ================================ */
.aspect-square {
    aspect-ratio: var(--aspect-square);
}

.aspect-video {
    aspect-ratio: var(--aspect-video);
}

.aspect-photo {
    aspect-ratio: var(--aspect-photo);
}

.aspect-portrait {
    aspect-ratio: var(--aspect-portrait);
}

.aspect-golden {
    aspect-ratio: var(--aspect-golden);
}

/* ================================ */
/* WHITESPACE                       */
/* ================================ */
.whitespace-normal {
    white-space: normal;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.whitespace-pre {
    white-space: pre;
}

.whitespace-pre-line {
    white-space: pre-line;
}

.whitespace-pre-wrap {
    white-space: pre-wrap;
}

/* ================================ */
/* TRUNCATE                         */
/* ================================ */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* ================================ */
/* DECORATIVE ELEMENTS              */
/* ================================ */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin: var(--space-8) 0;
}

.ornament::before,
.ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border-light), transparent);
}

.ornament--accent::before,
.ornament--accent::after {
    background: linear-gradient(to right, transparent, var(--color-accent-primary), transparent);
}

/* Gold accent line */
.gold-line {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-accent-primary), transparent);
    margin: var(--space-6) auto;
    max-width: 200px;
}

.gold-line--left {
    background: linear-gradient(90deg, var(--color-accent-primary), transparent);
    margin-left: 0;
}
