/* Import Design Token System */
@import url('./design-tokens.css');

/* Import Quicksand font */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=optional');

body {
    font-family: var(--font-primary);
    background: var(--color-bg-gradient);
    font-weight: 500;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: var(--line-height-normal);
}

/* Typography inherits from design-tokens.css */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-heading);
    line-height: var(--line-height-tight);
}

/* Default center alignment for most headings */
h2, h3, h4, h5, h6 {
    text-align: center;
}

/* Hero H1 - left on desktop, center on mobile */
.hero-section h1 {
    text-align: center;
}

@media (min-width: 768px) {
    .hero-section h1 {
        text-align: left;
    }
}

h1 {
    letter-spacing: -0.02em;
    font-size: var(--h1-mobile);
}

@media (min-width: 768px) {
    h1 {
        font-size: var(--h1-tablet);
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: var(--h1-desktop);
    }
}

/* ========================================
   SHARED COMPONENTS & UTILITIES
   ======================================== */

/* Animated background decorative elements */
.flame-animation {
    animation: flame-flicker 3s ease-in-out infinite;
}

@keyframes flame-flicker {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.05) translateY(-5px); }
}

/* Warm background gradient */
.warm-bg {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, rgba(251, 146, 60, 0.05) 100%);
}

/* Card with warm gradient and hover effects */
.card-warm {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,250,240,0.95) 100%);
    border: 2px solid rgba(249, 115, 22, 0.15);
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 24px;
}

.card-warm:hover {
    transform: translateY(-10px);
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.2);
}

/* Direct Answer Box */
.direct-answer-box {
    background: white;
    border: 2px solid rgba(249, 115, 22, 0.2);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary-base) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    text-align: center;
    transition: all var(--duration-base) ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-base) 100%);
    box-shadow: var(--shadow-orange-lg);
    transform: translateY(-2px);
}

.btn-primary.large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-secondary {
    position: relative;
    display: inline-block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary-base) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    text-align: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    animation: callNowPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.6);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: callNowShine 2s infinite;
    pointer-events: none;
}

.btn-secondary:hover {
    animation: callNowPulseHover 0.6s ease-in-out infinite !important;
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.8) !important;
}

.btn-secondary.outline {
    background: transparent !important;
    border: 1px solid var(--color-primary-base) !important;
    color: var(--color-primary-base) !important;
    animation: callNowPulse 1.5s ease-in-out infinite !important;
    box-shadow: 0 0 15px rgba(249, 115, 22, 0.4) !important;
}

.btn-secondary.large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.phone-icon {
    display: inline-block;
    animation: phoneRing 1s ease-in-out infinite;
}

@keyframes callNowPulse {
    0% { transform: scale(1); box-shadow: 0 0 20px rgba(249, 115, 22, 0.6); }
    50% { transform: scale(1.08); box-shadow: 0 0 30px rgba(249, 115, 22, 0.8); }
    100% { transform: scale(1); box-shadow: 0 0 20px rgba(249, 115, 22, 0.6); }
}

@keyframes callNowPulseHover {
    0%, 100% { transform: scale(1.08); box-shadow: 0 0 30px rgba(249, 115, 22, 0.8); }
    50% { transform: scale(1.12); box-shadow: 0 0 50px rgba(249, 115, 22, 1); }
}

@keyframes callNowShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 20% { transform: rotate(-15deg); }
    30%, 50%, 70%, 90% { transform: rotate(15deg); }
    40%, 60%, 80% { transform: rotate(-15deg); }
}

@media (max-width: 640px) {
    .btn-primary, .btn-secondary {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
    .btn-primary.large, .btn-secondary.large {
        padding: 11px 20px;
        font-size: 1rem;
    }
}

/* ========================================
   RESPONSIVE HEADING SIZES
   ======================================== */

h2 {
    font-size: var(--h2-mobile) !important;
    text-align: center !important;
    font-weight: var(--font-weight-bold) !important;
}

@media (min-width: 768px) {
    h2 { font-size: var(--h2-tablet) !important; }
}

@media (min-width: 1024px) {
    h2 { font-size: var(--h2-desktop) !important; }
}

h3 {
    font-size: var(--h3-mobile) !important;
    line-height: 1.2 !important;
    font-weight: var(--font-weight-bold) !important;
}

@media (min-width: 768px) {
    h3 { font-size: var(--h3-tablet) !important; }
}

@media (min-width: 1024px) {
    h3 { font-size: var(--h3-desktop) !important; }
}

h4 {
    font-size: var(--h4-mobile) !important;
    font-weight: var(--font-weight-semibold) !important;
    line-height: 1.2 !important;
}

@media (min-width: 768px) {
    h4 { font-size: var(--h4-tablet) !important; }
}

@media (min-width: 1024px) {
    h4 { font-size: var(--h4-desktop) !important; }
}
