/* --- VARIABLES & GLOBAL STYLES --- */
:root {
    --primary-red: #e69a0c;
    --cream-bg: #F8F5F0;
    --charcoal-text: #2E2E2E;
    --gray-border: #D9D9D9;
    --font-heading: 'Patua One', serif;
    --font-body: 'Lato', sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--charcoal-text);
    background-color: var(--cream-bg);
    margin: 0;
    padding-top: 80px; /* Space for fixed header */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-red);
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; text-align: center; margin-bottom: 40px; }
a { color: var(--primary-red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- HEADER & NAVIGATION --- */
.main-header {
    background-color: #000;
    border-bottom: 2px solid var(--gray-border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}
.logo { height: 90px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.main-nav ul li { margin-left: 25px; }
.main-nav a { font-weight: 700; color: var(--charcoal-text); }
.main-nav a.active { color: var(--primary-red); }

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-red);
}
.btn-primary, .btn-nav { background-color: var(--primary-red); color: #000; }
.btn-primary:hover, .btn-nav:hover { background-color: #ffffff; border-color: #6d1515; color: #000; }
.btn-secondary { background-color: transparent; color: var(--charcoal-text); border-color: var(--charcoal-text); }
.btn-secondary:hover { background-color: var(--charcoal-text); color: #fff; }

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(46, 46, 46, 0.7), rgba(46, 46, 46, 0.7)), url('/assets/images/hero_back.png') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
}
.hero h1 { color: #fff; }
.hero .subtitle { font-size: 1.2rem; max-width: 600px; margin: 15px auto 30px; }

/* --- SECTIONS --- */
section { padding: 60px 0; }
.services-section { background-color: #fff; }
.why-us-section { background-color: var(--cream-bg); }
.cta-section { background-color: var(--charcoal-text); color: #fff; text-align: center; }
.cta-section h2 { color: #fff; }
.cta-section .btn { margin: 10px; }
.page-header { background-color: var(--primary-red); color: #fff; padding: 40px 0; margin-bottom: 40px; }
.page-header h1, .page-header p { color: #fff; text-align: center; margin: 0; }


/* --- GRIDS & CARDS --- */
.grid { display: grid; gap: 30px; }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.why-us-grid { grid-template-columns: repeat(3, 1fr); text-align: center; }
.card {
    background: #fff;
    padding: 30px;
    border: 1px solid var(--gray-border);
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* --- CONTACT FORM --- */
.content-grid { grid-template-columns: 2fr 1fr; gap: 50px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 700; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray-border);
    border-radius: 5px;
    font-family: var(--font-body);
}
.contact-details { background-color: #fff; padding: 20px; border: 1px solid var(--gray-border); }
.contact-details h3 { margin-top: 0; }

/* --- FOOTER --- */
.main-footer {
    background-color: var(--charcoal-text);
    color: #fff;
    padding: 50px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--gray-border); }
.footer-col a:hover { color: #fff; }
.footer-logo { max-width: 150px; margin-bottom: 15px; }
.footer-bottom { text-align: center; border-top: 1px solid #444; padding-top: 20px; font-size: 0.9rem; }

.services-section .card {
    position: relative; /* Essential for positioning the ::before pseudo-element */
    overflow: hidden; /* Hides any part of the image that overflows the div */
    color: #fff; /* Changes text color for better contrast against the background */
    z-index: 1; /* Ensures text is on top of the pseudo-element */
}

.services-section .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1; /* Puts the background behind the content */
    opacity: 0.75; /* Sets the opacity of the image */
}

/* Specific background images for each card */
.services-section .card:nth-child(1)::before {
    background-image: url('https://placehold.co/600x400/0000FF/FFFFFF/text=Digital+Printing');
}

.services-section .card:nth-child(2)::before {
    background-image: url('https://placehold.co/600x400/FF0000/FFFFFF/text=Offset+Printing');
}

.services-section .card:nth-child(3)::before {
    background-image: url('https://placehold.co/600x400/00FF00/FFFFFF/text=Large+Format');
}

.services-section .card:nth-child(4)::before {
    background-image: url('https://placehold.co/600x400/FFD700/FFFFFF/text=Graphic+Design');
}

.services-section .card:nth-child(5)::before {
    background-image: url('https://placehold.co/600x400/8A2BE2/FFFFFF/text=Social+Presence');
}

.services-section .card:nth-child(6)::before {
    background-image: url('https://placehold.co/600x400/FF4500/FFFFFF/text=Promotional+Items');
}

.services-section .card h3,
.services-section .card p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adds a subtle shadow for text readability */
}