
/*
   Safari Plug Safaris - Main Stylesheet
   Modern, responsive design for a safari tour company website
*/

/* ===== Base Styles ===== */
:root {
    /* Color Palette - Light Mode */
    --primary: #f0810f;         /* Safari Orange */
    --primary-dark: #d26e06;    /* Darker Orange */
    --secondary: #2c7a45;       /* Safari Green */
    --secondary-dark: #215a33;  /* Darker Green */
    --dark: #333333;            /* Dark Gray */
    --light: #f5f5f5;           /* Light Gray */
    --white: #ffffff;           /* White */
    --black: #121212;           /* Off-Black */
    --accent: #e5bb62;          /* Savanna Gold */
    --bg-primary: var(--white);   /* Background primary */
    --bg-secondary: var(--light); /* Background secondary */
    --text-primary: var(--dark);  /* Text primary */
    --text-secondary: #666;       /* Text secondary */
    --card-bg: var(--white);      /* Card background */
    --header-bg: var(--white);    /* Header background */
    --header-text: var(--dark);   /* Header text */
    --border-color: #eee;         /* Border color */

    /* Typography */
    --body-font: 'Poppins', sans-serif;
    --heading-font: 'Poppins', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease; /* Added for theme transitions */
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents bottom space under images */
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent; /* Base border */
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
}

.btn-light:hover {
    background-color: transparent;
    color: var(--white); /* Text color should be white when bg is transparent on dark bg */
    border-color: var(--white);
}


.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Section Headings */
.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
}

.section-heading.light h2 {
    color: var(--white);
}

.section-heading p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px; /* Limit width of paragraph */
    margin-left: auto;
    margin-right: auto;
}

.section-heading.light p {
    color: var(--light);
}

.separator {
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    margin: 10px auto 20px;
}

/* ===== Header ===== */
header {
    background-color: var(--header-bg);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo styles are handled by logo-fix.css, but ensure a base for alignment */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img.main-logo {
    max-height: 35px; /* Consistent with logo-fix.css */
    width: auto;
    /* margin-right: 10px; /* Spacing handled in logo-fix.css and HTML structure */
}


nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--header-text);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    left: 0;
    bottom: -2px; /* Adjusted for better visual */
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Handled by mobile.css */
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--header-text);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}


/* ===== Hero Section ===== */
.hero {
    height: 85vh;
    min-height: 500px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/static/images/hero-bg.jpg'); /* Ensure image path is correct */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* ===== About Brief Section ===== */
.about-brief {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.mission-card {
    background-color: var(--card-bg); /* Use card-bg for consistency */
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--border-color);
}

.mission-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.mission-card h3 {
    margin-bottom: 15px;
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 600;
}

/* ===== Featured Packages / All Packages Common Styles ===== */
.featured-packages, .destinations { /* .destinations added for consistency */
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.packages-grid, .destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Slightly larger min for better spacing */
    gap: 30px;
}

.package-card, .destination-card { /* Combined for common styling */
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex; /* For consistent height in rows if content varies */
    flex-direction: column; /* Stack image and content */
    border: 1px solid var(--border-color);
}

.package-card:hover, .destination-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Package Image is defined in head.ejs inline styles */
/* Card Image (for destinations) uses same principle as package-image */
.card-image { /* For destination cards */
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0; /* Fallback */
}


.package-content, .card-content { /* Combined for common styling */
    padding: 20px;
    flex-grow: 1; /* Allows content to fill space if card heights vary due to grid */
    display: flex;
    flex-direction: column;
}

.package-content h3, .card-content h3 {
    margin-bottom: 10px;
    color: var(--secondary);
    font-size: 1.4rem;
    font-weight: 600;
}

.package-meta {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small cards */
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.package-meta span i {
    margin-right: 5px;
    color: var(--primary);
}

.package-content p, .card-content p {
    margin-bottom: 20px;
    flex-grow: 1; /* Allows p to take available space before price/button */
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.package-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: auto; /* Pushes to bottom */
}

.price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* ===== Testimonials ===== */
.testimonials {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    padding: 30px; /* Padding directly on testimonial */
}

.testimonial-content {
    position: relative;
}

.testimonial-content::before {
    content: '\201C'; /* Unicode for left double quote */
    font-size: 5rem;
    line-height: 1;
    position: absolute;
    top: -10px; /* Adjust positioning */
    left: -5px;  /* Adjust positioning */
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    z-index: 0;
}

.testimonial-content p {
    margin-bottom: 20px;
    font-style: italic;
    position: relative; /* To appear above quote mark */
    z-index: 1;
    color: var(--text-secondary);
}

.client-info {
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.client-info h4 {
    margin-bottom: 5px;
    color: var(--secondary);
    font-weight: 600;
}

.client-info span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.rating {
    margin-top: 8px;
}
.rating i {
    color: #ffc107; /* Gold color for stars */
    font-size: 0.9rem;
    margin-right: 2px;
}

.rating i.inactive {
    color: #ddd; /* Grayed out color for inactive stars */
}


/* ===== Call to Action ===== */
.cta {
    padding: 60px 0;
    background-image: linear-gradient(rgba(240, 129, 15, 0.85), rgba(210, 110, 6, 0.85)), url('/static/images/cta-bg.jpg'); /* Primary color overlay */
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--white);
    position: relative; /* For potential pseudo-elements if needed later */
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 25px; /* Increased margin */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* Footer is styled in its own section in the original CSS, but we'll ensure consistency */
/* ===== Footer ===== */
footer {
    background-color: #222; /* Dark background */
    color: var(--light);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px; /* Increased margin */
}

.footer-about h3,
.footer-links h3,
.footer-contact h3,
.footer-newsletter h3 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.3rem; /* Slightly larger */
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-about h3::after,
.footer-links h3::after,
.footer-contact h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px; /* Slightly thicker */
    background-color: var(--primary);
}

.footer-about p.company-description { /* Specific selector */
    margin-bottom: 20px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 12px; /* Slightly reduced gap */
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; /* Slightly larger */
    height: 38px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1rem; /* Ensure icon size is good */
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px); /* Add hover effect */
}

.footer-links ul li {
    margin-bottom: 12px; /* Increased spacing */
}

.footer-links ul li a {
    color: var(--light);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    opacity: 1;
    padding-left: 5px;
}

.footer-contact ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start; /* Align items to top for multi-line text */
    font-size: 0.95rem;
}
.footer-contact ul li a {
    color: var(--light);
    opacity: 0.8;
}
.footer-contact ul li a:hover {
    color: var(--primary);
    opacity: 1;
}


.footer-contact ul li i {
    margin-right: 12px; /* Increased margin */
    color: var(--primary);
    font-size: 1rem; /* Ensure icon size */
    margin-top: 4px; /* Align icon with first line of text */
}

/* Newsletter form styles are in newsletter.css and newsletter-fix.css */
.footer-newsletter p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px; /* Increased padding */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== Page Banner (for internal pages) ===== */
.page-banner {
    height: 40vh;
    min-height: 300px; /* Minimum height */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    position: relative;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.55); /* Slightly darker overlay */
}

.banner-content {
    position: relative;
    z-index: 1;
    padding: 0 20px; /* Add padding for smaller screens */
}

.page-banner h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.breadcrumb {
    font-size: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 500; /* Make link stand out */
}
.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 10px;
    opacity: 0.8; /* Slightly dim the separator */
}

/* Specific Page Banner Images (Examples) */
.about-banner { background-image: url('/static/images/about-safari.jpg'); }
.packages-banner { background-image: url('/static/images/packages-banner.jpg'); }
.destinations-banner { background-image: url('/static/images/destinations-banner.jpg'); }
.contact-banner { background-image: url('/static/images/contact-banner.jpg'); }
.faq-banner { background-image: url('/static/images/faq-banner.jpg'); }


/* ===== About Page Specific Styles ===== */
.about-section { /* For the main "Our Story" type section */
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.about-image { /* If used for a standalone image */
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 30px; /* If image is above text */
}

.about-text-container h2 { /* If different from .section-heading */
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary);
    font-weight: 600;
}

.about-text-container p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.about-text-container strong {
    color: var(--text-primary); /* Make strong text darker */
    font-weight: 600;
}

.mission-vision {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

/* .mission-card already styled, .vision-card can use similar styling */
.vision-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--border-color);
}
.vision-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}
.vision-card h2, .mission-card h2 { /* For consistency if not using global .section-heading */
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.8rem; /* Slightly smaller for cards */
    font-weight: 600;
    /* Removed ::after for card titles, separator in section-heading is enough */
}
.vision-card p, .mission-card p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.our-team {
    padding: 80px 0;
    background-color: var(--bg-primary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center; /* Center content */
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.member-image { /* Ensure this class is used for the team member image div */
    height: 250px;
    background-color: #ddd; /* Placeholder */
    background-size: cover;
    background-position: center top; /* Often better for portraits */
    margin-bottom: 15px; /* Space before info */
}

.member-info {
    padding: 0 20px 20px; /* Padding only bottom and sides */
}

.member-info h3 {
    margin-bottom: 5px;
    color: var(--secondary);
    font-size: 1.3rem;
    font-weight: 600;
}

.member-info span { /* Role/Title */
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}
.member-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}


/* ===== Contact Page Styles ===== */
/* .contact-section, .contact-content, .info-item, etc. are in inline styles in head.ejs */
/* If you move them to style.css, they would go here. */
/* For example: */
/* .contact-info { ... } */
/* .contact-form-container { ... } */

.map-section {
    padding: 80px 0;
    background-color: var(--bg-secondary); /* Consistent background */
}

.map-container {
    height: 450px; /* Match iframe height */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none; /* Remove iframe border */
}


/* ===== FAQ Section ===== */
/* Basic .faq-section styling */
.faq-section {
    padding: 80px 0;
    background-color: var(--bg-secondary); /* Or var(--bg-primary) */
}
/* .faq-container, .faq-item, .faq-question, .faq-answer are styled in faq.css */


/* Responsive styles are in mobile.css */
/* Theme toggle styles are in dark-mode.css */

/* Policy Page Specific Styles */
.policy-section {
    padding: 60px 0;
    background-color: var(--bg-primary);
}
.policy-section h3 {
    color: var(--secondary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}
.policy-section h4 {
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 500;
}
.policy-section p, .policy-section li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.policy-section ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}
.policy-section ul ul {
    list-style: circle;
    margin-top: 5px;
}
