/*
 * Refreshed styling for the multi‑language ranch listing pages.
 *
 * The new design introduces more personality while keeping the site
 * responsive and accessible.  It uses modern fonts from Google Fonts
 * and a warm colour palette inspired by the natural tones of a ranch
 * environment.  Sections are spaced out to improve readability, and
 * components like the gallery and video embed are enhanced with
 * subtle shadows and hover effects.  Feel free to further tweak
 * colours or typography to match your brand identity.
 */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Lora:wght@700&display=swap');

/* CSS variables for easy theming */
:root {
    --primary-color: #2e543d;   /* deep green for headers and accents */
    --accent-color: #967047;    /* warm brown for highlights */
    --background-color: #fdfcf8;/* soft off‑white background */
    --text-color: #303030;      /* dark grey for legibility */
}

/* Reset basic body styles and set global typography */
body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Top level container for page heading */
header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
}

header h1 {
    margin: 0;
    font-family: 'Lora', serif;
    font-size: 2.5rem;
}

header .address {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}

/* Main content wrapper: centre on the page with soft card styling */
main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

section {
    margin-bottom: 3rem;
}

/* Intro paragraphs spacing */
.intro p {
    margin-bottom: 1.2rem;
}

/* Section headings: unify appearance and colour */
.features h3,
.video h3,
.gallery h3,
.contact h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-family: 'Lora', serif;
}

/* Feature list styling: remove default bullets and replace with custom check mark */
.features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.features li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

/* Video embed styling: centre and add a shadow */
.video iframe {
    width: 100%;
    max-width: 700px;
    height: 400px;
    border: none;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive image gallery using CSS grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.gallery img:hover {
    transform: scale(1.03);
}

/* Contact section: highlight the background for emphasis */
.contact {
    background-color: var(--accent-color);
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
}

.contact p {
    margin: 0.5rem 0;
}

.contact a {
    color: #fff;
    text-decoration: underline;
}

/* Back link: style the language selector back link */
a.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

a.back-link:hover {
    text-decoration: underline;
}

/* Language selection on the index page */
.language-selection ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.language-selection a {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
}

.language-selection a:hover {
    background-color: var(--accent-color);
}