/*
 Theme Name: Limousines ZT
 Theme URI: https://limos.zt.ua
 Description: Custom theme for limousine rental website in Zhytomyr
 Author: Limousines ZT Team
 Author URI: https://limos.zt.ua
 Version: 1.0.0
 License: GPL v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: limousines-zt
 Domain Path: /languages
*/

/* ==========================================================================
   VARIABLES & RESET
   ========================================================================== */

:root {
  --primary-color: #d32f2f;
  --primary-dark: #b71c1c;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #f5f5f5;
  --border-color: #e0e0e0;
  --white: #fff;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

#masthead {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-title {
  margin: 0;
  font-size: 1.8rem;
}

.site-title a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.site-title a:hover {
  color: var(--primary-dark);
}

.site-description {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.main-navigation {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.main-navigation a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: var(--primary-color);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#primary {
  flex: 1;
  width: 100%;
  max-width: 100%;
}

#main {
  width: 100%;
  max-width: 100%;
}

/* Hide sidebar */
#secondary {
  display: none !important;
}

.content-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

.site-main {
  width: 100% !important;
}

/* ==========================================================================
   HERO SECTION (Location Pages)
   ========================================================================== */

.location-hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.location-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.location-hero__background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.location-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.location-hero__title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.location-hero__subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   DESCRIPTION SECTION
   ========================================================================== */

.location-description {
  padding: 4rem 2rem;
  background: var(--bg-light);
}

.location-description__wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.location-description__text,
.location-description__content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
}

.location-description__text {
  font-weight: 600;
}

.location-description__content p {
  margin-bottom: 1rem;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.location-services {
  padding: 4rem 2rem;
  background: var(--white);
}

.location-services__wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.location-services__title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.location-services__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  list-style: none;
}

.location-services__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 1.1rem;
  font-weight: 500;
}

.location-services__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.location-services__item img {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */

.location-gallery {
  padding: 4rem 2rem;
  background: var(--bg-light);
}

.location-gallery__wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.location-gallery__title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.location-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.location-gallery__image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.location-gallery__image:hover {
  transform: scale(1.05);
}

/* ==========================================================================
   REVIEWS SECTION
   ========================================================================== */

.location-reviews {
  padding: 4rem 2rem;
  background: var(--white);
}

.location-reviews__wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.location-reviews__title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 3rem;
  color: var(--text-dark);
}

.location-reviews__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.location-review {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}

.location-review:hover {
  box-shadow: var(--shadow-md);
}

.location-review__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.location-review__photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.location-review__meta {
  flex: 1;
}

.location-review__author {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
  margin-bottom: 0.5rem;
}

.location-review__rating {
  display: flex;
  gap: 0.3rem;
  margin: 0;
}

.location-review__rating img {
  width: 16px;
  height: 16px;
}

.location-review__text {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.location-review__date {
  font-size: 0.9rem;
  color: #999;
  margin: 0;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.location-cta {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
}

.location-cta__wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.location-cta__title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.location-cta__description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.location-cta__button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--white);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.location-cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

#colophon {
  background: var(--text-dark);
  color: var(--white);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

.site-info {
  max-width: 1200px;
  margin: 0 auto;
}

.site-info a {
  color: var(--primary-color);
  text-decoration: none;
}

.site-info a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
  .location-hero__title {
    font-size: 2rem;
  }

  .location-hero__subtitle {
    font-size: 1rem;
  }

  .location-services__list,
  .location-reviews__list {
    grid-template-columns: 1fr;
  }

  .location-description__wrapper {
    grid-template-columns: 1fr;
  }

  .location-gallery__grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .main-navigation {
    flex-direction: column;
    gap: 1rem;
  }

  .location-cta__title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .location-hero {
    height: 300px;
  }

  .location-hero__title {
    font-size: 1.5rem;
  }

  .location-hero__subtitle {
    font-size: 0.9rem;
  }

  .location-services__title,
  .location-reviews__title,
  .location-gallery__title {
    font-size: 1.8rem;
  }
}
