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

:root {
    /* Scandinavian Color Palette */
    --color-warm-white: #f9f7f4;
    --color-soft-grey: #e8e5e0;
    --color-warm-grey: #d8d2c9;
    --color-sage-green: #8a9b6e;
    --color-oak: #b99470;
    --color-slate-blue: #6b8aa0;
    --color-dark: #2c3e3d;
    --color-text: #333333;
    --color-text-light: #666666;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-gentle: all 0.6s ease;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-warm-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-dark);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

h3 {
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
}

h4 {
    font-size: 1.3rem;
    margin-bottom: var(--space-xs);
}

p {
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-sm);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-oak);
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-lg);
    font-size: 1.2rem;
    color: var(--color-text-light);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 1rem;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

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

.btn-primary:hover {
    background-color: var(--color-oak);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-slate-blue);
    border: 2px solid var(--color-slate-blue);
}

.btn-secondary:hover {
    background-color: var(--color-slate-blue);
    color: white;
    transform: translateY(-3px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(249, 247, 244, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-soft-grey);
    transition: var(--transition-smooth);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-dark);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-sage-green);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.phone-link {
    color: var(--color-slate-blue) !important;
    font-weight: 600;
}

.nav-cta {
    background-color: var(--color-sage-green);
    color: white !important;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
}

.nav-cta:hover {
    background-color: var(--color-oak);
    color: white !important;
}

.nav-cta::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(rgba(44, 62, 61, 0.2), rgba(44, 62, 61, 0.1)), 
                url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(44, 62, 61, 0.4), rgba(44, 62, 61, 0.1));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    color: white;
    font-size: 4rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeUp 1s ease-out;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    margin-bottom: var(--space-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 1s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeUp 1s ease-out 0.4s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

/* Value Proposition Section */
.value-section {
    padding: var(--space-xl) 0;
    background-color: white;
}

.process-steps {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    background-color: var(--color-warm-white);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.step-icon {
    height: 80px;
    width: 80px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-icon img {
    height: 40px;
    width: auto;
}

/* Services Section */
.services-section {
    padding: var(--space-xl) 0;
    background-color: var(--color-warm-white);
}

.slider-container {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    position: relative;
}

.slider-track {
    height: 6px;
    background-color: var(--color-soft-grey);
    border-radius: 3px;
    position: relative;
    margin: 0 20px;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: var(--color-oak);
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 5px 15px rgba(185, 148, 112, 0.3);
    transition: var(--transition-smooth);
    z-index: 10;
}

.slider-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(0.95);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-weight: 600;
    color: var(--color-text-light);
}

.service-cards {
    display: flex;
    gap: 2rem;
    margin-top: var(--space-lg);
}

.service-card {
    flex: 1;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    opacity: 0.7;
    transform: scale(0.95);
    transition: var(--transition-gentle);
}

.service-card.active {
    opacity: 1;
    transform: scale(1);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-gentle);
}

.service-card[data-service="trading"] .card-bg {
    background-image: linear-gradient(rgba(249, 247, 244, 0.85), rgba(249, 247, 244, 0.9)), 
                      url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.service-card[data-service="residential"] .card-bg {
    background-image: linear-gradient(rgba(249, 247, 244, 0.85), rgba(249, 247, 244, 0.9)), 
                      url('https://images.unsplash.com/photo-1518780664697-55e3ad937233?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.service-card[data-service="contracting"] .card-bg {
    background-image: linear-gradient(rgba(249, 247, 244, 0.85), rgba(249, 247, 244, 0.9)), 
                      url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
}

.card-content {
    position: relative;
    z-index: 2;
    padding: var(--space-lg);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-features {
    list-style: none;
    margin-top: auto;
}

.card-features li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
    color: var(--color-text-light);
}

.card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-sage-green);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    padding: var(--space-xl) 0;
    background-color: white;
}

.cta-container {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.cta-form {
    flex: 1;
    background-color: var(--color-warm-white);
    padding: var(--space-lg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cta-form h3 {
    margin-bottom: var(--space-md);
    color: var(--color-dark);
}

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

.form-group input, .form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-soft-grey);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
    background-color: white;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-sage-green);
    box-shadow: 0 0 0 3px rgba(138, 155, 110, 0.1);
}

.form-note {
    margin-top: var(--space-md);
    font-size: 0.9rem;
    text-align: center;
}

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

.info-card {
    background-color: var(--color-warm-white);
    padding: var(--space-md);
    border-radius: 8px;
    border-left: 4px solid var(--color-oak);
}

.info-card i {
    font-size: 1.5rem;
    color: var(--color-oak);
    margin-bottom: 10px;
}

/* Credibility Section */
.credibility-section {
    padding: var(--space-xl) 0;
    background-color: var(--color-warm-white);
}

.credibility-container {
    display: flex;
    gap: 3rem;
    margin-top: var(--space-lg);
}

.testimonials {
    flex: 1;
}

.testimonial-slider {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.testimonial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: var(--transition-gentle);
    border-radius: 12px;
    overflow: hidden;
}

.testimonial.active {
    opacity: 1;
}

.testimonial-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(44, 62, 61, 0.85), rgba(44, 62, 61, 0.9)), 
                url('images/testimonial-bg.jpg');
    background-size: cover;
    background-position: center;
}

.testimonial-content {
    position: relative;
    z-index: 2;
    padding: var(--space-lg);
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-md);
}

.testimonial-author h4 {
    color: white;
    margin-bottom: 5px;
}

.testimonial-author p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: var(--space-md);
}

.testimonial-btn {
    background: none;
    border: 2px solid var(--color-slate-blue);
    color: var(--color-slate-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-btn:hover {
    background-color: var(--color-slate-blue);
    color: white;
}

.testimonial-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-soft-grey);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background-color: var(--color-slate-blue);
}

.trust-badges {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.badge-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-warm-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-icon i {
    font-size: 1.5rem;
    color: var(--color-oak);
}

.badge-content h3 {
    margin-bottom: 5px;
}

.badge-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: var(--color-dark);
    color: white;
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.footer-brand .logo-text {
    color: white;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

.footer-contact h4, .footer-cta h4 {
    color: white;
    margin-bottom: var(--space-md);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-contact a:hover {
    color: var(--color-oak);
}

.footer-cta .btn-secondary {
    color: white;
    border-color: white;
}

.footer-cta .btn-secondary:hover {
    background-color: white;
    color: var(--color-dark);
}

.footer-hours {
    margin-top: var(--space-md);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-gentle);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    transform: translateY(30px);
    transition: var(--transition-gentle);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background-color: var(--color-warm-white);
    border-bottom: 1px solid var(--color-soft-grey);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-text-light);
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--color-dark);
}

.modal-body {
    padding: var(--space-lg);
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: var(--color-sage-green);
    margin-bottom: var(--space-md);
}

.modal-close-btn {
    margin-top: var(--space-md);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .service-cards {
        flex-direction: column;
    }
    
    .credibility-container {
        flex-direction: column;
    }
    
    .cta-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .process-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        max-width: 100%;
    }
    
    .footer-content, .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .footer-contact p {
        justify-content: center;
    }
}
