/* style.css */

/* Custom CSS variables for Irish flag theme */
:root {
    --irish-green: #169B62; /* Primary Green */
    --irish-white: #FFFFFF; /* White */
    --irish-orange: #FF8833; /* Accent Orange */
    --inter-font: 'Inter', sans-serif;
}

/* Base styles */
body {
    font-family: var(--inter-font);
    background-color: #f8f9fa; /* Light background for most pages */
    color: #343a40; /* Dark grey for text */
}

/* Navbar styles */
.navbar-custom {
    background-color: var(--irish-green);
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
.navbar-brand, .navbar-nav .nav-link {
    color: var(--irish-white) !important;
    font-weight: 600;
}
.navbar-nav .nav-link:hover {
    color: var(--irish-orange) !important;
}
.navbar-toggler-icon {
    filter: brightness(0) invert(1); /* Make icon white */
}

/* Button styles */
.btn-primary-irish {
    background-color: var(--irish-green);
    border-color: var(--irish-green);
    color: var(--irish-white);
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}
.btn-primary-irish:hover {
    background-color: #127a4d; /* Slightly darker green */
    border-color: #127a4d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-irish {
    border-color: var(--irish-orange);
    color: var(--irish-orange);
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}
.btn-outline-irish:hover {
    background-color: var(--irish-orange);
    color: var(--irish-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Section Heading styles */
.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--irish-green);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}
.section-heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--irish-orange);
    border-radius: 2px;
}

/* Card styles (used for categories, listings, values, reviews) */
.card-custom {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    background-color: var(--irish-white);
    padding: 30px; /* Default padding for custom cards */
    height: 100%; /* Ensure cards are same height in a row */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.card-custom .icon {
    font-size: 3rem;
    color: var(--irish-orange);
    margin-bottom: 20px;
}
.card-custom h5 {
    font-weight: 600;
    color: var(--irish-green);
    margin-bottom: 15px;
}
.card-custom p {
    font-size: 1rem;
    color: #6c757d;
}

/* Homepage specific styles */
.hero-section {
    background: linear-gradient(to right, var(--irish-green), var(--irish-white) 33%, var(--irish-white) 33%, var(--irish-orange) 66%, var(--irish-orange) 66%, var(--irish-green));
    padding: 80px 0;
    color: #343a40;
    text-align: center;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}
.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--irish-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: #dee2e6;
}
.search-bar-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--irish-white);
    padding: 15px;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
    display: flex;
    align-items: center;
}
.search-bar-container .form-control {
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}
.search-bar-container .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    margin-left: 10px;
}
.category-card {
    cursor: pointer;
}
.category-card:hover, .listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.listing-card {
    text-align: left;
    padding: 0; /* Override default card-custom padding for image */
}
.listing-card p {
    font-size: 0.95rem;
    color: #6c757d;
}
.listing-card .badge {
    background-color: var(--irish-green);
    color: var(--irish-white);
    padding: 0.5em 0.8em;
    border-radius: 0.5rem;
    font-size: 0.8em;
    font-weight: 500;
}

/* Business Listing Page specific styles */
.business-header {
    background-color: var(--irish-green);
    color: var(--irish-white);
    padding: 40px 0;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}
.business-header h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.business-header .lead {
    font-size: 1.25rem;
    color: #dee2e6;
}
.contact-info .list-group-item {
    border: none;
    padding-left: 0;
}
.contact-info .list-group-item i {
    color: var(--irish-orange);
    width: 25px;
    text-align: center;
}
.contact-info .list-group-item a {
    color: var(--irish-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.contact-info .list-group-item a:hover {
    color: var(--irish-orange);
}
.btn-contact {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.1rem;
    margin-bottom: 10px;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}
.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.gallery-img {
    border-radius: 0.75rem;
    object-fit: cover;
    height: 200px;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    transition: transform 0.3s ease;
}
.gallery-img:hover {
    transform: scale(1.02);
}
.map-container {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    height: 400px;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.review-card {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    margin-bottom: 20px;
}
.review-card .reviewer-name {
    font-weight: 600;
    color: var(--irish-green);
}
.review-card .rating {
    color: var(--irish-orange);
}
.review-card .review-date {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Under Construction Page specific styles */
.under-construction-body {
    background-color: var(--irish-green);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
    color: var(--irish-white); /* Ensure text is white on green background */
}
.container-custom-uc { /* Renamed to avoid conflict */
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 90%;
    color: #343a40;
}
.icon-large {
    font-size: 5rem;
    color: var(--irish-orange);
    margin-bottom: 25px;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}
.container-custom-uc h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--irish-green);
    margin-bottom: 20px;
}
.container-custom-uc p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    line-height: 1.6;
}
.btn-irish-home {
    background-color: var(--irish-orange);
    border-color: var(--irish-orange);
    color: var(--irish-white);
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}
.btn-irish-home:hover {
    background-color: #e67326; /* Slightly darker orange */
    border-color: #e67326;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}
.footer-text {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #6c757d;
}

/* About Us Page specific styles */
.hero-about {
    background: linear-gradient(to right, var(--irish-green), var(--irish-white) 33%, var(--irish-white) 33%, var(--irish-orange) 66%, var(--irish-orange) 66%, var(--irish-green));
    padding: 80px 0;
    color: #343a40;
    text-align: center;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
}
.hero-about h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--irish-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero-about p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: #dee2e6;
}
.team-member-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    background-color: var(--irish-white);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.team-member-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--irish-orange);
    margin-bottom: 15px;
}
.team-member-card h5 {
    font-weight: 600;
    color: var(--irish-green);
    margin-bottom: 5px;
}
.team-member-card .title {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 15px;
}
.team-member-card .social-icons a {
    font-size: 1.2rem;
    color: var(--irish-green);
    margin: 0 8px;
    transition: color 0.3s ease;
}
.team-member-card .social-icons a:hover {
    color: var(--irish-orange);
}

/* Footer styles (common to all pages) */
.footer-custom {
    background-color: var(--irish-green);
    color: var(--irish-white);
    padding: 40px 0;
    margin-top: 60px;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    box-shadow: 0 -2px 4px rgba(0,0,0,.1);
}
.footer-custom a {
    color: var(--irish-white);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-custom a:hover {
    color: var(--irish-orange);
}
.footer-custom .social-icons a {
    font-size: 1.5rem;
    margin: 0 10px;
    color: var(--irish-white);
    transition: color 0.3s ease;
}
.footer-custom .social-icons a:hover {
    color: var(--irish-orange);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1, .hero-about h1 {
        font-size: 2.5rem;
    }
    .hero-section p, .hero-about p {
        font-size: 1rem;
    }
    .search-bar-container {
        flex-direction: column;
    }
    .search-bar-container .btn {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }
    .section-heading {
        font-size: 2rem;
    }
    .business-header h1 {
        font-size: 2.2rem;
    }
    .business-header .lead {
        font-size: 1rem;
    }
    .map-container {
        height: 300px;
    }
    .container-custom-uc h1 {
        font-size: 2.5rem;
    }
    .container-custom-uc p {
        font-size: 1rem;
    }
    .btn-irish-home {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
    .icon-large {
        font-size: 4rem;
    }
}
