/* 
 * Cali Home Build - Main Stylesheet
 * A modern construction company website
 */

/* ===== Base Styles ===== */
:root {
    /* Primary Colors */
    --primary-color: #ff6b00; /* Vibrant orange */
    --secondary-color: #0066cc; /* Strong blue */
    --accent-color: #00cc99; /* Teal accent */
    
    /* Neutral Colors */
    --dark-color: #222831;
    --medium-color: #393e46;
    --light-color: #f5f5f5;
    --white-color: #ffffff;
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Raleway', sans-serif;
    
    /* Spacing */
    --section-spacing: 5rem;
    --element-spacing: 2rem;
    --small-spacing: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px = 1rem */
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--medium-color);
    background-color: var(--white-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

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

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 0.3rem;
    background-color: var(--primary-color);
}

.section-header p {
    font-size: 1.8rem;
    color: var(--medium-color);
    max-width: 70rem;
    margin: 0 auto;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    font-family: var(--heading-font);
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

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

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

.btn-secondary:hover {
    background-color: #0055aa;
    color: var(--white-color);
}

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

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

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1.5rem 0;
}

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

.logo a {
    display: flex;
    align-items: center;
    color: var(--dark-color);
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    margin-right: 15px;
}

.logo h1 {
    font-size: 2.4rem;
    margin-bottom: 0;
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.nav-item {
    margin-left: 3rem;
}

.nav-item a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.6rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-item a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-item a:hover:after,
.nav-item.active a:after {
    width: 100%;
}

.nav-item.active a {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
}

/* ===== Hero Section with Video Background ===== */
.hero {
    height: 80vh;
    min-height: 600px;
    background-color: var(--dark-color);
    position: relative;
    margin-top: 7.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white-color);
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h2 {
    font-size: 5rem;
    color: var(--white-color);
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 2rem;
    margin-bottom: 3rem;
}

/* ===== Page Banner ===== */
.page-banner {
    height: 30vh;
    min-height: 250px;
    background-color: var(--dark-color);
    position: relative;
    margin-top: 7.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero/placeholder.jpg');
    background-size: cover;
    background-position: center;
}

.banner-content {
    text-align: center;
    color: var(--white-color);
    position: relative;
    z-index: 3;
}

.banner-content h1 {
    color: var(--white-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 1.8rem;
    margin-bottom: 0;
}

/* ===== Rotating Banner ===== */
.rotating-banner {
    overflow: hidden;
    position: relative;
}

.banner-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.banner-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 3;
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* ===== Services Overview ===== */
.services-overview {
    padding: var(--section-spacing) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.service-card {
    background-color: var(--white-color);
    border-radius: 0.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 3rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 8rem;
    height: 8rem;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.service-icon i {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 1.5rem;
}

.service-card p {
    margin-bottom: 2rem;
}

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

/* ===== Why Choose Us ===== */
.why-choose-us {
    padding: var(--section-spacing) 0;
    background-color: var(--light-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.feature {
    text-align: center;
}

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

.feature-icon i {
    font-size: 3rem;
    color: var(--secondary-color);
}

.feature h3 {
    margin-bottom: 1rem;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 8rem 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}

.cta-content h2 {
    color: var(--white-color);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    max-width: 70rem;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Service Areas ===== */
.service-areas {
    padding: var(--section-spacing) 0;
}

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

.areas-text p {
    margin-bottom: 2rem;
}

.areas-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.areas-list li {
    display: flex;
    align-items: center;
}

.areas-list i {
    color: var(--primary-color);
    margin-right: 1rem;
}

.areas-map {
    height: 100%;
    min-height: 300px;
    background-color: var(--light-color);
    border-radius: 0.8rem;
    overflow: hidden;
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.map-placeholder i {
    font-size: 5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.map-placeholder p {
    font-size: 1.8rem;
    font-weight: 600;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-logo h3 {
    color: var(--white-color);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    display: block;
}

.footer-logo p {
    color: var(--light-color);
}

.footer h4 {
    color: var(--white-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.footer ul {
    list-style: none;
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 1rem;
}

.footer ul li a {
    color: var(--light-color);
}

.footer ul li a:hover {
    color: var(--primary-color);
}

.footer-contact ul li {
    display: flex;
    align-items: center;
}

.footer-contact ul li i {
    margin-right: 1rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 1rem;
    color: var(--white-color);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

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

.footer-bottom p {
    margin-bottom: 0;
}

/* ===== Service Page Styles ===== */
.services-intro {
    padding: 4rem 0;
    text-align: center;
}

.intro-content {
    max-width: 80rem;
    margin: 0 auto;
}

.service-section {
    padding: 5rem 0;
}

.service-section.alt-bg {
    background-color: var(--light-color);
}

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

.service-content.reverse {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.service-content.reverse .service-text {
    direction: ltr;
}

.service-content.reverse .service-image {
    direction: ltr;
}

.service-text h2 {
    margin-bottom: 2rem;
}

.service-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 3rem;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.service-features li i {
    color: var(--primary-color);
    margin-right: 1rem;
}

.service-image {
    height: 100%;
    min-height: 300px;
}

.service-image .image-placeholder {
    height: 100%;
    background-color: var(--light-color);
    border-radius: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.service-image .image-placeholder i {
    font-size: 5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* ===== Portfolio Page Styles ===== */
.portfolio-intro {
    padding: 4rem 0;
    text-align: center;
}

.portfolio-filter {
    padding: 2rem 0;
    text-align: center;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 1rem 2rem;
    background-color: var(--light-color);
    border: none;
    border-radius: 0.4rem;
    font-family: var(--heading-font);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.project-card {
    background-color: var(--white-color);
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 250px;
    overflow: hidden;
}

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

.project-image .image-placeholder {
    height: 100%;
    background-color: var(--light-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.project-image .image-placeholder i {
    font-size: 5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-category {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.portfolio-cta {
    text-align: center;
    padding: 3rem 0;
}

/* ===== About Page Styles ===== */
.company-overview {
    padding: var(--section-spacing) 0;
}

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

.overview-text h2 {
    margin-bottom: 2rem;
}

.overview-image {
    height: 100%;
    min-height: 300px;
}

.overview-image .image-placeholder {
    height: 100%;
    background-color: var(--light-color);
    border-radius: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.overview-image .image-placeholder i {
    font-size: 5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.mission-values {
    padding: var(--section-spacing) 0;
    background-color: var(--light-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.value-card {
    background-color: var(--white-color);
    border-radius: 0.8rem;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.value-icon {
    width: 7rem;
    height: 7rem;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.value-icon i {
    font-size: 3rem;
    color: var(--primary-color);
}

.our-team {
    padding: var(--section-spacing) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.team-member {
    background-color: var(--white-color);
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.member-image {
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-image .image-placeholder {
    height: 100%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-image .image-placeholder i {
    font-size: 5rem;
    color: var(--secondary-color);
}

.member-info {
    padding: 2rem;
    text-align: center;
}

.member-info h3 {
    margin-bottom: 0.5rem;
}

.member-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.our-process {
    padding: var(--section-spacing) 0;
    background-color: var(--light-color);
}

.process-steps {
    max-width: 80rem;
    margin: 0 auto;
}

.process-step {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 5rem;
    left: 2.5rem;
    width: 2px;
    height: calc(100% - 2rem);
    background-color: var(--primary-color);
}

.step-number {
    flex-shrink: 0;
    width: 5rem;
    height: 5rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 2rem;
    margin-right: 2rem;
    z-index: 1;
}

.step-content {
    padding-top: 0.5rem;
}

.step-content h3 {
    margin-bottom: 1rem;
}

.why-choose-us.about-page {
    background-color: var(--white-color);
}

.choose-us-content {
    max-width: 80rem;
    margin: 0 auto;
}

.choose-us-list {
    list-style: none;
    padding-left: 0;
}

.choose-us-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: var(--light-color);
    border-radius: 0.8rem;
}

.choose-us-list li i {
    color: var(--primary-color);
    margin-right: 1.5rem;
    font-size: 2rem;
    margin-top: 0.2rem;
}

/* ===== Contact Page Styles ===== */
.contact-info {
    padding: 5rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.info-card {
    background-color: var(--white-color);
    border-radius: 0.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 3rem 2rem;
    text-align: center;
}

.info-icon {
    width: 7rem;
    height: 7rem;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.info-icon i {
    font-size: 3rem;
    color: var(--primary-color);
}

.info-card h3 {
    margin-bottom: 1rem;
}

.contact-form-section {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
}

.form-container {
    background-color: var(--white-color);
    border-radius: 0.8rem;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form .form-group {
    margin-bottom: 2rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: 0.4rem;
    font-family: var(--body-font);
    font-size: 1.6rem;
}

.contact-form textarea {
    resize: vertical;
}

.form-submit {
    margin-top: 3rem;
}

.map-container {
    background-color: var(--white-color);
    border-radius: 0.8rem;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-areas-list {
    list-style: none;
    padding-left: 0;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.service-areas-list li {
    display: flex;
    align-items: center;
}

.service-areas-list li i {
    color: var(--primary-color);
    margin-right: 1rem;
}

.faq-section {
    padding: 5rem 0;
}

.faq-container {
    max-width: 80rem;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    border: 1px solid #ddd;
    border-radius: 0.8rem;
    overflow: hidden;
}

.faq-question {
    padding: 2rem;
    background-color: var(--white-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.8rem;
}

.faq-toggle {
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 2rem;
    max-height: 1000px;
}

.faq-item.active .faq-toggle i {
    transform: rotate(45deg);
}

/* Image placeholders for development */
.image-placeholder {
    background-color: var(--light-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    height: 100%;
    width: 100%;
}

.image-placeholder i {
    font-size: 5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.image-placeholder p {
    font-weight: 600;
    margin-bottom: 0;
}
