/* Pantmawr Cheeses Styles
   Main stylesheet for the Pantmawr Cheeses website
*/

/* Variables */
:root {
    /* Updated color scheme from pantmawrcheeses.co.uk */
    --primary-color: #5B3A29; /* Darker Brown */
    --secondary-color: #7D9F35; /* Olive Green */
    --accent-color: #F8F4E3; /* Cream */
    --text-color: #333;
    --light-color: #F8F8F8;
    --dark-color: #222;
    --footer-color: #2A2A2A;

    /* Brand requirements: Pantone 364C (green) background and Pantone 7499M (cream) font */
    --brand-green: #3A5E2A; /* Approx. Pantone 364C */
    --brand-cream: #F1E6B2; /* Approx. Pantone 7499M */
}

/* Base Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--light-color);
}

/* Header Styles */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}



.navbar-brand img {
    max-height: 60px;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Hero background images */
.hero-home {
    background-image: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?q=80&w=1400&auto=format&fit=crop');
}

.hero-products {
    background-image: url('https://images.unsplash.com/photo-1542838132-92c53300491e?q=80&w=1400&auto=format&fit=crop');
}

.hero-about {
    background-image: url('https://images.unsplash.com/photo-1549395156-c05f7688e656?q=80&w=1400&auto=format&fit=crop');
}

.hero-contact {
    background-image: url('https://images.unsplash.com/photo-1533750516457-a7f992034fec?q=80&w=1400&auto=format&fit=crop');
}

/* Section Styles */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.section-title.text-start::after {
    margin-left: 0;
}

.section-padding-sm {
    padding: 30px 0 0;
}

.section-bg-accent {
    background-color: var(--accent-color);
}

.section-bg-primary {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.section-404 {
    padding: 100px 0;
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-card img {
    height: 200px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-price {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #4a2f22; /* Darker version of primary color */
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border: none;
}

.btn-secondary:hover {
    background-color: #68832c; /* Darker version of secondary color */
}

.btn-white {
    background-color: white;
    color: var(--primary-color);
    border: none;
}

.btn-white:hover {
    background-color: #f0f0f0;
}

/* Icon Styles */
.icon-primary {
    color: var(--primary-color);
}

/* Footer Styles */
.site-footer {
    background-color: var(--footer-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links.mt-10 {
    margin-top: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: white;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.social-links a.bg-primary {
    background-color: var(--primary-color);
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
}

/* 404 Page Styles */
.error-404 {
    font-size: 6rem;
    color: var(--primary-color);
}

/* Map Styles */
.map-iframe {
    border: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    section {
        padding: 40px 0;
    }
}

/* Custom overrides for Pantmawr site */

/* Ensure navbar brand logo displays nicely */
.navbar .site-logo {
  height: 48px;
  width: auto;
  display: block;
}
@media (max-width: 576px) {
  .navbar .site-logo { height: 40px; }
}

/* Keep space between logo and text */
.navbar-brand .site-logo { margin-right: .5rem; }
