/* styles.css - Consolidated CSS for European Springers Website */

/* ===== CSS VARIABLES & RESET ===== */
:root {
    --color-primary: #987284;    /* Muted plum */
    --color-secondary: #6E493A;  /* Rich brown */
    --color-light: #E1D4C1;      /* Warm cream */
    --color-extra-light: #F4E1D2; /* Light peach */
    --color-dark: #4A3C34;       /* Dark brown */
    --color-text: #5C4B37;       /* Text color */
    --page-bg: #FEF8F3;          /* Page background */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--page-bg);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== HEADER STYLES ===== */
header {
    background: linear-gradient(to right, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-extra-light);
    padding: 3.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23987284' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    font-weight: 700;
    color: var(--color-extra-light);
    line-height: 1;
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.sub-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--color-light);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--color-light);
    max-width: 700px;
    margin: 1.5rem auto 0;
    position: relative;
}

/* ===== NAVIGATION STYLES ===== */
nav {
    background-color: var(--color-light);
    padding: 1rem 0;
    position: relative;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

nav li {
    margin: 0 1.5rem;
    position: relative;
}

nav a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
    display: block;
}

nav a:hover {
    color: var(--color-primary);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* ===== DROPDOWN STYLES ===== */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--color-extra-light);
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
    top: 100%;
    left: 0;
    border: 1px solid var(--color-primary);
}

.dropdown-content li {
    margin: 0;
    width: 100%;
}

.dropdown-content li a {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--color-light);
    font-size: 1rem;
    color: var(--color-secondary);
    transition: all 0.3s;
}

.dropdown-content li a:hover {
    background-color: var(--color-primary);
    color: var(--color-extra-light);
}

.dropdown-content li a::after {
    display: none;
}

.dropdown-content li:last-child a {
    border-bottom: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ===== HAMBURGER MENU ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--color-light);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        margin: 0;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--color-primary);
    }

    nav a {
        padding: 1rem 1.5rem;
        display: block;
    }

    /* Mobile dropdown styles */
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: var(--color-extra-light);
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content li a {
        padding-left: 2.5rem;
        background-color: var(--color-extra-light);
    }

    /* Hide hover effects on mobile */
    .dropdown:hover .dropdown-content {
        display: none;
    }
}

@media (max-width: 480px) {
    nav a {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }
}

/* ===== PAGE HEADERS ===== */
.page-header {
    background-color: var(--color-extra-light);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--color-text);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    text-align: center;
    line-height: 1.6;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--color-text);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===== LAYOUTS ===== */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.text-content {
    padding-right: 1rem;
}

.text-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--color-secondary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.text-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ===== IMAGE STYLES - FIXED ===== */
.image-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    vertical-align: bottom; /* Fixes gap below image */
}

.image-container:hover img {
    transform: scale(1.03);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(254, 248, 243, 0.4);
    color: #000000; 
    padding: 1rem;
    font-size: 0.9rem;
    text-align: center;
    font-style:italic;
    font-weight: bold;
    margin: 0; /* Ensure no margin */
}

/* ===== SIMPLE SLIDER STYLES ===== */
.slider-container {
    position: relative;
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
}

.slider {
    position: relative;
}

.slide {
    display: none;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.photo-credit {
    text-align: left;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    padding-left: 0px;
    font-style: italic;
}

.image-description {
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
    color: var(--color-text);
}

/* Slider Button Styles */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    opacity: 0.3; /* Changed from 0.7 to 0.95 for almost opaque */
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-btn:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.7);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* ===== ACHIEVEMENTS & CARDS ===== */
.achievements {
    background-color: var(--color-extra-light);
    padding: 3rem;
    border-radius: 8px;
    margin: 3rem 0;
    box-shadow: 0 6px 15px rgba(110, 73, 58, 0.1);
}

.achievements h3 {
    text-align: center;
    color: var(--color-secondary);
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-item {
    background-color: var(--color-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.achievement-item h4 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

/* ===== GRID BLOCKS - FIXED ===== */
.grid-blocks-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.grid-block {
    background: var(--color-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(110, 73, 58, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--color-primary);
}

.grid-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(110, 73, 58, 0.15);
}

.grid-image {
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    position: relative;
    overflow: hidden;
    background-color: var(--color-primary);
}

.grid-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    vertical-align: bottom; /* Fix gap below image */
}

.grid-block:hover .grid-image img {
    transform: scale(1.05);
}

.grid-content {
    padding: 1.5rem;
}

.grid-content h2 {
    color: var(--color-secondary);
    margin-bottom: 0.8rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.grid-content h3 {
    color: var(--color-primary);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
}

.grid-content p {
    margin-bottom: 1rem;
    color: var(--color-text);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Remove bottom margin from last paragraph in grid content */
.grid-content p:last-child {
    margin-bottom: 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-extra-light);
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid var(--color-secondary);
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: transparent;
    color: var(--color-secondary);
}

.btn-container {
    text-align: center;
    margin-top: 2rem;
}

/* ===== CTA BANNERS ===== */
.cta-banner {
    display: block;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    color: white;
    text-align: center;
    padding: 1.2rem;
    margin: 2rem auto;
    max-width: 800px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cta-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.cta-banner2 {
    display: block;
    background: linear-gradient(to right, var(--color-secondary), var(--color-light));
    color: white;
    text-align: center;
    padding: 1.2rem;
    margin: 2rem auto;
    max-width: 400px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.cta-banner2:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* ===== DOG PROFILES ===== */
.dog-profile {
    padding: 3rem 0;
}

.dog-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.dog-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.dog-header p {
    font-size: 1.2rem;
    color: var(--color-text);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
}

.dog-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.detail-card {
    background: var(--color-light);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 6px 15px rgba(110, 73, 58, 0.1);
    border: 1px solid var(--color-primary);
}

.detail-card h2 {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.detail-item {
    margin-bottom: 1.2rem;
}

.detail-item strong {
    color: var(--color-secondary);
    font-weight: 600;
    display: inline-block;
    min-width: 150px;
}

.health-list {
    list-style-type: none;
    padding-left: 0;
}

.health-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.health-list li:before {
    content: "✓";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.breeder-info {
    background-color: var(--color-extra-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    border-left: 4px solid var(--color-primary);
}

.breeder-info p {
    margin-bottom: 0.5rem;
    font-style: italic;
}

.breeder-info strong {
    color: var(--color-secondary);
}

/* ===== PEDIGREE TABLE STYLES ===== */
.pedigree-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
}

.pedigree-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    margin: 0 auto;
}

.pedigree-table td {
    padding: 8px;
    border: 2px solid #ddd;
    vertical-align: middle;
    text-align: left;
}

.spaniel-name {
    font-weight: bold;
    color: #6E493A;
    text-align: left;
    display: block;
    margin-bottom: 5px;
}

.spaniel-details {
    font-size: 0.9em;
    color: #555;
    text-align: left;
}

.spaniel-color {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    margin-top: 4px;
    text-align: left;
}

.liver-white {
    background-color: rgba(150, 75, 0, 0.7);
    color: #ffffff;
}

.black-white {
    background-color: #666666;
    color: #ffffff;
}

.liver-white-tan {
    background: linear-gradient(135deg, rgba(150, 75, 0, 0.7) 0%, rgba(150, 75, 0, 0.7) 33%, rgba(255, 255, 255, 0.7) 50%, rgba(180, 150, 110, 0.7) 100%);
    color: #333333;
}

.black-white-tan {
    background: linear-gradient(135deg, #666666 0%, #666666 33%, #ffffff 50%, rgba(180, 150, 110, 0.7) 100%);
    color: #ffffff;
}

.sire-cell {
    background-color: rgba(230, 240, 250, 0.2);
}

.dam-cell {
    background-color: rgba(255, 230, 235, 0.3);
}

.pedigree-table img {
    display: block;
    margin: 0;
    border: 2px solid #ddd;
    border-radius: 0px;
    vertical-align: bottom;
    line-height: 0;
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(to right, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-light);
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links li {
    margin: 0 1rem;
}

.footer-links a {
    color: var(--color-light);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--color-extra-light);
    text-decoration: underline;
}

.copyright {
    font-size: 0.9rem;
    color: var(--color-light);
    opacity: 0.9;
    margin-top: 1.5rem;
    font-weight: 400;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .grid-blocks-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 3.5rem;
    }
    
    .sub-title {
        font-size: 1.3rem;
    }
    
    nav li {
        margin: 0.5rem 1rem;
    }
    
    .section-header h2,
    .page-header h1,
    .dog-header h1 {
        font-size: 2.2rem;
    }
    
    .section-header p,
    .page-header p,
    .dog-header p {
        font-size: 1rem;
    }
    
    .two-column,
    .dog-details {
        grid-template-columns: 1fr;
    }
    
    .grid-blocks-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 3rem;
    }
    
    .achievements,
    .pedigree-section {
        padding: 1.5rem;
    }
    
    .detail-card {
        padding: 1.5rem;
    }
    
    .cta-banner {
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .pedigree-table {
        font-size: 0.9rem;
    }
    
    /* Mobile slider adjustments */
    .slider-btn {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.8rem;
    }
    
    .sub-title {
        font-size: 1.1rem;
    }
    
    .grid-content h2 {
        font-size: 1.4rem;
    }
    
    .cta-banner {
        font-size: 1.1rem;
        padding: 0.8rem;
    }
    
    .detail-item strong {
        min-width: 120px;
        display: block;
        margin-bottom: 0.3rem;
    }
    
    /* Mobile slider adjustments */
    .slider-btn {
        width: 32px;
        height: 32px;
    }
    
    .pedigree-table {
        font-size: 12px;
        min-width: 500px;
    }
    
    .pedigree-table td {
        padding: 4px 2px;
    }
    
    .spaniel-details {
        font-size: 0.75em;
    }
    
    header {
        padding: 2.5rem 0;
    }
    
    .dog-header h1 {
        font-size: 2.2rem;
    }
}