/* style.css - Advance CSS for Riyo Advertising Website */

/* --- CSS Variables and Global Styles --- */
:root {
    --primary-color: #E63946; /* Bright Red/Coral - Attention Grabbing */
    --secondary-color: #1D3557; /* Deep Navy Blue - Professional & Trustworthy */
    --accent-color: #457B9D; /* Sky Blue - Modern Touch */
    --light-color: #F1FAEE; /* Off-White/Cream */
    --dark-color: #1A1A1A;
    --text-color: #333333;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --max-width: 1300px;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&family=Roboto:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--light-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 30px;
}

h1, h2, h3 {
    font-family: var(--font-primary);
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 700;
}

p {
    margin-bottom: 20px;
    text-align: justify;
}

/* --- ADVANCED HEADER SECTION (Dynamic & Sleek) --- */
.main-header {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-size: 2.2em;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: var(--light-color);
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin-left: 35px;
}

.navbar ul li a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 0;
    transition: color 0.3s ease, background-color 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Underline effect for nav links */
.navbar ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    display: block;
    margin-top: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    transition: width 0.4s ease;
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
    width: 100%;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: var(--primary-color);
}

/* --- Main Content Section --- */
main {
    flex: 1; 
    padding: 60px 0;
}

.hero {
    background: url('https://via.placeholder.com/1300x600/1D3557/ffffff?text=Riyo+Advertising+Creative+Solutions') no-repeat center center/cover;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--light-color);
    position: relative;
    margin-bottom: 50px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); 
}

.hero-text {
    z-index: 1;
    max-width: 600px;
    padding: 0 30px;
    animation: slideInLeft 1.2s ease-out;
}

.hero h1 {
    font-size: 4em;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.1;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.4em;
    color: var(--light-color);
    margin-bottom: 30px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
    background-color: #cf2a37;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 15px rgba(230, 57, 70, 0.6);
}

/* Section Styling */
.section {
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.section:last-child {
    border-bottom: none;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

/* Image Placeholder Styling */
.img-placeholder {
    width: 100%;
    height: 350px;
    background-color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    font-family: var(--font-primary);
    font-size: 1.5em;
    font-weight: 600;
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.highlight-text {
    color: var(--primary-color);
    font-weight: 700;
}

/* --- ADVANCED FOOTER SECTION --- */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 50px 0 20px 0;
    margin-top: auto; 
    border-top: 8px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 30px;
}

.footer-col h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.4em;
    text-transform: uppercase;
}

.footer-col p, .footer-col ul {
    font-size: 0.95em;
    color: #c0c0c0;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #c0c0c0;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-col ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #3d587c;
    font-size: 0.85em;
    color: #889aad;
}

/* Policy and Contact specific styles */
.page-header {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 60px 0;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    color: var(--light-color);
    font-size: 3.2em;
    text-align: center;
}

.policy-content, .contact-details {
    background: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.05);
}

.policy-content h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-top: 30px;
}

.consent-box {
    background-color: #fcebeb;
    color: var(--primary-color);
    padding: 25px;
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
    margin: 30px 0;
}

.consent-box a {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Contact Page Styling */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 50px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
}

.consent-checkbox {
    margin-top: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
}

.consent-checkbox input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 12px;
    min-width: 20px;
    min-height: 20px;
}

/* Disabled button style */
#submitBtn.disabled {
    background-color: #999999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.05em;
    line-height: 1.5;
}

.contact-info strong {
    min-width: 90px;
    display: inline-block;
    color: var(--primary-color);
}

.map-container {
    height: 350px;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    margin-top: 30px;
    overflow: hidden;
}

/* --- Responsive Design (Mobile View) --- */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 15px;
    }

    .navbar ul {
        flex-direction: column;
        align-items: center;
    }

    .navbar ul li {
        margin: 5px 0;
    }

    .hero {
        height: 450px;
        justify-content: center;
    }
    
    .hero-text {
        max-width: 90%;
        text-align: center;
    }

    .hero h1 {
        font-size: 3em;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}