/*
 * Stylesheet for the Barplanner Landing Page.
 *
 * This file contains all styles for the modern, responsive
 * landing page. It follows a mobile-first approach.
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Define color palette and global variables */
:root {
    --primary-color: #0a2540; /* Professional dark blue */
    --secondary-color: #0d6efd; /* Vibrant blue for accents */
    --background-color: #ffffff;
    --surface-color: #f8f9fa;   /* Light gray for card backgrounds */
    --text-color: #343a40;
    --light-text-color: #ffffff;
    --border-color: #dee2e6;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Container for centered content */
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 4rem 0;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; text-align: center; }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
}

.btn-primary:hover {
    background-color: #0b5ed7; /* Darker shade of secondary */
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--surface-color);
}

/* --- Section Styling (Mobile First) --- */

main {
    padding-top: 74px; /* Account for the sticky header's height */
}

/* Header */
#main-header {
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0; /* Override section padding */
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

#main-header .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

#main-header .logo img {
    height: 40px;
}

#main-header .nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Language Picker Styles */
.language-picker {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.lang-flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    object-fit: cover;
}

.lang-flag:hover {
    border-color: var(--secondary-color);
    transform: scale(1.1);
}

.lang-flag.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(10, 37, 64, 0.3);
}

.lang-flag:not(.active) {
    opacity: 0.6;
}

/* Hero Section */
#hero {
    text-align: center;
    padding: 6rem 0;
}

#hero h1 {
    font-weight: 700;
}

#hero .subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 2rem;
}

/* Contact & Pricing Sections */
#contact, #pricing {
    text-align: center;
}

.pricing-card {
    max-width: 400px;
    margin: 2rem auto 0;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.pricing-card .price {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 1rem 0;
}

/* Footer */
#main-footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

#main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    font-size: 0.9rem;
}

#main-footer a {
    color: var(--light-text-color);
    text-decoration: underline;
}

.feature-swiper {
    padding: 2rem 0; /* Add some vertical padding */
}

/* Re-using the gallery card styling from the previous attempt */
.gallery-item {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have same height */
}

.gallery-item img {
    width: 100%;
    height: 280px; /* Set a fixed height for a uniform look */
    object-fit: contain; /* Ensures the image fits without being cropped or distorted */
    display: block;
    border-bottom: 1px solid var(--border-color);
    background: #fdfdfd; /* A subtle background for any letterboxing */
}

.gallery-item-content {
    padding: 1.5rem;
    color: var(--text-color);
    flex-grow: 1; /* Allow content to fill space */
}

.gallery-item-content h3 {
    margin-bottom: 0.5rem;
}

/* Swiper Navigation Arrows Styling */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.5rem; /* Make arrows a bit smaller */
    font-weight: 900;
}

/* --- Animation Classes --- */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Media Queries for Responsive Design --- */

/* Tablet and larger */
@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }

    /* .features-grid is no longer used */
}

/* Desktop and larger */
@media (min-width: 1024px) {
    /* .features-grid is no longer used */
}

/* --- Help Page Specific Styles --- */

#help-content {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

#help-content h1,
#help-content h2,
#help-content h3,
#help-content h4 {
    text-align: left; /* Override default centered headings */
}

#help-content h1 {
    font-size: 2.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

#help-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

#help-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#help-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

#help-content hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 3rem 0;
}

.feature-section {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

/* Lists styling */
#help-content ul,
#help-content ol {
    padding-left: 25px;
    margin-bottom: 1rem;
}

#help-content ul li,
#help-content ol li {
    margin-bottom: 0.75rem;
}

#help-content ul ul,
#help-content ol ol {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Code snippet styling */
#help-content code {
    background-color: #e9ecef;
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    border-radius: 3px;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
