/* ===========================
   GLOBAL RESET
=========================== */
* {
    box-sizing: border-box; /* prevents overflow from padding/margin */
}

/* ===========================
   BODY AND PAGE LAYOUT
=========================== */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #111;
    color: white;
    overflow-x: hidden; /* prevents horizontal scroll */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 100px; /* space for fixed header */
}

/* ===========================
   MAIN CONTENT
=========================== */
main {
    flex: 1 0 auto;
    padding: 20px;
}

/* ===========================
   INFO BOXES (FULL WIDTH)
=========================== */
.info-boxes {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap; /* allow wrap on smaller screens */
    margin-top: 60px;
    padding: 0 40px;
}

.box {
    padding: 30px 25px;
    border-radius: 14px;
    flex: 1 1 30%; /* responsive width */
    min-height: 220px;
    text-align: center;
    box-shadow: 
        0 0 15px rgba(255, 255, 255, 0.05),
        0 8px 20px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
}

/* COLOR SCHEME FOR BOXES */
.info-boxes .box:nth-child(1),
.info-boxes .box:nth-child(3) {
    background-color: #2a2a2a;
    color: #ddd;
}

.info-boxes .box:nth-child(2) {
    background-color: #444;
    color: #fff;
    transform: scale(1.03);
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.12),
        0 12px 30px rgba(0, 0, 0, 0.6);
}

/* ICONS */
.box img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin-bottom: 20px;
    opacity: 0.9;
    max-width: 100%; /* prevent overflow on mobile */
}

/* TITLE */
.box h2 {
    margin-top: 0;
    font-size: 20px;
    color: #c9a14c;
}

/* MIDDLE BOX TEXT COLOR */
.box:nth-child(2) h2 {
    color: #b8963a;
}

.box p {
    color: #ddd;
    font-size: 15px;
    line-height: 1.5;
}

/* HOVER EFFECT */
.box:hover {
    background-color: #333;
    transform: translateY(-10px);
}

/* BOX LINK / BUTTON AT BOTTOM */
.box-link {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    border: 1px solid #c9a14c;
    border-radius: 4px;
    text-decoration: none;
    color: #c9a14c;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.box-link:hover {
    background-color: #c9a14c;
    color: #111;
}

/* ===========================
   GREY BOX PLACEHOLDERS FOR MEDIA
=========================== */
.box-image-placeholder {
    width: 100%;
    height: 40vh; /* 40% of viewport height, scales with screen */
    max-height: 500px; /* optional: prevent it from being too tall on large screens */
    background-color: #444;
    border-radius: 12px;
    margin-bottom: 20px; /* spacing between box and content */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ===========================
   RESPONSIVE STYLING
=========================== */
@media (max-width: 900px) {
    .info-boxes {
        flex-wrap: wrap;
    }

    .box {
        flex: 1 1 45%; /* two per row */
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .info-boxes {
        padding: 0 20px;
    }

    .box {
        flex: 1 1 100%; /* full width on small screens */
    }

    .box-image-placeholder {
        height: 30vh;
        margin-bottom: 15px;
    }
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

p, a, li {
    font-weight: 400;
}

/* HERO BANNER */
.hero-banner {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* subtle overlay for pro look */
.hero-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

/* INFO BOXES */
.info-boxes {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 40px;
}

.box {
    flex: 1;
    background: #111;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}

.box:hover {
    transform: translateY(-5px);
}

.box-icon {
    width: 40px;
    margin-bottom: 10px;
}

.box h2 {
    margin-bottom: 10px;
}

.box-link {
    display: inline-block;
    margin-top: 15px;
    color: #fff;
    text-decoration: underline;
}

/* MOBILE */

/* Regular phones (up to 768px) */
@media (max-width: 768px) {
    .hero-banner {
        height: 250px;
    }

    .info-boxes {
        flex-direction: column;
    }
}