/* 
  Pro Rapid Building Group - Main Stylesheet 
*/

:root {
    --primary: #d62828;
    --secondary: #111111;
    --white: #ffffff;
    --text: #d6d6d6;
    --light: #f5f5f5;
    
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--secondary);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Typography Utility */
.text-primary { color: var(--primary) !important; }
.text-white { color: var(--white) !important; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* Containers */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 1rem;
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: #b02020;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover, .btn-outline:focus {
    background-color: var(--white);
    color: var(--secondary);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-outline-dark:hover, .btn-outline-dark:focus {
    background-color: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #000000;
    transition: var(--transition);
}

.header.scrolled {
    background-color: var(--secondary);
    padding: 5px 0;
}

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

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

.logo-img {
    max-height: 100px;
    width: auto;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: 2px;
}

.logo-subtitle {
    font-family: var(--font-body);
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(17,17,17,0.9) 0%, rgba(17,17,17,0.5) 50%, rgba(17,17,17,0) 100%);
}

.hero-content {
    max-width: 650px;
    padding-top: 80px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 6rem;
    line-height: 0.9;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-text {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* --- Features Row --- */
.features-row {
    background-color: var(--secondary);
    padding: 60px 0;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.feature-item {
    text-align: center;
    color: var(--text);
}

.feature-icon {
    color: var(--white);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.feature-icon svg {
    transition: var(--transition);
}

.feature-item:hover .feature-icon svg {
    color: var(--primary);
    transform: scale(1.1);
}

.feature-title {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.25rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* --- Generic Section Styles --- */
.section-subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 0.9;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: var(--secondary);
}

/* --- About Section --- */
.about {
    padding: 100px 0;
    background-color: var(--light);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    margin-bottom: 40px;
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--secondary);
    color: var(--white);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.badge-number {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 4rem;
    line-height: 1;
}

.badge-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* --- Difficult Blocks Section --- */
.hard-blocks {
    background-color: #0a0a0a;
    padding: 100px 0;
    position: relative;
    /* Adding subtle noise/texture if possible, using a linear gradient for now */
    background-image: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
}

.hard-blocks-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: center;
}

.hard-blocks-content p {
    color: var(--text);
    opacity: 0.8;
}

.hard-blocks-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.block-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

.card-content {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    color: var(--secondary);
    transition: var(--transition);
}

.card-title {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.5rem;
    letter-spacing: 1px;
}

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

.block-card:hover .card-icon {
    background-color: var(--primary);
    color: var(--white);
}

/* --- Premium Inclusions Section --- */
.inclusions {
    padding: 100px 0;
    background-color: var(--white);
}

.inclusions-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.inclusions-image-wrapper {
    position: relative;
    padding-left: 20px;
    padding-bottom: 20px;
}

.inclusions-image-wrapper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    border: 2px solid rgba(214, 40, 40, 0.2);
    z-index: 1;
}

.inclusions-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.inclusions-intro {
    color: #555;
    margin-bottom: 40px;
}

.inclusions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.inclusion-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.inc-icon {
    flex-shrink: 0;
    margin-top: 5px;
}

.inc-text h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--secondary);
}

.inc-text p {
    font-size: 0.9rem;
    color: #777;
}

/* --- Our Work Section --- */
.our-work {
    background-color: var(--secondary);
    padding: 100px 0;
}

.work-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.work-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.work-img {
    height: 300px;
    overflow: hidden;
    position: relative;
}

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

.work-img:hover img {
    transform: scale(1.1);
}

/* --- Stats Section --- */
.stats {
    background-color: var(--white);
    padding: 60px 0;
    border-bottom: 1px solid #eaeaea;
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    flex-shrink: 0;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--secondary);
    letter-spacing: 1px;
}

.stat-text p {
    font-size: 0.8rem;
    color: #777;
}

/* --- Footer --- */
.footer {
    background-color: #0d0d0d;
    padding: 80px 0 0 0;
    color: var(--text);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 0.9rem;
    margin-bottom: 25px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: var(--white);
}

.social-links a:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.footer-title {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.25rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-contact li svg {
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
}

.footer-legal a {
    color: #888;
}

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

.footer-legal .sep {
    margin: 0 10px;
}

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

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* --- Lightbox Styles --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}
