/**
 * Nursery Works Brand CSS
 * Following nurseryworks.net styling
 * Font: Cormorant Garamond (serif) + Inter (sans-serif)
 * Colors: Charcoal tones - minimalist, architectural, gallery-like
 */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Nursery Works colors (reference: nurseryworks.net) */
    --brand-primary: #414042;
    --brand-secondary: #000000;
    --brand-success: #19A340;
    --brand-danger: #D20000;
    --brand-warning: #E8A884;
    --brand-info: #C14883;

    /* Shared brand tokens used by iframe + landing page */
    --brand-body-bg: #FFFFFF;
    --brand-footer-bg: #F4F4F4;
    --brand-footer-border: #DEDEDE;
    --brand-text: #231F20;
    --brand-text-muted: #414042;
    --brand-option-bg: #FFFFFF;
    --brand-option-hover-bg: #F4F4F4;
    --brand-option-active-bg: #FFFFFF;
    --brand-option-text: #414042;
    --brand-option-hover-text: #000000;
    --brand-option-active-text: #000000;
    --brand-option-border: #CCCCCC;
    --brand-option-active-border: #000000;
    --brand-option-icon: #414042;
    --brand-option-radius: 0;
    --brand-option-shadow: none;
    --brand-option-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --brand-option-focus: #000000;
    --brand-option-focus-shadow: 0 0 0 5px rgba(0, 0, 0, 0.16);
    --brand-option-active-shadow: inset 0 0 0 1px #000000;
    --focus-ring-color: #000000;
    
    /* Extended palette - Nursery Works tones */
    --nw-charcoal: #414042;
    --nw-black: #000000;
    --nw-gray-dark: #414042;
    --nw-gray: #999999;
    --nw-gray-light: #CCCCCC;
    --nw-off-white: #F4F4F4;
    --nw-cream: #FAFAFA;
    --nw-sand: #DEDEDE;
    --nw-accent: #C14883;
    --nw-text: #231F20;
    --nw-text-light: #414042;
}

/* ============================================
   NURSERY WORKS BRAND OVERRIDES
   ============================================ */

/* Body background */
body {
    background-color: #ffffff;
    color: var(--nw-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    line-height: 1.6;
}

/* Headings - Cormorant Garamond for architectural elegance */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    color: var(--nw-charcoal);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ============================================
   BUTTONS - Minimalist, architectural
   ============================================ */
.btn {
    border-radius: 0;
    font-weight: 500;
    padding: 0.75rem 2rem;
    min-height: 44px;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 0.75rem;
    border-width: 1px;
}

.btn-primary {
    background-color: var(--nw-charcoal) !important;
    border-color: var(--nw-charcoal) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    background-color: #000000 !important;
    border-color: #000000 !important;
    transform: translateY(0);
}

.btn-outline-primary {
    color: var(--nw-charcoal);
    border-color: var(--nw-charcoal);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--nw-charcoal);
    border-color: var(--nw-charcoal);
    color: #ffffff;
}

/* Secondary button - gray */
.btn-secondary {
    background-color: var(--nw-gray-dark);
    border-color: var(--nw-gray-dark);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: var(--nw-charcoal);
    border-color: var(--nw-charcoal);
    color: #ffffff;
}

/* ============================================
   CARDS - Minimalist, gallery-like
   ============================================ */
.card {
    background-color: #ffffff;
    border: 1px solid var(--nw-sand);
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--nw-off-white);
    border-bottom: 1px solid var(--nw-sand);
    border-radius: 0 !important;
    padding: 1.5rem 2rem;
    font-weight: 500;
    color: var(--nw-charcoal);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.card-body {
    padding: 2rem;
}

/* ============================================
   FORMS - Clean, minimal
   ============================================ */
.form-control,
.form-select {
    border-radius: 0;
    border: 1px solid var(--nw-gray-light);
    padding: 0.875rem 1rem;
    min-height: 44px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--nw-charcoal);
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--nw-text);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-control::placeholder {
    color: #999999;
}

/* ============================================
   STEP INDICATOR - Minimalist progress
   ============================================ */
.step-indicator .step-circle {
    background-color: var(--nw-off-white);
    color: var(--nw-gray);
    border: 1px solid var(--nw-sand);
    font-weight: 500;
}

.step-indicator li.active .step-circle {
    background-color: var(--nw-charcoal);
    color: #ffffff;
    border-color: var(--nw-charcoal);
}

.step-indicator li.completed .step-circle {
    background-color: var(--nw-gray-dark);
    color: #ffffff;
    border-color: var(--nw-gray-dark);
}

.step-indicator .step-label {
    font-size: 0.75rem;
    color: var(--nw-text-light);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.step-indicator li.active .step-label {
    color: var(--nw-charcoal);
    font-weight: 500;
}

/* ============================================
   MODALS - Minimalist, centered
   ============================================ */
.modal-content {
    border-radius: 0;
    border: 1px solid var(--nw-sand);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.modal-header {
    background-color: var(--nw-off-white);
    border-bottom: 1px solid var(--nw-sand);
    border-radius: 0;
    padding: 2rem 2.5rem;
}

.modal-title {
    color: var(--nw-charcoal);
    font-weight: 500;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
}

.modal-body {
    padding: 2.5rem;
}

.modal-footer {
    border-top: 1px solid var(--nw-sand);
    padding: 1.5rem 2.5rem;
}

/* ============================================
   ALERTS - Minimalist, informative
   ============================================ */
.alert {
    border-radius: 0;
    border: none;
    padding: 1.25rem 1.5rem;
}

.alert-success {
    background-color: rgba(74, 124, 89, 0.05);
    color: #2D5F3A;
    border-left: 2px solid var(--nw-success);
}

.alert-danger,
.alert-error {
    background-color: rgba(184, 84, 80, 0.05);
    color: #8B3A3A;
    border-left: 2px solid var(--nw-danger);
}

.alert-warning {
    background-color: rgba(212, 168, 75, 0.05);
    color: #7D6B3A;
    border-left: 2px solid var(--nw-warning);
}

.alert-info {
    background-color: rgba(91, 139, 160, 0.05);
    color: #4A6B7D;
    border-left: 2px solid var(--nw-info);
}

/* ============================================
   FOOTER - Minimalist, clean
   ============================================ */
.footer {
    background-color: var(--nw-off-white) !important;
    border-top: 1px solid var(--nw-sand);
    color: var(--nw-text-light);
}

.footer a {
    color: var(--nw-charcoal);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
}

.footer a:hover {
    color: #000000;
    text-decoration: underline;
}

/* ============================================
   LINKS - Charcoal for visibility
   ============================================ */
a {
    color: var(--nw-charcoal);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #000000;
}

/* ============================================
   BADGES - Minimalist, sharp
   ============================================ */
.badge {
    border-radius: 0;
    font-weight: 500;
    padding: 0.35em 0.7em;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge.bg-primary {
    background-color: var(--nw-charcoal) !important;
    color: #ffffff;
}

/* ============================================
   PROGRESS BARS - Minimalist, flowing
   ============================================ */
.progress {
    background-color: var(--nw-off-white);
    border-radius: 0;
    height: 4px;
}

.progress-bar {
    background-color: var(--nw-charcoal);
    border-radius: 0;
}

/* ============================================
   TOAST NOTIFICATIONS - Minimalist, clean
   ============================================ */
.toast {
    background-color: #ffffff;
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--nw-sand);
}

/* ============================================
   CHECKBOXES - Minimalist, sharp
   ============================================ */
.form-check-input[type="checkbox"] {
    border-radius: 0;
    border: 1px solid var(--nw-gray-light);
}

.form-check-input:checked {
    background-color: var(--nw-charcoal);
    border-color: var(--nw-charcoal);
}

.form-check-input:focus {
    border-color: var(--nw-charcoal);
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
}

/* ============================================
   RADIO BUTTONS - Proper circles
   ============================================ */
.form-check-input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 1px solid var(--nw-gray-light);
    background-color: #fff;
}

.form-check-input:checked {
    background-color: var(--nw-charcoal);
    border-color: var(--nw-charcoal);
}

.form-check-input:checked[type="radio"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23ffffff'/%3e%3c/svg%3e");
    background-size: contain;
    background-origin: border-box;
}

.form-check-input:focus {
    border-color: var(--nw-charcoal);
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
}

/* ============================================
   TABLES - Minimalist, readable
   ============================================ */
.table {
    border-collapse: collapse;
}

.table th {
    background-color: var(--nw-off-white);
    color: var(--nw-charcoal);
    font-weight: 500;
    border-bottom: 1px solid var(--nw-sand);
    padding: 1.25rem 1.5rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
    text-align: left;
}

.table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--nw-sand);
    vertical-align: middle;
    font-weight: 300;
}

.table tbody tr:hover {
    background-color: var(--nw-off-white);
}

/* ============================================
   DROPDOWN MENUS - Minimalist, accessible
   ============================================ */
.dropdown-menu {
    border-radius: 0;
    border: 1px solid var(--nw-sand);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 0;
    padding: 0.75rem 1.25rem;
    color: var(--nw-text);
    font-weight: 400;
    transition: all 0.15s ease;
    letter-spacing: 0.02em;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--nw-off-white);
    color: var(--nw-charcoal);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--nw-charcoal);
    color: #ffffff;
}

/* ============================================
   ACCORDION / COLLAPSE - Minimalist panels
   ============================================ */
.accordion-button {
    border-radius: 0 !important;
    font-weight: 500;
    color: var(--nw-text);
    background-color: var(--nw-off-white);
    box-shadow: none;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--nw-cream);
    color: var(--nw-charcoal);
}

.accordion-button:focus {
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
    border-color: var(--nw-charcoal);
}

.accordion-item {
    border: 1px solid var(--nw-sand);
    border-radius: 0 !important;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.accordion-body {
    background-color: #ffffff;
    border-radius: 0;
    padding: 1.5rem;
}

/* ============================================
   TABS - Minimalist, horizontal
   ============================================ */
.nav-tabs {
    border-bottom: 1px solid var(--nw-sand);
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--nw-text-light);
    font-weight: 400;
    padding: 1rem 1.5rem;
    border-radius: 0;
    transition: all 0.2s ease;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.nav-tabs .nav-link:hover {
    color: var(--nw-charcoal);
    border-color: var(--nw-gray-light);
}

.nav-tabs .nav-link.active {
    color: var(--nw-charcoal);
    background-color: transparent;
    border-bottom-color: var(--nw-charcoal);
    font-weight: 500;
}

/* ============================================
   PAGINATION - Minimalist, clean
   ============================================ */
.page-link {
    border-radius: 0;
    border: 1px solid var(--nw-sand);
    color: var(--nw-charcoal);
    background-color: #ffffff;
    padding: 0.625rem 1rem;
    margin: 0 2px;
    transition: all 0.2s ease;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.page-link:hover {
    background-color: var(--nw-off-white);
    border-color: var(--nw-sand);
    color: var(--nw-charcoal);
}

.page-item.active .page-link {
    background-color: var(--nw-charcoal);
    border-color: var(--nw-charcoal);
    color: #ffffff;
}

.page-item.disabled .page-link {
    background-color: var(--nw-off-white);
    border-color: var(--nw-sand);
    color: var(--nw-gray);
}

/* ============================================
   SPINNER - Charcoal colored
   ============================================ */
.spinner {
    border: 2px solid var(--nw-sand);
    border-top-color: var(--nw-charcoal);
}

/* ============================================
   SPECIAL SECTIONS
   ============================================ */
.hero-section {
    background-color: var(--nw-off-white);
    border-radius: 0;
    padding: 4rem 3rem;
    margin-bottom: 3rem;
    border-left: 2px solid var(--nw-charcoal);
}

.info-box {
    background-color: var(--nw-off-white);
    border-radius: 0;
    padding: 1.5rem;
    border-left: 2px solid var(--nw-charcoal);
}

.selection-highlight {
    background-color: var(--nw-off-white);
    border: 1px solid var(--nw-charcoal);
    border-radius: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-brand { color: var(--nw-charcoal) !important; }
.bg-brand { background-color: var(--nw-off-white) !important; }
.border-brand { border-color: var(--nw-charcoal) !important; }
