/* --- Global Styles and Variables --- */
:root {
    --primary-yellow: #ffc107; /* The bright Send Message button/logo accent color */
    --text-dark: #333333;
    --text-grey: #666666;
    --bg-light-grey: #f0f0f0; /* Color for inputs and footer background */
    --form-input-bg: #e9e9e9; /* Slightly darker than the footer, as per image */
    --footer-bg: #e0e0e0;
    --font-family: 'Poppins', sans-serif; /* Using Roboto as a general clean sans-serif */
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.5;
    color: var(--text-dark);
    
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* --- 1. Header/Navigation Bar --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10%;
    /* The header border is slightly thicker than typical */
    border-bottom: 2px solid #333333; 
    max-width: 90%;
    margin: 0 auto;
}

.logo-container .logo {
    width: 150px; /* Adjust size to match the image */
    height: auto;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    padding: 5px 0;
}

.main-nav a.active {
    color: var(--text-dark);
    font-weight: 700;
}

/* --- Main Contact Section --- */
.contact-section-wrapper {
    display: flex;
    padding: 60px 10%;
    gap: 100px; /* Space between the two main columns */
}

/* Left Side: Contact Info */
.contact-info {
    flex: 1;
    max-width: 450px; 
}

.contact-info h1 {
    font-size: 2.5rem;
    font-weight: 800; /* Extra bold */
    margin-bottom: 40px;
    color: var(--text-dark);
}

.info-group {
    margin-bottom: 25px;
}

.info-group .label {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--text-grey);
    margin-bottom: 3px;
}

.info-group .detail {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-dark);
}

.info-group .address {
    line-height: 1.4;
    font-weight: normal;
}

.follow-us {
    margin-top: 30px;
}

.follow-us .label {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 10px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    background-color: black;
    color: white;
    border-radius: 10px; /* Square/rounded corners as in image */
    margin-right: 10px;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
}

/* Right Side: Contact Form */
.contact-form-section {
    flex: 2; /* Allows form section to take up more horizontal space */
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.form-row-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    flex: 1; /* Makes name and email fields take equal width */
}

.contact-form label {
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: none;
    background-color: var(--form-input-bg);
    font-size: 1rem;
    border-radius: 10px; /* No border radius */
    outline: none;
    width: 100%;
}

.contact-form textarea {
    min-height: 200px; /* Matches the height in the image */
    resize: none; /* Disallow resizing */
    font-family: var(--font-family);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-grey);
    font-weight: 300;
}

.message-field {
    flex-basis: 100%; /* Forces message field to take full width */
    margin-bottom: 30px; /* Space above the button */
}

.send-message-btn {
    align-self: flex-end; /* Pushes the button to the bottom right */
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    font-weight: bold;
    padding: 15px 35px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.send-message-btn:hover {
    background-color: #ffd64f; 
}

/* --- 4. Footer Styling --- */
.main-footer {
    background-color: var(--bg-light-grey);
    padding: 50px 10% 0;
    color: var(--text-dark);
}

.footer-content-wrapper {
    display: grid;
    /* Define columns: Branding (2 parts), Online Platform (1 part), Links (1 part), Contacts (1.5 parts) */
    grid-template-columns: 2fr 1fr 1fr 1.5fr; 
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h3 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 25px;
    color: var(--text-dark);
}

/* Branding Column */
.footer-branding {
    padding-right: 20px;
}

.logo-container-footer .logo-footer {
    width: 150px;
    margin-bottom: 15px;
}

.footer-branding .description {
    font-size: 0.9rem;
    color: var(--text-grey);
    margin-bottom: 25px;
}

.footer-contact-details p {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--text-grey);
}

.footer-contact-details p strong {
    font-weight: bold;
    color: var(--text-dark);
}
.footer-contact-details a {
    color: var(--text-grey);
}


/* Link Columns */
.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-grey);
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

/* Contacts Column */
.footer-contacts .subscription-text {
    font-size: 0.9rem;
    color: var(--text-grey);
    margin-bottom: 15px;
}

.subscribe-form {
    display: flex;
    border: 1px solid var(--text-grey);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.subscribe-form input {
    flex-grow: 1;
    border: none;
    padding: 8px 10px;
    font-size: 0.9rem;
    background: white;
    color: var(--text-dark);
}

.subscribe-btn {
    /* The button is a simple, non-visible border in the image */
    display: none; 
} 

.footer-contacts .social-icons {
    display: flex;
}

.footer-contacts .social-icons a {
    /* Override main social icon style for footer */
    background-color: black;
    color: white;
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    border-radius: 0; /* Square corners */
}

/* Copyright Bar */
.copyright-bar {
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
    color: var(--text-grey);
    border-top: 1px solid #c0c0c0;
}

.copyright-bar a {
    font-weight: 500;
    color: var(--text-dark);
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 1024px) {
    .contact-section-wrapper {
        gap: 50px;
    }
    
    .footer-content-wrapper {
        grid-template-columns: repeat(2, 1fr); 
        gap: 40px;
    }
    
    .footer-branding {
        grid-column: 1 / 3; 
    }
}

@media (max-width: 768px) {
    .contact-section-wrapper {
        flex-direction: column;
        padding: 40px 5%;
        gap: 30px;
    }
    
    .contact-info {
        max-width: 100%;
    }

    .form-row-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-form-section {
        padding-top: 0;
    }

    .send-message-btn {
        align-self: flex-start; /* Move button to the left on small screens */
    }

    .footer-content-wrapper {
        grid-template-columns: 1fr;
        padding: 30px 5% 40px;
    }
    
    .footer-branding {
        grid-column: 1 / 2; 
    }
    
    .main-header {
        padding: 10px 5%;
    }
    
    .main-nav ul {
        gap: 15px;
    }
}

/* --- 1. Header/Navigation Bar Updates --- */

.main-nav a {
    /* Keep existing styles, add transition for smooth changes */
    transition: color 0.3s, border-bottom 0.3s;
}

.main-nav a:not(.active):hover {
    color: var(--primary-yellow); /* Change color on hover */
    /* Add a subtle underline effect */
    border-bottom: 2px solid var(--primary-yellow); 
}

.main-nav a.active {
    /* Ensure the active link stays colored and underlined */
    color: var(--primary-yellow); 
    border-bottom: 2px solid var(--primary-yellow);
    font-weight: 700;
}

/* Ensure the logo container has an easy transition if it's a clickable link */
.logo-container a {
    transition: opacity 0.3s;
}

.logo-container a:hover {
    opacity: 0.8;
}

/* --- Contact Social Icons Update --- */

.social-icons a {
    /* Keep existing styles */
    transition: background-color 0.3s, transform 0.2s; /* Add transform transition */
}

.social-icons a:hover {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    transform: scale(1.1); /* Scale up slightly on hover */
}


/* --- Footer Links Update --- */

.footer-links a {
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer-contacts .social-icons a {
    transition: background-color 0.3s, transform 0.2s;
}

.footer-contacts .social-icons a:hover {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    transform: scale(1.1);
}


/* --- Contact Form Refinements --- */

.contact-form input,
.contact-form textarea {
    /* Add transition for box-shadow and background for smooth JS focus/hover effect */
    transition: background-color 0.3s, box-shadow 0.2s; 
}

.contact-form input:hover,
.contact-form textarea:hover {
    background-color: #f7f7f7; /* Slightly whiter on hover to indicate interactability */
}


/* --- Send Message Button Update --- */

.send-message-btn {
    /* Keep existing styles */
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s; /* Ensure all states transition smoothly */
}

.send-message-btn:hover {
    background-color: #ffd64f; /* Lighter yellow on hover */
    transform: scale(1.01); /* A tiny scale increase on hover (less than mousedown) */
}

