/**
 * Washington Home Improvements - Component Styles
 * Reusable UI components: Buttons, Cards, Forms, CTAs
 */

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

/* Button Sizes */
.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-base);
}

/* Button Variants - Yellow/Orange */
.btn-yellow {
    background: linear-gradient(135deg, #ff9100 0%, #ff7c00 100%);
    color: var(--color-white);
    border-color: #ff9100;
    box-shadow: 0 4px 12px rgba(255, 145, 0, 0.25);
}

.btn-yellow:hover {
    background: linear-gradient(135deg, #1a2332 0%, #0f1823 100%);
    border-color: #ff9100;
    color: #ff9100;
    box-shadow: 0 6px 20px rgba(255, 145, 0, 0.4);
}

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

.btn-yellow-outline:hover {
    background: var(--color-yellow);
    color: var(--color-darker);
    box-shadow: var(--shadow-yellow-glow);
}

/* Button Variants - Red */
.btn-red {
    background: var(--color-red);
    color: var(--color-white);
    border-color: var(--color-red);
}

.btn-red:hover {
    background: var(--color-yellow);
    border-color: var(--color-yellow);
    color: var(--color-darker);
    box-shadow: var(--shadow-yellow-glow);
}

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

.btn-red-outline:hover {
    background: var(--color-white);
    color: var(--color-red);
    border-color: var(--color-white);
}

/* Phone Button */
.btn-phone {
    background: linear-gradient(135deg, #ff9100 0%, #ff7c00 100%);
    color: var(--color-white);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--text-sm);
    transition: all var(--transition-base);
    border: 2px solid #ff9100;
    box-shadow: 0 4px 12px rgba(255, 145, 0, 0.3);
}

.btn-phone:hover {
    background: linear-gradient(135deg, #1a2332 0%, #0f1823 100%);
    border-color: #ff9100;
    color: #ff9100;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 145, 0, 0.4);
}

.btn-phone svg {
    flex-shrink: 0;
}

/* ========================================
   SERVICE CARDS
   ======================================== */

.service-card {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    height: 100%;
}

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

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--yellow-alpha-10);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
}

.service-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.service-title {
    font-size: var(--text-xl);
    color: var(--color-darker);
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.service-desc {
    font-size: var(--text-base);
    color: var(--color-grey);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 0;
}

.service-card .btn {
    margin-top: var(--space-md);
    align-self: flex-start;
}

/* ========================================
   FEATURE ITEMS
   ======================================== */

.feature-item {
    padding: var(--space-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--yellow-alpha-20);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg) auto;
}

.feature-icon svg {
    fill: var(--color-yellow);
}

.feature-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.feature-desc {
    font-size: var(--text-base);
    opacity: 0.9;
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-darker);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-md);
    font-size: var(--text-base);
    font-family: var(--font-body);
    color: var(--color-darker);
    background: var(--color-white);
    border: 2px solid var(--color-grey);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 3px var(--yellow-alpha-20);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(54, 69, 79, 0.5);
}

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

.form-checkbox,
.form-radio {
    width: 20px;
    height: 20px;
    margin-right: var(--space-sm);
    cursor: pointer;
}

.form-error {
    color: var(--color-red);
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
    display: none;
}

.form-group.error .form-error {
    display: block;
}

.form-group.error .form-input,
.form-group.error .form-textarea {
    border-color: var(--color-red);
}

.form-success {
    background: var(--yellow-alpha-10);
    border-left: 4px solid var(--color-yellow);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-parallax {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-4xl) 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-darker) 0%, var(--color-grey) 100%);
    z-index: var(--z-parallax-bg);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-alpha-70);
}

.parallax-tools {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-parallax-mid);
    pointer-events: none;
}

.parallax-tool {
    position: absolute;
    width: 120px;
    height: 120px;
    opacity: 0.3;
    will-change: transform;
}

.tool-hammer { top: 20%; left: 10%; }
.tool-wrench { top: 60%; right: 15%; }
.tool-drill { top: 30%; right: 25%; }
.tool-saw { bottom: 20%; left: 20%; }
.tool-level { top: 50%; left: 50%; }

.hero-content {
    position: relative;
    z-index: var(--z-parallax-fg);
    text-align: center;
}

.hero-title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-lg);
    line-height: 1;
}

.hero-subtitle {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2xl);
    opacity: 0.9;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.hero-ctas {
    flex-wrap: wrap;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-parallax-fg);
    text-align: center;
}

.scroll-text {
    display: block;
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.scroll-icon {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-yellow);
    border-radius: var(--radius-full);
    margin: 0 auto;
    position: relative;
}

.scroll-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-yellow);
    border-radius: 2px;
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 12px); opacity: 0.5; }
}

/* ========================================
   BADGES
   ======================================== */

.badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
}

.badge-yellow {
    background: var(--color-yellow);
    color: var(--color-darker);
}

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

.badge-grey {
    background: var(--color-grey);
    color: var(--color-white);
}

/* ========================================
   RESPONSIVE COMPONENTS
   ======================================== */

@media (max-width: 768px) {
    .service-card {
        padding: var(--space-lg);
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .parallax-tool {
        width: 80px;
        height: 80px;
        opacity: 0.2;
    }

    .feature-item {
        padding: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .btn-lg {
        padding: var(--space-md) var(--space-lg);
        font-size: var(--text-sm);
    }

    .service-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .service-icon {
        width: 36px;
        height: 36px;
    }
}
