/*
Theme Name: Sussex Surfacing
Description: Professional tarmac and surfacing contractors website theme
Author: Sussex Surfacing Ltd
Version: 1.0
*/

/* Sussex Surfacing Design System - Professional Construction Theme */

:root {
    /* Core Background & Foreground */
    --background: hsl(0, 0%, 98%);
    --foreground: hsl(210, 20%, 15%);
    
    /* Card Components */
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(210, 20%, 15%);
    
    /* Primary - Professional Charcoal */
    --primary: hsl(210, 20%, 15%);
    --primary-foreground: hsl(0, 0%, 98%);
    --primary-hover: hsl(210, 25%, 12%);
    
    /* Secondary - Light Gray */
    --secondary: hsl(210, 10%, 95%);
    --secondary-foreground: hsl(210, 20%, 15%);
    
    /* Muted Tones */
    --muted: hsl(210, 10%, 95%);
    --muted-foreground: hsl(210, 15%, 45%);
    
    /* Construction Orange for CTAs */
    --construction: hsl(25, 95%, 55%);
    --construction-foreground: hsl(0, 0%, 100%);
    --construction-hover: hsl(25, 95%, 50%);
    
    /* Border & Input */
    --border: hsl(210, 15%, 85%);
    --input: hsl(210, 15%, 90%);
    
    /* Border Radius */
    --radius: 0.75rem;
    
    /* Shadows */
    --shadow-construction: 0 10px 40px -15px hsla(25, 95%, 55%, 0.4);
    --shadow-card: 0 4px 20px -8px hsla(210, 20%, 15%, 0.1);
    --shadow-elevated: 0 20px 60px -20px hsla(210, 20%, 15%, 0.2);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-hero {
    background: var(--construction);
    color: var(--construction-foreground);
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-hero:hover {
    background: var(--construction-hover);
    box-shadow: var(--shadow-construction);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-construction {
    background: var(--construction);
    color: var(--construction-foreground);
}

.btn-construction:hover {
    background: var(--construction-hover);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom right, var(--background), var(--muted));
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: hsla(210, 20%, 15%, 0.8);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 5rem 0;
    max-width: 64rem;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--construction);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 32rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: var(--background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-elevated);
}

.service-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsla(210, 20%, 15%, 0.8), transparent);
}

.service-icon {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: 2rem;
    height: 2rem;
    color: var(--construction);
}

.service-content {
    padding: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-description {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: hsla(210, 10%, 95%, 0.3);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

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

.about-content {
    max-width: none;
}

.about-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.about-points {
    list-style: none;
    margin-bottom: 2rem;
}

.about-point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--muted-foreground);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--construction);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.credentials-grid {
    display: grid;
    gap: 1.5rem;
}

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

.credential-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.credential-card:hover {
    box-shadow: var(--shadow-elevated);
}

.credential-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    background: hsla(25, 95%, 55%, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--construction);
}

.credential-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.credential-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--background);
}

.contact-grid {
    display: grid;
    gap: 2rem;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: linear-gradient(135deg, var(--construction), var(--construction-hover));
    color: var(--construction-foreground);
    padding: 1.5rem;
    border-radius: var(--radius);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-card-title {
    font-weight: 600;
}

.contact-card-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.contact-phone {
    font-size: 1.5rem;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
}

.contact-phone:hover {
    text-decoration: underline;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-detail-icon {
    color: var(--construction);
    margin-top: 0.25rem;
}

.contact-detail-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-detail-text {
    color: var(--muted-foreground);
}

/* Form Styles */
.form-card {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-elevated);
}

.form-grid {
    display: grid;
    gap: 1rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input, .form-textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    background: var(--background);
    transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--construction);
    box-shadow: 0 0 0 2px hsla(25, 95%, 55%, 0.2);
}

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

.form-disclaimer {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 4rem 0 0;
}

.footer-content {
    padding-bottom: 4rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

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

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

.footer-company {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .footer-company {
        grid-column: span 2;
    }
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item:hover {
    color: var(--construction);
}

.footer-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--construction);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social-link {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-social-link:hover {
    color: var(--construction);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

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

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

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

.footer-legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: var(--construction);
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.w-full { width: 100%; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
}

/* Icons (using simple CSS shapes where possible) */
.icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
}

.icon-check::before {
    content: "✓";
    color: var(--construction);
    font-weight: bold;
}

.icon-arrow::before {
    content: "→";
    color: var(--construction);
}

.icon-phone::before {
    content: "📞";
}

.icon-mail::before {
    content: "✉";
}

.icon-map::before {
    content: "📍";
}

.icon-clock::before {
    content: "🕐";
}