/*
 * New Rajeswarie Group of Companies
 * Custom Stylesheet - Bootstrap 5
 * Color Scheme based on original website
 */

:root {
    /* Primary Colors - Updated to match home.png */
    --primary-navy: #1a3a5c;
    --primary-burgundy: #8B1538;
    --primary-white: #ffffff;
    --primary-black: #000000;
    --text-gray: #666666;
    --text-light: #f0f0f0;
    --border-light: #e0e0e0;

    /* Accent Colors */
    --accent-red: #cf2e2e;
    --accent-orange: #ff6900;
    --accent-cyan: #0693e3;

    /* Background Colors */
    --bg-light: #f8f9fa;
    --bg-dark: #1a3a5c;
    --bg-footer: #1a1a1a;
}

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-black);
    line-height: 1.6;
}

/* Header Styles */
.top-bar {
    background-color: var(--primary-navy);
    color: var(--primary-white);
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-bar i {
    color: var(--primary-white);
    margin-right: 5px;
}

.top-bar a {
    color: var(--primary-white);
    text-decoration: none;
}

.main-header {
    background-color: var(--primary-white);
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 60px;
}

.navbar-nav .nav-link {
    color: var(--primary-black);
    font-weight: 400;
    padding: 8px 20px;
    transition: color 0.3s ease;
}

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

/* Button Styles */
.btn-primary {
    background-color: var(--primary-navy);
    border-color: var(--primary-navy);
    color: var(--primary-white);
    padding: 10px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #142d47;
    border-color: #142d47;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-navy {
    background-color: var(--primary-navy);
    border-color: var(--primary-navy);
    color: var(--primary-white);
    padding: 8px 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-navy:hover {
    background-color: #142d47;
    color: var(--primary-white);
}

/* Hero Section - Home Page Style */
.hero-section {
    background: url('../images/slide_1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 0;
    min-height: 400px;
}

.hero-section.with-map {
    background-image: url('../images/slide_1.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.hero-welcome {
    text-align: left;
    max-width: 600px;
}

.hero-logo {
    width: 100px;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--primary-burgundy);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-section h1 .welcome-text {
    font-size: 0.9rem;
    display: block;
    color: var(--primary-burgundy);
    font-weight: 600;
}

.hero-section h1 .company-name {
    font-size: 2.2rem;
    font-weight: 700;
    display: block;
    margin-top: 5px;
}

.hero-section p {
    font-size: 1rem;
    margin-bottom: 25px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Section Styles */
.section-padding {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-navy);
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 50px;
}

/* Business Units Grid */
.business-units {
    background-color: #f5f5f5;
    padding: 60px 0;
}

.business-card {
    background-color: var(--primary-navy);
    color: var(--primary-white);
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.business-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-white);
}

.business-card p {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255,255,255,0.8);
}

/* Managing Director Section */
.director-section {
    padding: 60px 0;
    background-color: var(--primary-white);
}

.director-photo {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.director-message h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 20px;
}

.director-name {
    color: var(--primary-burgundy);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.director-title {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.director-message p {
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 15px;
}

/* Latest News Section */
.latest-news {
    padding: 60px 0;
    background-color: #f5f5f5;
}

.latest-news h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 40px;
}

/* Card Styles */
.custom-card {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.custom-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.custom-card .card-body {
    padding: 25px;
}

.custom-card .card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

/* Team/Board Member Cards */
.team-member {
    text-align: center;
    margin-bottom: 30px;
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--border-light);
}

.team-member h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.team-member p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Menu/Product Grid */
.menu-item {
    margin-bottom: 30px;
}

.menu-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.menu-item img:hover {
    transform: scale(1.05);
}

/* Contact Page */
.contact-info-box {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    height: 100%;
    transition: background-color 0.3s ease;
}

.contact-info-box:hover {
    background-color: var(--primary-dark);
    color: var(--primary-white);
}

.contact-info-box:hover i {
    color: var(--primary-white);
}

.contact-info-box i {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.contact-info-box h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-form {
    background-color: var(--primary-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-form .form-control {
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    margin-bottom: 20px;
}

.contact-form .form-control:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 0.2rem rgba(50,55,60,0.25);
}

/* Google Maps */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer Styles */
.footer {
    background-color: #2d2d2d;
    padding: 40px 0 0;
    color: var(--text-light);
}

.footer h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-white);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer p,
.footer a {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer a:hover {
    color: var(--primary-white);
    text-decoration: none;
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
}

.social-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: #3b5998;
    color: var(--primary-white);
    border-radius: 5px;
    margin-right: 10px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-icons a:hover {
    background-color: #2d4373;
    transform: translateY(-3px);
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-menu li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-menu li a:hover {
    color: var(--primary-white);
}

.copyright {
    background-color: #1a1a1a;
    color: #888888;
    padding: 15px 0;
    margin-top: 0;
    text-align: center;
    font-size: 0.85rem;
}

.copyright a {
    color: #888888;
    text-decoration: none;
}

.copyright a:hover {
    color: var(--primary-white);
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .top-bar {
        text-align: center;
    }

    .top-bar .col-md-4 {
        margin-bottom: 10px;
    }
}

/* About Page Specific Styles */
.page-title-section {
    border-bottom: 1px solid var(--border-light);
}

.page-title-main {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin: 0;
}

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

.global-growth-section {
    background-color: var(--primary-navy);
    color: var(--primary-white);
}

.chennai-section {
    background-color: #f5f5f5;
}

/* Facilities Grid */
.facility-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 100%;
    min-height: 200px;
}

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

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

.facility-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
    text-align: center;
}

.facility-overlay h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Breeze Residency Card */
.breeze-residency-card {
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.breeze-content {
    text-align: center;
}

.breeze-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.breeze-content p {
    margin-bottom: 10px;
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-navy) !important;
}

.text-primary-burgundy {
    color: var(--primary-burgundy) !important;
}

.bg-primary-custom {
    background-color: var(--primary-navy) !important;
}

.bg-light-custom {
    background-color: var(--bg-light) !important;
}
