/* ==========================================================================
   CAMPFIRE CONCIERGE DESIGN SYSTEM
   Single source of truth for all base styles, variables, and components.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --cc-brown: #3B3829;
    --cc-orange: #F78832;
    --cc-orange-hover: #E67A2A;
    --cc-beige: #F6E8CD;
    --cc-sage: #ABB185;
    --cc-white: #FFFFFF;
    --cc-deep-ember: #411530;
    --cc-footer-bg: #2A2A2A;
    --cc-light-gray: #F9F9F9;
    --cc-text-body: #2C2C2C;
    --cc-text-muted: rgba(255, 255, 255, 0.6);
    --cc-border: #E0E0E0;
    --cc-error: #DC3545;
    --cc-success: #28A745;

    /* Typography */
    --cc-font-primary: 'Poppins', sans-serif;
    --cc-font-hero: 'After', 'Poppins', sans-serif;

    /* Spacing */
    --cc-space-xs: 4px;
    --cc-space-sm: 8px;
    --cc-space-md: 16px;
    --cc-space-lg: 24px;
    --cc-space-xl: 32px;
    --cc-space-2xl: 48px;
    --cc-space-3xl: 64px;
    --cc-space-4xl: 96px;

    /* Border Radius */
    --cc-radius-sm: 4px;
    --cc-radius-md: 8px;
    --cc-radius-lg: 16px;
    --cc-radius-pill: 25px;

    /* Shadows */
    --cc-shadow-sm: 0 1px 3px rgba(59, 56, 41, 0.1);
    --cc-shadow-md: 0 4px 12px rgba(59, 56, 41, 0.12);
    --cc-shadow-lg: 0 8px 24px rgba(59, 56, 41, 0.15);
    --cc-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --cc-shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.15);

    /* Layout */
    --cc-max-width: 1400px;
    --cc-content-width: 1200px;
    --cc-header-height: 75px;

    /* Transitions */
    --cc-transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   @FONT-FACE
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'After';
    src: url('../fonts/After-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--cc-font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: var(--cc-text-body);
    background-color: var(--cc-white);
    padding-top: var(--cc-header-height);
}

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

a {
    color: var(--cc-orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--cc-orange-hover);
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--cc-font-primary);
    font-weight: 600;
    line-height: 1.2;
    color: var(--cc-brown);
}

/* Mobile-first sizes */
h1 { font-size: 32px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p {
    margin-bottom: var(--cc-space-md);
    line-height: 1.8;
    font-size: 15px;
    color: var(--cc-text-body);
}

.cc-hero-tagline {
    font-family: var(--cc-font-hero);
    font-style: normal;
    font-weight: 400;
}

@media (min-width: 768px) {
    h1 { font-size: 38px; }
    h2 { font-size: 32px; }
    h3 { font-size: 24px; }
    p  { font-size: 16px; }
}

@media (min-width: 1024px) {
    h1 { font-size: 42px; }
    h2 { font-size: 36px; }
}

/* --------------------------------------------------------------------------
   LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.cc-container {
    max-width: var(--cc-max-width);
    margin: 0 auto;
    padding: 0 var(--cc-space-lg);
}

.cc-content {
    max-width: var(--cc-content-width);
    margin: 0 auto;
    padding: 0 var(--cc-space-lg);
}

.cc-main {
    min-height: calc(100vh - var(--cc-header-height) - 100px);
}

.cc-section {
    padding: 40px 20px;
}

.cc-section--beige {
    background-color: var(--cc-beige);
}

.cc-section--brown {
    background-color: var(--cc-brown);
    color: var(--cc-white);
}

.cc-section--brown h2,
.cc-section--brown h3 {
    color: var(--cc-white);
}

@media (min-width: 768px) {
    .cc-section {
        padding: 60px 20px;
    }
}

/* --------------------------------------------------------------------------
   GRID
   -------------------------------------------------------------------------- */
.cc-grid {
    display: grid;
    gap: var(--cc-space-lg);
}

.cc-grid--2 { grid-template-columns: 1fr; }
.cc-grid--3 { grid-template-columns: 1fr; }
.cc-grid--4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .cc-grid--2 { grid-template-columns: repeat(2, 1fr); }
    .cc-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .cc-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .cc-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .cc-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--cc-space-sm);
    min-height: 44px;
    padding: 12px 28px;
    font-family: var(--cc-font-primary);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    border: 2px solid transparent;
    border-radius: var(--cc-radius-sm);
    cursor: pointer;
    transition: var(--cc-transition);
    text-decoration: none;
    white-space: nowrap;
}

.cc-btn:hover {
    transform: translateY(-2px);
}

.cc-btn--primary {
    background-color: var(--cc-orange);
    color: var(--cc-white);
    border-color: var(--cc-orange);
}

.cc-btn--primary:hover {
    background-color: var(--cc-orange-hover);
    border-color: var(--cc-orange-hover);
    color: var(--cc-white);
}

.cc-btn--outline {
    background-color: transparent;
    color: var(--cc-orange);
    border-color: var(--cc-orange);
}

.cc-btn--outline:hover {
    background-color: var(--cc-orange);
    color: var(--cc-white);
}

.cc-btn--outline-white {
    background-color: transparent;
    color: var(--cc-white);
    border-color: var(--cc-white);
}

.cc-btn--outline-white:hover {
    background-color: var(--cc-white);
    color: var(--cc-brown);
}

.cc-btn--pill {
    border-radius: var(--cc-radius-pill);
}

.cc-btn--full {
    width: 100%;
}

.cc-btn--sm {
    min-height: 36px;
    padding: 8px 20px;
    font-size: 14px;
}

.cc-btn--lg {
    min-height: 52px;
    padding: 16px 36px;
    font-size: 18px;
}

/* --------------------------------------------------------------------------
   CARDS
   -------------------------------------------------------------------------- */
.cc-card {
    background-color: var(--cc-white);
    border-radius: var(--cc-radius-lg);
    box-shadow: var(--cc-shadow-card);
    overflow: hidden;
    transition: var(--cc-transition);
}

.cc-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--cc-shadow-card-hover);
}

.cc-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cc-card:hover .cc-card__image {
    transform: scale(1.05);
}

.cc-card__image-wrapper {
    overflow: hidden;
    position: relative;
}

.cc-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--cc-orange);
    color: var(--cc-white);
    padding: 4px 12px;
    border-radius: var(--cc-radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.cc-card__body {
    padding: var(--cc-space-lg);
}

.cc-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--cc-brown);
    margin-bottom: var(--cc-space-sm);
}

.cc-card__subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: var(--cc-space-md);
}

.cc-card__price {
    font-size: 16px;
    font-weight: 600;
    color: var(--cc-orange);
}

/* --------------------------------------------------------------------------
   FORMS
   -------------------------------------------------------------------------- */
.cc-form-group {
    margin-bottom: var(--cc-space-md);
}

.cc-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--cc-brown);
    margin-bottom: var(--cc-space-xs);
}

.cc-form-input,
.cc-form-select,
.cc-form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--cc-font-primary);
    color: var(--cc-text-body);
    background-color: var(--cc-light-gray);
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cc-form-input:focus,
.cc-form-select:focus,
.cc-form-textarea:focus {
    outline: none;
    border-color: var(--cc-orange);
    box-shadow: 0 0 0 3px rgba(247, 136, 50, 0.15);
}

.cc-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.cc-form-submit {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: var(--cc-orange);
    color: var(--cc-white);
    border: none;
    border-radius: var(--cc-radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--cc-transition);
}

.cc-form-submit:hover {
    background-color: var(--cc-orange-hover);
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.cc-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    margin-top: calc(-1 * var(--cc-header-height));
    padding-top: var(--cc-header-height);
}

.cc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(20, 18, 12, 0.92) 0%,
        rgba(40, 38, 28, 0.6) 50%,
        rgba(59, 56, 41, 0.3) 100%
    );
    z-index: 1;
}

.cc-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: var(--cc-space-lg);
}

.cc-hero h1 {
    color: var(--cc-white);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: var(--cc-space-md);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cc-hero h1 .cc-accent {
    color: var(--cc-orange);
}

.cc-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: var(--cc-space-lg);
}

@media (min-width: 768px) {
    .cc-hero h1 { font-size: 48px; }
    .cc-hero p  { font-size: 18px; }
}

@media (min-width: 1024px) {
    .cc-hero h1 { font-size: 64px; }
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY
   -------------------------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--cc-orange);
    outline-offset: 2px;
}

.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;
}

/* --------------------------------------------------------------------------
   ERROR PAGE
   -------------------------------------------------------------------------- */
.cc-error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--cc-space-4xl) var(--cc-space-lg);
}

.cc-error-page__content h1 {
    font-size: 48px;
    margin-bottom: var(--cc-space-md);
}

.cc-error-page__content p {
    font-size: 18px;
    margin-bottom: var(--cc-space-xl);
    color: #666;
}
