/* ============================================
   FRONT RANGE BUILDERS - STYLES.CSS
   Commercial Construction Website
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --color-primary: #2B2B2B;
    --color-accent: #FDB913;
    --color-accent-hover: #E5A811;
    --color-white: #FFFFFF;
    --color-light-gray: #F5F5F5;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-placeholder: #CCCCCC;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 80px;
    --section-padding-mobile: 50px;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-speed: 0.3s;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

address {
    font-style: normal;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 24px;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--section-padding) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    margin: 20px auto 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 185, 19, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-white);
    transition: box-shadow var(--transition-speed) ease;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
}

.logo-accent {
    color: var(--color-accent);
}

.nav {
    display: none;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-phone {
    display: none;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.header-phone .phone-icon {
    color: var(--color-accent);
}

.header-phone:hover {
    color: var(--color-accent);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    padding: 5px;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all var(--transition-speed) ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease;
}

.mobile-nav.active {
    max-height: 400px;
}

.mobile-nav-list {
    padding: 20px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 0;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-light-gray);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link.mobile-phone {
    color: var(--color-accent);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-bg-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--color-placeholder);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-text-light);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 42px;
    color: var(--color-white);
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-white);
    opacity: 0.9;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-white);
    border-radius: 20px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--color-white);
    border-radius: 50%;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        top: 10px;
        opacity: 1;
    }
    50% {
        top: 25px;
        opacity: 0.5;
    }
}

/* ============================================
   ABOUT TEASER SECTION
   ============================================ */
.about-teaser {
    background-color: var(--color-white);
}

.about-teaser-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    background-color: var(--color-light-gray);
}

.projects-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.projects-header .section-title {
    margin-bottom: 0;
}

.projects-header .section-title::after {
    margin-top: 15px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.project-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-speed) ease, 
                box-shadow var(--transition-speed) ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-image-placeholder {
    width: 100%;
    height: 220px;
    background-color: var(--color-placeholder);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--color-text-light);
}

.project-info {
    padding: 24px;
}

.project-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-light);
    background-color: var(--color-light-gray);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.project-title {
    font-size: 20px;
    margin-bottom: 16px;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background-color: var(--color-white);
}

.services-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.services-intro {
    font-size: 18px;
    color: var(--color-text-light);
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.service-item {
    text-align: center;
    padding: 30px;
    background-color: var(--color-light-gray);
    border-radius: var(--radius-md);
    transition: transform var(--transition-speed) ease,
                box-shadow var(--transition-speed) ease;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: var(--color-accent);
    border-radius: 50%;
    margin-bottom: 20px;
}

.service-icon svg {
    stroke: var(--color-primary);
}

.service-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-description {
    font-size: 15px;
    color: var(--color-text-light);
}

.services-cta {
    text-align: center;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.testimonials .section-title {
    color: var(--color-white);
}

.testimonials .section-title::after {
    background-color: var(--color-accent);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-track {
    position: relative;
    min-height: 280px;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    text-align: center;
    padding: 0 20px;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
}

.testimonial-quote {
    font-size: 18px;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-quote::before {
    content: '"';
    font-size: 60px;
    font-family: Georgia, serif;
    color: var(--color-accent);
    display: block;
    line-height: 0.5;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-accent);
}

.author-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Slider Controls */
.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.slider-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--color-white);
    transition: all var(--transition-speed) ease;
}

.slider-arrow:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-primary);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: background-color var(--transition-speed) ease;
}

.dot:hover,
.dot.active {
    background-color: var(--color-accent);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background-color: var(--color-light-gray);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-text {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 30px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-address p,
.footer-phone,
.footer-email {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-phone a,
.footer-email a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-speed) ease;
}

.footer-phone a:hover,
.footer-email a:hover {
    color: var(--color-accent);
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.trust-badges li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    transition: all var(--transition-speed) ease;
}

.social-link:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright,
.credit {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.credit a {
    color: var(--color-accent);
}

.credit a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet - 768px */
@media (min-width: 768px) {
    h1 {
        font-size: 48px;
    }
    
    .hero-title {
        font-size: 54px;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 60px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Desktop - 1024px */
@media (min-width: 1024px) {
    section {
        padding: var(--section-padding) 0;
    }
    
    .nav {
        display: block;
    }
    
    .header-phone {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-nav {
        display: none;
    }
    
    .hero-title {
        font-size: 64px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .stat-number {
        font-size: 48px;
    }
    
    .projects-header {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .projects-header .section-title {
        text-align: left;
    }
    
    .projects-header .section-title::after {
        margin: 15px 0 0;
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonial-quote {
        font-size: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* Large Desktop - 1200px+ */
@media (min-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .hero-stats {
        gap: 100px;
    }
}