/* ========================================
   The 1% Better Program - Styles
   ======================================== */

/* CSS Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    line-height: inherit;
    background: #f5f0eb;
    color: #1a1a1a;
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

html {
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: inherit;
}

/* Root Variables */
:root {
    --bg: #f5f0eb;
    --bg-light: #faf7f4;
    --ink: #1a1a1a;
    --muted: #5a5a5a;
    --accent: #a0845c;
    --accent-dark: #8a6f48;
    --warm: #c4a484;
    --card: rgba(255, 255, 255, 0.85);
    --ring: rgba(160, 132, 92, 0.35);
}

/* Selection */
::selection {
    background: rgba(160, 132, 92, 0.25);
}

/* Container */
.container-pad {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 80rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 640px) {
    .container-pad {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    transition: all 0.15s ease;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #a0845c, #8a6f48);
    color: #fff;
    box-shadow: 0 8px 24px rgba(160, 132, 92, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(160, 132, 92, 0.4);
    background: #8a6f48;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(160, 132, 92, 0.4);
    color: #8a6f48;
}

.btn-secondary:hover {
    background: #fff;
    border-color: rgba(160, 132, 92, 0.7);
}

.btn-dark {
    background: #1a1a1a;
    color: #fff;
}

.btn-dark:hover {
    background: #333;
}

/* Header */
header.sticky {
    position: sticky;
    top: 0;
    z-index: 50;
}

header .bg-backdrop {
    background: rgba(245, 240, 235, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Navigation */
nav {
    display: none;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.875rem;
    color: #5a5a5a;
}

nav a {
    transition: color 0.15s ease;
}

nav a:hover {
    color: #1a1a1a;
}

@media (min-width: 768px) {
    nav {
        display: flex;
    }
}

/* Sections */
section {
    padding: 4rem 0;
}

@media (min-width: 640px) {
    section {
        padding: 6rem 0;
    }
}

/* Grids */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sm\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

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

.items-stretch {
    align-items: stretch;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }

/* Spacing Utilities */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }

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

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-none { line-height: 1; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }

.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }

/* Colors */
.text-ink { color: #1a1a1a; }
.text-muted { color: #5a5a5a; }
.text-accent { color: #a0845c; }
.text-accent-dark { color: #8a6f48; }
.text-warm { color: #c4a484; }
.text-white { color: #fff; }

/* Backgrounds */
.bg-white { background-color: #fff; }
.bg-ink { background-color: #1a1a1a; }
.bg-accent { background-color: #a0845c; }
.bg-muted { background-color: #5a5a5a; }

/* Gradient Backgrounds */
.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }

.inset-0 { inset: 0; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

/* Z-index */
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:justify-between { justify-content: space-between; }
}

/* Width & Height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-auto { height: auto; }

.max-w-sm { max-width: 24rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }

/* Border Radius */
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }

/* Borders */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }

.border-black\/5 { border-color: rgba(0, 0, 0, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }

/* Shadows */
.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
                0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.shadow-soft {
    box-shadow: 0 18px 40px rgba(42, 36, 30, 0.1);
}

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

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

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Transitions */
.transition {
    transition: color 0.15s, background-color 0.15s,
                border-color 0.15s, transform 0.15s;
}

.transition-all {
    transition: all 0.15s ease;
}

.transition-transform {
    transition: transform 0.15s ease;
}

.duration-500 {
    transition-duration: 0.5s;
}

/* Hover Effects */
.hover\:underline:hover {
    text-decoration: underline;
}

.hover\:text-ink:hover {
    color: #1a1a1a;
}

.hover\:bg-accent-dark:hover {
    background-color: #8a6f48;
}

.hover\:bg-white\/20:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

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

/* Backdrop Blur */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

/* Divider */
.hr-soft {
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 0, 0, 0.08) 50%,
        transparent
    );
    border: none;
    margin: 2rem 0;
}

/* Aspect Ratio */
[style*="aspect-ratio"] {
    aspect-ratio: 3 / 4;
}

/* Responsive Text Sizes */
@media (min-width: 640px) {
    .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .sm\:text-5xl { font-size: 3rem; line-height: 1; }
    .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
    .sm\:p-5 { padding: 1.25rem; }
    .sm\:p-10 { padding: 2.5rem; }
    .sm\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
    .sm\:pb-28 { padding-bottom: 7rem; }
    .sm\:pt-24 { padding-top: 6rem; }
}

@media (min-width: 1024px) {
    .lg\:block { display: block; }
    .lg\:text-left { text-align: left; }
    .lg\:text-5xl { font-size: 3rem; line-height: 1; }
    .lg\:text-[3.4rem] { font-size: 3.4rem; }
    .lg\:max-w-none { max-width: none; }
    .lg\:gap-12 { gap: 3rem; }
    .lg\:gap-16 { gap: 4rem; }
    .lg\:justify-start { justify-content: flex-start; }
}

/* Line Through (for pricing) */
.line-through {
    text-decoration: line-through;
}

/* Flex-1 */
.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

/* Padding */
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

/* Specific padding overrides */
.\!px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.\!py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }

/* Transform */
.-translate-x-1\/2 {
    transform: translateX(-50%);
}

/* Space Between Elements */
.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}
