/* Roofing Calculator Styles */

/* Design System Variables */
:root {
    /* Colors */
    --primary-color: #0F172A;
    /* Deep Navy */
    --primary-light: #1E293B;
    --accent-color: #F59E0B;
    /* Amber/Gold */
    --accent-hover: #D97706;

    --text-light: #F8FAFC;
    --text-muted: #94A3B8;
    --text-dark: #334155;

    --surface-white: #FFFFFF;
    --surface-off-white: #F8FAFC;

    --gradient-hero: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
    --shadow-card: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 500px;
    /* Reduced for mobile-first initially, adjusted in media queries */

    /* Components */
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--surface-off-white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background-image: var(--gradient-hero), url('hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--text-light);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.8s ease-out;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Calculator Section */
.calculator-section {
    position: relative;
    margin-top: -100px;
    /* Overlap hero */
    padding-bottom: 4rem;
    z-index: 10;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.calculator-card {
    background: var(--surface-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2.5rem;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out 0.2s backwards;
}

.calc-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calc-header h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.calc-header p {
    color: var(--text-muted);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

    .hero h1 {
        font-size: 3.5rem;
    }
}

select,
input[type="text"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #F8FAFC;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25em;
}

input[type="text"] {
    background-image: none;
}

select:focus,
input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Range Slider */
.slider-container {
    padding: 1rem 0;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #E2E8F0;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
    transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.range-value {
    margin-top: 0.5rem;
    text-align: right;
    font-weight: 600;
    color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

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

/* Results Section */
.results-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #E2E8F0;
    text-align: center;
}

.label {
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.price-range {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.disclaimer {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.action-buttons {
    display: grid;
    gap: 1rem;
}

@media (min-width: 600px) {
    .action-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #1FAF54;
}

.btn-sms {
    background-color: #3B82F6;
    color: white;
}

.btn-sms:hover {
    background-color: #2563EB;
}

.btn-call {
    background-color: var(--primary-color);
    color: white;
}

.btn-call:hover {
    background-color: var(--primary-light);
}