/* =================================
   RoofLynx - Complete Responsive CSS
   ================================= */

/* CSS Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root Variables */
:root {
    /* Colors */
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --neutral-900: #171717;
    --neutral-800: #262626;
    --neutral-700: #404040;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --black: #000000;
    --green-50: #f0fdf4;
    --green-200: #bbf7d0;
    --green-600: #16a34a;
    --green-800: #166534;
    --yellow-50: #fefce8;
    --yellow-400: #facc15;
    --blue-50: #eff6ff;
    --blue-600: #2563eb;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-6xl: 3.75rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: var(--gray-900);
    background-color: var(--white);
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Header Styles */
header {
    background-color: var(--neutral-900);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

header nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    header nav {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    header nav {
        padding: 0 2rem;
    }
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--red-600);
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: block;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    padding: 0.5rem 0.75rem;
    font-size: var(--text-sm);
    transition: color 0.3s ease;
    color: var(--gray-300);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a.active {
    color: var(--red-500);
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--red-600);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: var(--text-sm);
    transition: background-color 0.3s ease;
}

.nav-phone:hover {
    background-color: var(--red-700);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: block;
    padding: 0.5rem;
    border-radius: 0.375rem;
    color: var(--gray-400);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn:hover {
    color: var(--white);
    background-color: var(--neutral-800);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background-color: var(--neutral-800);
}

.mobile-menu.active {
    display: block;
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
}

.mobile-nav {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: var(--text-base);
    color: var(--gray-300);
    transition: all 0.3s ease;
}

.mobile-nav a:hover {
    background-color: var(--neutral-700);
    color: var(--white);
}

.mobile-nav a.active {
    background-color: var(--neutral-700);
    color: var(--red-500);
}

.mobile-nav .nav-phone {
    margin: 0.75rem;
}

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--neutral-900);
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 1rem;
    z-index: 2;
}

@media (min-width: 640px) {
    .hero-content {
        padding: 6rem 1.5rem;
    }
}

@media (min-width: 768px) {
    .hero-content {
        padding: 8rem 2rem;
    }
}

.hero-inner {
    max-width: 48rem;
}

.hero h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: var(--text-6xl);
    }
}

.hero p {
    font-size: var(--text-xl);
    color: var(--gray-300);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero p {
        font-size: var(--text-2xl);
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    font-size: var(--text-base);
}

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

.btn-primary:hover {
    background-color: var(--red-700);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--neutral-900);
}

.btn-secondary:hover {
    background-color: var(--gray-100);
}

/* Sections */
section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    section {
        padding: 4rem 0;
    }
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.section-subtitle {
    font-size: var(--text-xl);
    text-align: center;
    color: var(--gray-600);
    max-width: 48rem;
    margin: 0 auto 3rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-1 {
    grid-template-columns: 1fr;
}

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

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Cards */
.card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.card-center {
    text-align: center;
}

.card h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.card p {
    color: var(--gray-600);
    font-size: var(--text-base);
}

/* Icon Circles */
.icon-circle {
    width: 4rem;
    height: 4rem;
    background-color: var(--red-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.icon-circle svg {
    width: 2rem;
    height: 2rem;
    color: var(--white);
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    font-size: var(--text-base);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--red-600);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input.error {
    border-color: var(--red-600);
}

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

.form-error {
    color: var(--red-600);
    font-size: var(--text-sm);
    margin-top: 0.25rem;
}

.form-success {
    background-color: var(--green-50);
    border: 1px solid var(--green-200);
    color: var(--green-800);
    padding: 1rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: var(--neutral-900);
    color: var(--gray-300);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

@media (min-width: 640px) {
    .footer-content {
        padding: 3rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .footer-content {
        padding: 3rem 2rem;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--red-600);
    margin-bottom: 1rem;
}

.footer h4 {
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: var(--text-sm);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: var(--text-sm);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.footer-legal a:hover {
    color: var(--white);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.text-red {
    color: var(--red-600);
}

.text-gray {
    color: var(--gray-600);
}

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

.bg-gray-50 {
    background-color: var(--gray-50);
}

.bg-red {
    background-color: var(--red-600);
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.rounded {
    border-radius: 0.375rem;
}

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

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

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--neutral-900);
    color: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    z-index: 999;
    display: none;
}

.cookie-consent.active {
    display: block;
}

.cookie-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 2rem;
    }
}

.cookie-text {
    font-size: var(--text-sm);
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
}

/* Contact Info List */
.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: var(--text-sm);
}

.contact-item svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* Service Cards */
.service-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.service-card a {
    color: var(--red-600);
    font-weight: 500;
    transition: text-decoration 0.3s ease;
}

.service-card a:hover {
    text-decoration: underline;
}

/* Alert Boxes */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: var(--green-50);
    border-color: var(--green-600);
    color: var(--green-800);
}

.alert-error {
    background-color: #fee;
    border-color: var(--red-600);
    color: #991b1b;
}

/* Page Hero */
.page-hero {
    background-color: var(--neutral-900);
    color: var(--white);
    padding: 4rem 0;
}

.page-hero h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: var(--text-xl);
    color: var(--gray-300);
    max-width: 48rem;
    margin: 0 auto;
}

.hero-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: var(--red-500);
}

/* Process Steps */
.process-step {
    text-center;
}

.step-number {
    width: 4rem;
    height: 4rem;
    background-color: var(--red-600);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: 700;
    margin: 0 auto 1rem;
}

.process-step h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

/* CTA Section */
.cta-section {
    background-color: var(--red-600);
    color: var(--white);
    padding: 4rem 0;
}

.cta-section h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: var(--text-xl);
    margin-bottom: 2rem;
}

/* SVG Icons */
svg {
    display: inline-block;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

button, a, input, select, textarea {
    transition: all 0.3s ease;
}

/* Print Styles */
@media print {
    header, footer, .mobile-menu, .cookie-consent {
        display: none;
    }
}
