/* =====================================================
   SendChaos — style.css
   Custom stylesheet, no frameworks
   ===================================================== */

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

html {
    scroll-behavior: smooth;
}

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

/* ----- CSS Variables ----- */
:root {
    --red:       #D63B2F;
    --red-dark:  #b82e24;
    --red-light: #fdecea;
    --black:     #1a1a1a;
    --white:     #ffffff;

    --gray-50:  #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --font-heading: 'Libre Baskerville', Georgia, serif;
    --font-body:    'Inter', system-ui, sans-serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.06);
}

/* ----- Base Typography ----- */
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--black);
}

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

p {
    line-height: 1.7;
}

/* ----- Container ----- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- Navigation ----- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.nav-logo span {
    color: var(--red);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.15s;
}

.nav-links a:hover {
    color: var(--black);
}

/* ----- Buttons ----- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--red);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.btn-sm {
    font-size: 13px;
    padding: 8px 16px;
}

.btn-primary.btn-lg {
    font-size: 17px;
    padding: 16px 32px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--black);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--black);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.1s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-ghost:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-ghost.btn-lg {
    font-size: 17px;
    padding: 16px 32px;
}

/* ----- Hero ----- */
.hero {
    padding: 80px 0 72px;
    background: var(--white);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red-light);
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--black);
}

.hero h1 em {
    font-style: italic;
    color: var(--red);
}

.hero-sub {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 36px;
    max-width: 420px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hero-card-wrap {
    transition: transform 0.25s ease;
}

.hero-card-wrap:nth-child(odd) {
    transform: rotate(-1.5deg);
}

.hero-card-wrap:nth-child(even) {
    transform: rotate(1.5deg);
    margin-top: 16px;
}

.hero-card-wrap:hover {
    transform: rotate(0) scale(1.03);
    z-index: 2;
}

/* ----- Ticker / Marquee ----- */
.ticker-wrap {
    background: var(--red);
    color: var(--white);
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.ticker-track {
    display: inline-flex;
    gap: 0;
    animation: ticker-scroll 28s linear infinite;
}

.ticker-item {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0 32px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.ticker-item::after {
    content: '★';
    font-size: 10px;
    opacity: 0.7;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ----- Section Titles ----- */
.section-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.section-sub {
    font-size: 17px;
    color: var(--gray-500);
    margin-bottom: 40px;
}

/* ----- Category Filters ----- */
.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.filter-btn {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 100px;
    border: 1.5px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

/* ----- Card Grid ----- */
.catalog-section {
    padding: 72px 0;
    background: var(--gray-50);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card-item {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.card-item:nth-child(4n+1) { transform: rotate(-1deg); }
.card-item:nth-child(4n+2) { transform: rotate(1deg); }
.card-item:nth-child(4n+3) { transform: rotate(2deg); }
.card-item:nth-child(4n+4) { transform: rotate(-2deg); }

.card-item:hover {
    transform: rotate(0deg) scale(1.03);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.card-item-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-item-category {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-400);
}

.card-item-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--black);
}

.card-item-desc {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.5;
    flex: 1;
}

.card-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.card-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
}

.card-item-cta {
    font-size: 12px;
    font-weight: 600;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 3px;
    transition: gap 0.15s;
}

.card-item:hover .card-item-cta {
    gap: 6px;
}

/* ----- Card Face (postcard designs) ----- */
.card-face {
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

.card-face-sm {
    min-height: 185px;
}

.card-face-lg {
    min-height: 300px;
}

/* ----- How It Works ----- */
.how-section {
    padding: 80px 0;
    background: var(--white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.step {
    text-align: center;
}

.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ----- Testimonials ----- */
.testimonials-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.testimonial-card:nth-child(1) { transform: rotate(-1deg); }
.testimonial-card:nth-child(2) { transform: rotate(0.5deg); }
.testimonial-card:nth-child(3) { transform: rotate(-0.5deg); }

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 18px;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 16px;
    color: var(--black);
}

.testimonial-quote::before {
    content: '\201C';
    color: var(--red);
    font-size: 28px;
    line-height: 0;
    vertical-align: -8px;
    margin-right: 2px;
}

.testimonial-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
}

.testimonial-stars {
    color: var(--red);
    font-size: 13px;
    margin-bottom: 12px;
}

/* ----- FAQ Accordion ----- */
.faq-section {
    padding: 80px 0;
    background: var(--white);
}

.faq-list {
    max-width: 720px;
    margin: 48px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color 0.15s;
}

.faq-question:hover {
    color: var(--red);
}

.faq-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    color: var(--gray-500);
    transition: all 0.2s;
    font-style: normal;
}

.faq-item.open .faq-icon {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding-bottom: 20px;
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ----- Trust Strip ----- */
.trust-strip {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 20px 0;
}

.trust-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
}

.trust-icon {
    font-size: 18px;
}

/* ----- CTA Banner ----- */
.cta-banner {
    background: var(--red);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.cta-banner h2 {
    font-size: clamp(30px, 4vw, 48px);
    color: var(--white);
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 36px;
}

.cta-banner .btn-ghost {
    border-color: var(--white);
    color: var(--white);
}

.cta-banner .btn-ghost:hover {
    background: var(--white);
    color: var(--red);
}

.cta-banner .btn-primary {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
}

.cta-banner .btn-primary:hover {
    background: var(--gray-100);
    border-color: var(--gray-100);
}

.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----- Footer ----- */
.footer {
    background: var(--black);
    color: var(--white);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding: 56px 24px;
}

.footer .nav-logo {
    color: var(--white);
    margin-bottom: 12px;
    display: block;
}

.footer-brand p {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.6;
    max-width: 280px;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col strong {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 14px;
    color: var(--gray-400);
    transition: color 0.15s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 24px;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--gray-500);
    text-align: center;
}

/* ----- Card Detail Page ----- */
.card-detail {
    padding: 64px 0;
}

.card-detail-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.card-detail-face {
    position: sticky;
    top: 90px;
}

.card-detail-category {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px;
}

.card-detail-title {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.card-detail-desc {
    font-size: 17px;
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-detail-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 32px;
}

.card-detail-price span {
    font-size: 15px;
    color: var(--gray-400);
    font-weight: 400;
}

/* ----- Order Form ----- */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--gray-200);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group .hint {
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--black);
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(214,59,47,0.1);
}

.form-group input[readonly],
.form-group select[readonly] {
    background: var(--gray-50);
    color: var(--gray-500);
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.char-counter {
    font-size: 11px;
    color: var(--gray-400);
    text-align: right;
    margin-top: -4px;
}

.form-submit {
    margin-top: 8px;
}

.form-notice {
    font-size: 12px;
    color: var(--gray-400);
    text-align: center;
    margin-top: 10px;
    line-height: 1.5;
}

/* ----- Browse Page ----- */
.browse-hero {
    padding: 56px 0 40px;
    background: var(--white);
}

/* ----- How It Works Page ----- */
.hiw-page {
    padding: 72px 0;
}

.hiw-page .steps-list {
    max-width: 680px;
    margin: 56px auto 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hiw-step {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.hiw-step-number {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hiw-step-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.hiw-step-content p {
    font-size: 16px;
    color: var(--gray-600);
}

/* ----- Success Page ----- */
.success-page {
    padding: 80px 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.success-inner {
    max-width: 560px;
    margin: 0 auto;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 24px;
    line-height: 1;
}

.success-page h1 {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 14px;
    letter-spacing: -1px;
}

.success-page .lead {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 32px;
}

.success-ref {
    display: inline-block;
    font-size: 13px;
    font-family: monospace;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 8px 20px;
    color: var(--gray-600);
    margin-bottom: 36px;
    letter-spacing: 1px;
}

.success-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----- Page Not Found ----- */
.not-found {
    padding: 80px 0;
    text-align: center;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.not-found-inner {
    max-width: 480px;
    margin: 0 auto;
}

/* ----- Badge / Stamp ----- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-red {
    background: var(--red-light);
    color: var(--red);
}

.badge-dark {
    background: var(--gray-800);
    color: var(--white);
}

/* ----- Responsive Breakpoints ----- */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-inner {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-cards {
        max-width: 420px;
        margin: 0 auto;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .card-item:nth-child(4n+1),
    .card-item:nth-child(4n+2),
    .card-item:nth-child(4n+3),
    .card-item:nth-child(4n+4) {
        transform: rotate(0);
    }

    .card-item:nth-child(odd)  { transform: rotate(-1deg); }
    .card-item:nth-child(even) { transform: rotate(1deg);  }

    .card-detail-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .card-detail-face {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 36px;
    }

    .footer-links {
        gap: 32px;
    }

    .hero-cards {
        display: none;
    }

    .trust-inner {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .cta-btns {
        flex-direction: column;
        align-items: center;
    }
}
