/*
Theme Name: ogrodkoncept
Theme URI: http://example.com/
Author: Twoje Imię
Author URI: http://example.com/
Description: Opis motywu
Version: 1.0
*/
/* Main CSS file with variables for easy customization */

:root {
    /* Color scheme */
    --primary-color: #ffffff;      /* Main green color */
    --secondary-color: #80EF80;    /* Lighter green */
    --accent-color: #f4e285;       /* Yellow accent */
    --text-color: #333333;         /* Dark text */
    --light-text: #ffffff;         /* Light text */
    --background-color: #f9f9f9;   /* Light background */
    --footer-color: #2c3e50;       /* Dark footer */
    
    /* Typography */
    --main-font: 'Montserrat', sans-serif;
    --heading-font: 'Playfair Display', serif;
    
    /* Spacing */
    --spacing-small: 0.5rem;
    --spacing-medium: 1rem;
    --spacing-large: 2rem;
    
    /* Company info - easy to update */
    --company-name: "Ogród koncept";
    --company-tagline: "Naturalne nowoczesne ogrody";
    --company-phone: "+48 123 456 789";
    --company-email: "contact@gardendreams.pl";
    --company-address: "ul. Kwiatowa 123, Warszawa";
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--main-font);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    margin-bottom: var(--spacing-medium);
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-medium);
}

/* Header styles */
header {
    background-color: white;
    color: black;
    padding: var(--spacing-small) 0;
}

.header-container {
    display:flex;
    justify-content: space-between;
    align-items: center;
}



.logo {
  
  width: auto; /* Maintain aspect ratio */
  display: block;
  float:left;
  
}
@media (max-width: 768px) {
  .logo {
    height: 40px;
  }
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: var(--spacing-large);
}

nav ul li a {
    color: black;
    font-weight: 500;
    position: relative;
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a.active {
    color: var(--accent-color);
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

/* Hero section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-garden.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
}
.hero-section{
        opacity: 0.4;
    filter: alpha(opacity=40); /* msie */

}
.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-medium);
    color: var(--light-text);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-large);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-2px);
}

/* Section styles */
section {
    padding: var(--spacing-large) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-large);
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Services section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Force 4 equal columns */
  gap: var(--spacing-large);
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr; /* 1 column on phones */
  }
}

.service-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.service-title-box {
  background-color: white;
  padding: 0.5rem 1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-top: 1px solid #eee;
}

.service-title {
  margin: 0;
  font-size: 1rem;
  color: #333333;
}



/* Gallery section */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-medium);
}

.gallery-item {
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light-text);
    padding: var(--spacing-small);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* About section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-large);
    align-items: center;
}

.about-text {
    padding-right: var(--spacing-large);
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
}

/* Testimonials */
.testimonials {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial {
    padding: var(--spacing-large);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-medium);
}

.testimonial-author {
    font-weight: bold;
}

/* Contact section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-large);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-medium);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-small);
}

.contact-form {
    background-color: white;
    padding: var(--spacing-large);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: var(--spacing-medium);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-small);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--main-font);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--footer-color);
    color: var(--light-text);
    padding: var(--spacing-large) 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-large);
}

.footer-logo {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-medium);
}

.footer-links h3 {
    color: var(--light-text);
    margin-bottom: var(--spacing-medium);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: var(--spacing-small);
}

.footer-links ul li a {
    color: var(--light-text);
    opacity: 0.8;
}

.footer-links ul li a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: var(--spacing-medium);
    margin-top: var(--spacing-medium);
}

.social-links a {
    color: var(--light-text);
    font-size: 1.2rem;
}

.copyright {
    text-align: center;
    margin-top: var(--spacing-large);
    padding-top: var(--spacing-medium);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive styles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: var(--spacing-medium);
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 var(--spacing-small);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-text {
        padding-right: 0;
        order: 2;
    }
    
    .about-image {
        order: 1;
        margin-bottom: var(--spacing-medium);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
  padding: 2rem;
  box-sizing: border-box;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  position: relative;
  margin: auto;
  width: 100%;
  max-width: 800px;
  max-height: 90vh; /* Limits total height to viewport */
  background: #ffffff;
  border-radius: 8px;
  overflow-y: auto; /* Makes content scrollable when too tall */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Keep your original image section exactly as it was */
.lightbox-img {
  height: 400px;
  background-size: cover;
  background-position: center;
  width: 100%;
  flex-shrink: 0; /* Prevents image from shrinking */
}

.lightbox-text {
  padding: 20px;
  color: #333333;
  overflow-y: auto; /* Allows text to scroll if needed */
  flex-grow: 1; /* Takes remaining space */
}

.lightbox-description {
  margin-top: 1rem;
  line-height: 1.6;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #333333;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 1001; /* Ensures it stays above content */
}

.close-btn:hover {
  color: #ccc;
}

/* Responsiveness */
@media (max-width: 768px) {
  .lightbox-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .lightbox-img {
    height: 250px; /* Keep your original mobile height */
  }
}


