/* Materials Page Styles */

/* Container Migration Notice:
 * All container styles have been migrated to use .main-container from base.css
 * This provides consistent spacing and responsive behavior across all pages.
 * Container settings: max-width: 1328px, padding: 64px (desktop), 30px (tablet), 20px (mobile)
 */

/* Hero Section */
.materials-hero-section {
    position: relative;
    min-height: 600px;
    height: 70vh; /* Use viewport height for better scaling */
    max-height: 700px;
    background-image: url('/images/materials/materials.webp');
    background-size: cover;
    background-position: center 40%; /* Adjust vertical position to show more of the image */
    background-attachment: scroll;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Hero container styles moved to main-container in base.css */
.materials-hero-section .main-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    width: 100%;
    max-width: 100%;
}

.hero-title {
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-subtitle {
    color: var(--text-light);
    margin-bottom: 40px;
    opacity: 0.9;
}


/* Materials Grid Section */
.materials-grid-section {
    padding: 160px 0;
}

/* Responsive padding for materials grid section */
@media (min-width: 768px) and (max-width: 1279px) {
    .materials-grid-section {
        padding: 100px 0;
    }
}

@media (max-width: 767px) {
    .materials-grid-section {
        padding: 80px 0;
    }

    .materials-subtitle {
        margin-bottom: 24px!important;
    }

    .material-name {
        font-size: 16px!important;
    }

    .hide-mobile {
        display: none;
    }
    .promise-subtitle {
        margin-bottom: 24px!important;
    }
}

/* Materials container styles moved to main-container in base.css */

.materials-title {
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.materials-subtitle {
    text-align: center;
    margin-bottom: 40px;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.three-grid {
    grid-template-columns: repeat(3, 1fr)!important;
}

@media (max-width: 1199px) {
    .materials-grid {
        grid-template-columns: repeat(3, 1fr)!important;
    }
}

@media (max-width: 767px) {
    .materials-grid {
        grid-template-columns: 1fr!important;
    }
}

.material-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #000000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.material-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 24px;
}

.material-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.material-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.material-name {
    padding: 0 20px 12px;
    color: var(--text-dark);
    text-align: center;
    font-weight: 600!important;
}

.material-description {
    padding: 0 20px 20px;
    color: var(--text-gray);
    line-height: 1.6;
    flex: 1;
    text-align: center;
}

.material-footer {
    padding: 0 20px 20px;
    margin-top: auto;
}

.btn-check-prices {
    display: block;
    width: 100%;
    height: 44px;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    line-height: 44px;
    padding: 0;
}

.btn-check-prices:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Onsite Mixed Concrete Service Section */
.concrete-service-section {
    padding: 100px 0;
    background-color: var(--bg-gray);
}

/* Responsive padding for concrete service section */
@media (min-width: 768px) and (max-width: 1279px) {
    .concrete-service-section {
        padding: 100px 0;
    }
}

@media (max-width: 767px) {
    .concrete-service-section {
        padding: 80px 0;
    }
}

/* Concrete service container styles moved to main-container in base.css */

.concrete-service-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.concrete-service-subtitle {
    text-align: center;
    margin-bottom: 40px;
    max-width: 1030px;
    margin-left: auto;
    margin-right: auto;
}

.concrete-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.concrete-service-card {
    border-radius: 8px;
    padding: 30px;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.concrete-card-title {
    margin-bottom: 24px;
    color: var(--text-dark);
    font-weight: 600;
    text-align: center;
}

.concrete-feature-list,
.concrete-charge-list,
.concrete-note-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.concrete-feature-list li,
.concrete-charge-list li,
.concrete-note-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 4px;
    line-height: 1.6;
}

.concrete-feature-list li:before,
.concrete-charge-list li:before {
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 18px;
}

.concrete-feature-list li:before,
.concrete-charge-list li:before,
.concrete-note-list li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--text-gray);
    font-weight: bold;
    font-size: 18px;
}

.concrete-note-list li strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Promise Section */
.promise-section {
    padding: 80px 0;
    background-color: #111111;
}

/* Responsive padding for promise section - using half values for consecutive sections */
@media (min-width: 768px) and (max-width: 1279px) {

    .one-delivery-section {
        padding: 60px 0!important;
    }
}

@media (max-width: 767px) {
    .promise-section {
        padding: 40px 0;
    }
    .concrete-service-grid {
        grid-template-columns: repeat(1, 1fr)!important;
    }
}

/* Promise container styles moved to main-container in base.css */

.promise-title {
    text-align: center;
    margin-bottom: 16px;
    color: #ffffff;
}

.promise-subtitle {
    text-align: center;
    margin-bottom: 60px;
    color: rgba(255, 255, 255, 0.7);
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.promise-card {
    text-align: left;
    padding: 40px 30px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.promise-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.promise-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 24px;
}

.promise-icon .material-icons,
.promise-icon .material-icons-outlined,
.promise-icon .material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-size: 32px;
    color: #111111;
    font-weight: 100;
    font-variation-settings: 
        'FILL' 0,
        'wght' 100,
        'GRAD' 0,
        'opsz' 32;
}

.promise-card-title {
    margin-bottom: 8px;
    color: #ffffff;
    text-align: left;
}

.promise-card-text {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    text-align: left;
}

.promise-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
}

.promise-cta {
    text-align: center;
    margin-top: 60px;
}

.btn-primary-green {
    display: inline-block;
    padding: 10px 32px;
    background-color: var(--primary-green);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-primary-green:hover {
    background-color: #00994f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.3);
}

/* Reviews Section */
/* The reviews section uses the global styles from /css/components/reviews.css */

/* Everything You Need, One Delivery Section */
.one-delivery-section {
    padding: 80px 0;
    background-color: var(--bg-gray);
    text-align: center;
}

/* One delivery container styles moved to main-container in base.css */
/* Use main-container with container-md modifier for narrower width */

.one-delivery-title {
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    text-align: center;
}

.one-delivery-description {
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.one-delivery-cta {
    display: flex;
    justify-content: center;
}

.one-delivery-cta .btn-primary {
    background-color: var(--primary-green);
    color: white;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.one-delivery-cta .btn-primary:hover {
    background-color: var(--primary-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 89, 0.3);
}

/* Responsive Design */
@media (max-width: 959px) {
    .materials-hero-section {
        min-height: 450px;
        height: 60vh;
        max-height: 600px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .concrete-service-grid {
        grid-template-columns: repeat(2, 1fr);;
        gap: 20px;
    }
    
    .concrete-service-section {
        padding: 60px 0;
    }
    
    .one-delivery-section {
        padding: 60px 0;
    }
    
    .promise-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 599px) {
    .materials-hero-section {
        min-height: 400px;
        height: 50vh;
        max-height: 500px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .concrete-service-section {
        padding: 80px 0;
    }
    
    .concrete-service-subtitle {
        margin-bottom: 40px;
    }
    
    .concrete-service-card {
        padding: 20px;
    }
    
    .concrete-card-title {
        font-size: 20px;
    }
    
    .one-delivery-section {
        padding: 80px 0;
    }
    
    .one-delivery-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .one-delivery-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .one-delivery-cta .btn-primary {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .promise-grid {
        grid-template-columns: 1fr;
    }
    
    .promise-card {
        padding: 30px 20px;
    }
}