/* Warm Premium Theme - Custom CSS */
/* Warm Craftsmanship - Trust, Elegance, Comfort, Premium Quality */

/* ==================== Base Styles ==================== */
:root {
    --primary-50: #FFF9F3;
    --primary-100: #FFF0E0;
    --primary-200: #FFDDB8;
    --primary-300: #FFCA90;
    --primary-400: #FFB868;
    --primary-500: #D4913E;
    --primary-600: #B67933;
    --primary-700: #9A6229;
    --primary-800: #7D4B1F;
    --primary-900: #5E3816;

    --secondary-50: #F4F1ED;
    --secondary-100: #E8DFD4;
    --secondary-200: #D1BFA9;
    --secondary-300: #BA9F7E;
    --secondary-400: #A38153;
    --secondary-500: #85664A;
    --secondary-600: #6D5440;
    --secondary-700: #564336;
    --secondary-800: #3F322C;
    --secondary-900: #2A2220;

    --neutral-white: #FFFFFF;
    --neutral-cream: #FAF8F5;
    --neutral-50: #F5F3F0;
    --neutral-100: #EBE7E3;
    --neutral-200: #D7D0C7;
    --neutral-300: #B8AFA3;
    --neutral-400: #998E7F;
    --neutral-500: #7A6F63;
    --neutral-600: #5F564D;
    --neutral-700: #47403A;
    --neutral-800: #322D29;
    --neutral-900: #1F1C1A;

    --accent-terracotta: #E07A5F;
    --accent-sage: #81B29A;
    --accent-cream: #F2E9E4;
    --accent-burgundy: #8C4A4E;

    --shadow-soft: 0 2px 8px rgba(31, 28, 26, 0.06);
    --shadow-md: 0 4px 16px rgba(31, 28, 26, 0.08);
    --shadow-lg: 0 8px 24px rgba(31, 28, 26, 0.12);
    --shadow-warm: 0 8px 32px rgba(212, 145, 62, 0.15);
}

body {
    font-family: 'DM Sans', 'Pretendard Variable', 'Pretendard', sans-serif;
    background-color: var(--neutral-cream);
    color: var(--neutral-900);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced text sizes for light theme readability */
.text-sm {
    font-size: 0.9375rem !important;
    line-height: 1.6;
}

.text-xs {
    font-size: 0.8125rem !important;
    line-height: 1.5;
}

.text-base {
    font-size: 1.0625rem !important;
    line-height: 1.7;
}

.text-lg {
    font-size: 1.1875rem !important;
    line-height: 1.65;
}

p, li, span, a {
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Crimson Pro', 'Pretendard Variable', 'Pretendard', Georgia, serif;
}

.font-ui {
    font-family: 'DM Sans', 'Pretendard Variable', 'Pretendard', sans-serif;
    font-weight: 600;
}

/* ==================== Material Symbols ==================== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ==================== Navigation ==================== */
.soft-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    border-bottom: 1px solid rgba(212, 145, 62, 0.1);
}

/* ==================== Glass Effect ==================== */
.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 145, 62, 0.1);
}

/* ==================== Buttons ==================== */
.warm-gradient {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-400) 50%, var(--primary-500) 100%);
}

.indigo-gradient {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
}

.gold-gradient {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-400) 50%, var(--primary-500) 100%);
}

.gold-button, .warm-button {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-400) 50%, var(--primary-500) 100%);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-warm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gold-button:hover, .warm-button:hover {
    box-shadow: 0 12px 36px rgba(212, 145, 62, 0.25);
    transform: translateY(-2px);
}

/* ==================== Borders ==================== */
.border-gold-subtle {
    border-color: rgba(212, 145, 62, 0.15);
}

.border-warm {
    border-color: rgba(212, 145, 62, 0.3);
}

/* ==================== Shadows ==================== */
.soft-shadow {
    box-shadow: var(--shadow-warm);
}

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

/* ==================== Cards ==================== */
.service-card, .feature-card {
    background: var(--neutral-white);
    border: 1px solid var(--neutral-100);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.service-card:hover, .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

/* ==================== Section Backgrounds ==================== */
.bg-primary-bg {
    background-color: var(--neutral-cream) !important;
}

.bg-secondary-bg {
    background-color: var(--neutral-white) !important;
}

.bg-tertiary-bg {
    background-color: var(--neutral-50) !important;
}

/* ==================== Hero Section ==================== */
.hero-gradient {
    background: linear-gradient(135deg, var(--neutral-white) 0%, var(--neutral-50) 100%);
}

/* ==================== Text Colors Override ==================== */
.text-text-main {
    color: var(--neutral-900) !important;
}

.text-text-dim {
    color: var(--neutral-500) !important;
}

.text-accent-indigo {
    color: var(--primary-600) !important;
}

/* ==================== Accent Backgrounds ==================== */
.bg-accent-indigo {
    background-color: var(--primary-500) !important;
}

.bg-accent-indigo\/10 {
    background-color: rgba(212, 145, 62, 0.1) !important;
}

/* ==================== Links ==================== */
a {
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-600);
}

/* ==================== Footer ==================== */
footer {
    background: var(--secondary-800) !important;
    color: var(--neutral-300);
}

footer a {
    color: var(--neutral-400);
}

footer a:hover {
    color: var(--primary-400);
}

footer h3, footer .text-accent-indigo {
    color: var(--primary-300) !important;
}

/* ==================== Form Elements ==================== */
input, textarea, select {
    background: var(--neutral-white);
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px rgba(212, 145, 62, 0.1);
    outline: none;
}

/* ==================== Input Field Class ==================== */
.input-field {
    width: 100%;
    background-color: var(--neutral-white);
    border: 1px solid var(--neutral-200) !important;
    border-radius: 8px;
    padding: 1rem;
    color: var(--neutral-900);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-field::placeholder {
    color: rgba(122, 111, 99, 0.5);
}

.input-field:focus {
    border-color: var(--primary-500) !important;
    box-shadow: 0 0 0 3px rgba(212, 145, 62, 0.15);
    outline: none;
}

/* ==================== Indigo Button (Primary Action) ==================== */
.indigo-button {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%) !important;
    color: var(--neutral-white) !important;
    font-weight: 600;
    box-shadow: var(--shadow-warm);
    transition: all 0.3s ease;
}

.indigo-button:hover {
    box-shadow: 0 12px 36px rgba(212, 145, 62, 0.3);
    transform: translateY(-2px);
}

/* ==================== Testimonial Section ==================== */
.testimonial-section {
    background: linear-gradient(135deg, var(--secondary-700), var(--secondary-800));
    color: white;
}

/* ==================== CTA Section ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--accent-cream) 100%);
}

/* ==================== Badges ==================== */
.badge-warm {
    background: var(--primary-50);
    color: var(--primary-700);
    padding: 0.375rem 0.875rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==================== Animations ==================== */
@keyframes warm-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 145, 62, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(212, 145, 62, 0);
    }
}

.animate-warm-pulse {
    animation: warm-pulse 2s infinite;
}

/* ==================== Trust Icons ==================== */
.trust-icon {
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-radius: 16px;
}

/* ==================== Feature Icons ==================== */
.feature-icon {
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-radius: 12px;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    body {
        font-size: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* ==================== Selection ==================== */
::selection {
    background-color: var(--primary-200);
    color: var(--neutral-900);
}

/* ==================== Scrollbar (Webkit) ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-400);
}

/* ==================== Footer Gradient ==================== */
.footer-gradient {
    background: linear-gradient(180deg, var(--secondary-700) 0%, var(--secondary-800) 100%);
}

/* Footer text overrides for warm-premium */
.footer-gradient .text-text-main {
    color: var(--neutral-white) !important;
}

.footer-gradient .text-text-dim {
    color: var(--neutral-300) !important;
}

.footer-gradient .text-accent-indigo {
    color: var(--primary-300) !important;
}

.footer-gradient .border-border-soft {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.footer-gradient a:hover {
    color: var(--primary-400) !important;
}

/* Copyright text - make visible on dark footer */
.footer-gradient .text-text-dim\/40 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.footer-gradient p.text-text-dim\/40 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ==================== Hero Section Button Fixes ==================== */
/* Secondary/Glass buttons in hero - make text visible on light theme */
.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 145, 62, 0.2);
}

.glass.text-white {
    color: var(--neutral-900) !important;
}

/* btn-secondary-enhanced for light theme */
.btn-secondary-enhanced {
    background: var(--neutral-white) !important;
    border: 2px solid var(--secondary-300) !important;
    color: var(--secondary-700) !important;
}

.btn-secondary-enhanced.text-text-main {
    color: var(--secondary-700) !important;
}

.btn-secondary-enhanced:hover {
    background: var(--secondary-700) !important;
    color: var(--neutral-white) !important;
    border-color: var(--secondary-700) !important;
}

/* Ensure text-text-main is always visible on light backgrounds */
.text-text-main {
    color: var(--neutral-900) !important;
}

/* btn-primary-enhanced keeps warm gradient */
.btn-primary-enhanced {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%) !important;
}

/* ==================== Obsidian Text Override ==================== */
/* In light theme, obsidian should still be dark */
.text-obsidian {
    color: var(--neutral-900) !important;
}

.bg-obsidian {
    background-color: var(--secondary-800) !important;
}

/* ==================== Primary Button on Light Background ==================== */
.bg-primary {
    background-color: var(--primary-500) !important;
}

.bg-primary.text-obsidian {
    color: var(--neutral-white) !important;
}

/* ==================== Glass Button Text Fix ==================== */
a.glass, button.glass {
    color: var(--neutral-900) !important;
}

a.glass:hover, button.glass:hover {
    background: rgba(212, 145, 62, 0.1);
    color: var(--primary-700) !important;
}

/* ==================== Transparent/Semi-transparent Button Fix ==================== */
/* Fix buttons with bg-white/10 text-white pattern - make visible on light theme */
a[class*="bg-white"][class*="text-white"],
button[class*="bg-white"][class*="text-white"] {
    background: var(--neutral-white) !important;
    border: 2px solid var(--secondary-300) !important;
    color: var(--secondary-700) !important;
}

a[class*="bg-white"][class*="text-white"]:hover,
button[class*="bg-white"][class*="text-white"]:hover {
    background: var(--secondary-700) !important;
    color: var(--neutral-white) !important;
    border-color: var(--secondary-700) !important;
}
