/*
  CSS Styles for 'Заправочные станции в Грузии'
  Design System: Minimalistic with Eco-minimalism
  Color Scheme: Monochromatic
  Animation Style: Subtle 3D-effects
  Fonts: Montserrat (headings), Merriweather (body)
*/

/* --------------------------------------------------------------
   1. CSS Variables
   -------------------------------------------------------------- */
:root {
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Merriweather', serif;

  /* Monochromatic Palette with a hint of eco-minimalism (subtle desaturated tones if needed, primarily grays) */
  --color-text-light: #f8f9fa; /* Light text for dark backgrounds */
  --color-text-dark: #333333;  /* Main body text */
  --color-text-darker: #222222; /* Section titles, darker elements */
  --color-text-muted: #6c757d; /* Muted text, Bootstrap secondary */

  --color-bg-light: #ffffff;    /* Primary light background */
  --color-bg-medium: #f8f9fa; /* Bootstrap bg-light equivalent, for sections */
  --color-bg-dark: #212529;   /* Footer, dark sections */

  --color-primary-accent: #007bff; /* Bootstrap primary blue - for key actions */
  --color-primary-accent-hover: #0056b3;

  --color-border: #dee2e6; /* Standard border color */

  --border-radius-base: 0.375rem; /* Bootstrap's default */
  --border-radius-lg: 0.5rem;

  --transition-speed: 0.3s;
  --box-shadow-light: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --box-shadow-medium: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------
   2. Global Styles & Resets
   -------------------------------------------------------------- */
body {
  font-family: var(--font-secondary);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.7;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Page transition overlay - already in HTML, ensure it works with Barba.js */
.page-transition-overlay {
    transition: opacity var(--transition-speed) ease-in-out;
}

/* --------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-text-darker);
  margin-bottom: 0.75em;
  line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; } /* Section Titles */
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; } /* Card Titles */
h6 { font-size: 1rem; }

p {
  font-family: var(--font-secondary);
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

a {
  color: var(--color-primary-accent);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}
a:hover {
  color: var(--color-primary-accent-hover);
  text-decoration: underline;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem; /* More space below section titles */
  color: var(--color-text-darker);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for better contrast */
}

/* --------------------------------------------------------------
   4. Buttons (Global)
   -------------------------------------------------------------- */
.btn, button, input[type='submit'], input[type='button'] {
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-base);
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  box-shadow: var(--box-shadow-light);
}

.btn-primary.custom-btn {
  background-color: var(--color-primary-accent);
  border-color: var(--color-primary-accent);
  color: var(--color-text-light);
}
.btn-primary.custom-btn:hover {
  background-color: var(--color-primary-accent-hover);
  border-color: var(--color-primary-accent-hover);
  color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-medium);
}

.btn-outline-dark.custom-btn-outline {
  color: var(--color-text-darker);
  border-color: var(--color-text-darker);
}
.btn-outline-dark.custom-btn-outline:hover {
  background-color: var(--color-text-darker);
  color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-medium);
}

/* --------------------------------------------------------------
   5. Forms (Global for contact form inputs)
   -------------------------------------------------------------- */
.modern-input {
  font-family: var(--font-secondary);
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-base);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  box-shadow: none; /* Override Bootstrap's default focus shadow if needed */
}
.modern-input:focus {
  border-color: var(--color-primary-accent);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-accent), 0.25); /* Subtle focus glow */
}
.form-label {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--color-text-darker);
}

/* --------------------------------------------------------------
   6. Header / Navbar
   -------------------------------------------------------------- */
#header {
  background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white for a modern feel */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0; /* Reduced padding for fixed header */
  transition: padding var(--transition-speed) ease;
}
#header.scrolled { /* Example class if you add scroll detection for shrinking header */
    padding: 0.25rem 0;
}
.navbar-brand {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text-darker) !important;
}
.navbar-nav .nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--color-text-dark) !important;
  padding: 0.5rem 1rem;
  transition: color var(--transition-speed) ease;
  position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-primary-accent) !important;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-primary-accent);
  transition: width var(--transition-speed) ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 70%;
}
.navbar-toggler {
  border-color: rgba(0,0,0,0.1);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--color-bg-light);
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: var(--border-radius-base);
    box-shadow: var(--box-shadow-medium);
  }
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
  }
  .navbar-nav .nav-link::after {
    left: 0;
    transform: none;
  }
}

/* --------------------------------------------------------------
   7. Section Specific Styles
   -------------------------------------------------------------- */
.section-padding {
  padding: 60px 0;
}
.bg-light { /* Using Bootstrap's class for consistency */
  background-color: var(--color-bg-medium) !important;
}

/* Hero Section */
#hero {
  position: relative;
  /* background-size: cover and background-position already inline */
  /* min-height: 100vh; -- already inline */
  /* color: #FFFFFF; -- already inline */
}
#hero h1 {
  /* color: #FFFFFF; -- already inline */
  /* text-shadow: 1px 1px 3px rgba(0,0,0,0.7); -- already inline */
  font-weight: 700;
  margin-bottom: 20px;
}
#hero .lead {
  /* color: #FFFFFF; -- already inline */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
#hero .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* About Us Section */
#about-us .image-container img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-medium);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
#about-us .image-container img:hover {
  transform: scale(1.03);
  box-shadow: 0 1rem 2rem rgba(0,0,0,0.2);
}

/* Research Section - Timeline */
.timeline {
  list-style: none;
  padding: 20px 0 20px;
  position: relative;
}
.timeline:before {
  top: 0;
  bottom: 0;
  position: absolute;
  content: " ";
  width: 3px;
  background-color: var(--color-border);
  left: 50%;
  margin-left: -1.5px;
}
.timeline > li {
  margin-bottom: 20px;
  position: relative;
}
.timeline > li:before,
.timeline > li:after {
  content: " ";
  display: table;
}
.timeline > li:after {
  clear: both;
}
.timeline > li .timeline-panel {
  width: 45%; /* Adjusted width */
  float: left;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-base);
  padding: 20px;
  position: relative;
  box-shadow: var(--box-shadow-light);
  background-color: var(--color-bg-light);
}
.timeline > li .timeline-badge {
  color: #fff;
  width: 50px;
  height: 50px;
  line-height: 50px;
  font-size: 1.4em;
  text-align: center;
  position: absolute;
  top: 16px;
  left: 50%;
  margin-left: -25px;
  background-color: var(--color-text-muted);
  z-index: 100;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline > li.timeline-inverted > .timeline-panel {
  float: right;
}
.timeline > li.timeline-inverted > .timeline-panel:before {
  border-left-width: 0;
  border-right-width: 15px;
  left: -15px;
  right: auto;
}
.timeline > li.timeline-inverted > .timeline-panel:after {
  border-left-width: 0;
  border-right-width: 14px;
  left: -14px;
  right: auto;
}
.timeline-badge.primary { background-color: var(--color-primary-accent) !important; }
.timeline-badge.success { background-color: #28a745 !important; }
.timeline-badge.warning { background-color: #ffc107 !important; }
.timeline-badge.danger { background-color: #dc3545 !important; }
.timeline-badge.info { background-color: #17a2b8 !important; }
.timeline-title {
  margin-top: 0;
  color: var(--color-text-darker);
}
.timeline-body > p,
.timeline-body > ul {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--color-text-dark);
}
.timeline-body > p + p {
  margin-top: 5px;
}
@media (max-width: 767px) {
    ul.timeline:before {
        left: 40px;
    }
    ul.timeline > li > .timeline-panel {
        width: calc(100% - 90px); /* Adjusted width */
        width: -moz-calc(100% - 90px);
        width: -webkit-calc(100% - 90px);
    }
    ul.timeline > li > .timeline-badge {
        left: 15px;
        margin-left: 0;
        top: 16px;
    }
    ul.timeline > li > .timeline-panel {
        float: right;
    }
    ul.timeline > li > .timeline-panel:before {
        border-left-width: 0;
        border-right-width: 15px;
        left: -15px;
        right: auto;
    }
    ul.timeline > li > .timeline-panel:after {
        border-left-width: 0;
        border-right-width: 14px;
        left: -14px;
        right: auto;
    }
}


/* Projects, Case Studies, External Resources - Card Styling */
.project-card, .resource-card, #case-studies .card {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-light);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  display: flex; /* For consistent height of card-body */
  flex-direction: column;
}
.project-card:hover, .resource-card:hover, #case-studies .card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--box-shadow-medium);
}
.card-image {
  width: 100%;
  height: 200px; /* Fixed height for image container */
  overflow: hidden;
  border-top-left-radius: var(--border-radius-lg); /* Match card's radius */
  border-top-right-radius: var(--border-radius-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area, may crop */
  transition: transform var(--transition-speed) ease;
}
.project-card:hover .card-image img,
.resource-card:hover .card-image img,
#case-studies .card:hover .card-image img {
  transform: scale(1.05);
}
.card-body {
  padding: 1.25rem;
  flex-grow: 1; /* Allows card body to fill remaining space */
  display: flex;
  flex-direction: column;
  text-align: left; /* Default text align */
}
.card-title {
  color: var(--color-text-darker);
  margin-bottom: 0.75rem;
}
.card-text {
  color: var(--color-text-dark);
  font-size: 0.95rem;
  flex-grow: 1;
}
.resource-card .card-title a.resource-link {
  color: var(--color-text-darker);
  text-decoration: none;
}
.resource-card .card-title a.resource-link:hover {
  color: var(--color-primary-accent);
}
.resource-link.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

/* Behind the Scenes & Pricing - Tabs */
.custom-pill {
  font-family: var(--font-primary);
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  margin: 0 0.25rem;
  border-radius: var(--border-radius-lg) !important; /* Force override Bootstrap if needed */
  color: var(--color-text-dark);
  background-color: var(--color-bg-medium);
  border: 1px solid var(--color-border);
  transition: all var(--transition-speed) ease;
}
.custom-pill:hover {
  background-color: #e2e6ea; /* Slightly darker on hover */
  color: var(--color-text-darker);
}
.custom-pill.active {
  background-color: var(--color-primary-accent);
  color: var(--color-text-light);
  border-color: var(--color-primary-accent);
  box-shadow: var(--box-shadow-light);
}
.tab-content {
  padding-top: 1.5rem;
}
#behind-the-scenes .image-container img {
  border-radius: var(--border-radius-base);
  box-shadow: var(--box-shadow-light);
}

/* Pricing Section */
.price-card {
  background-color: var(--color-bg-light);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-base);
  margin: 0.5rem;
  box-shadow: var(--box-shadow-light);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.price-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-medium);
}
.price-card h5 {
  font-family: var(--font-primary);
  color: var(--color-primary-accent);
}
.price-card p {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-darker);
  margin-bottom: 0;
}

/* Contact Section */
#contact .contact-form {
  background-color: var(--color-bg-light);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-medium);
}
#contact h5 {
    color: var(--color-text-darker);
}
#contact p a {
    color: var(--color-text-dark);
}
#contact p a:hover {
    color: var(--color-primary-accent);
}

/* --------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------- */
#footer {
  background-color: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0 20px 0;
}
#footer h5, #footer h6 {
  color: var(--color-text-light);
  font-family: var(--font-primary);
  margin-bottom: 1rem;
}
#footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}
.footer-links {
  padding-left: 0;
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease;
  font-family: var(--font-secondary);
  font-size: 0.9rem;
}
.footer-link:hover {
  color: var(--color-text-light);
  padding-left: 5px; /* Subtle hover effect */
  text-decoration: none;
}
#footer hr {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
#footer .text-center {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------
   9. Specific Page Styles (Privacy, Terms, Success)
   -------------------------------------------------------------- */
.privacy-policy-page,
.terms-conditions-page,
.contact-page-content { /* For full contacts.html page */
  padding-top: 100px; /* Header height + buffer */
  padding-bottom: 60px;
}
.privacy-policy-page h1,
.terms-conditions-page h1,
.contact-page-content h1 {
  margin-bottom: 2rem;
}
.privacy-policy-page h2,
.terms-conditions-page h2,
.contact-page-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.success-page-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 160px); /* Adjust if header/footer height changes, 100vh - (header + footer) */
  text-align: center;
  padding: 2rem;
}
.success-page-container .icon {
  font-size: 4rem;
  color: #28a745; /* Green for success */
  margin-bottom: 1rem;
}
.success-page-container h1 {
  color: var(--color-text-darker);
  margin-bottom: 0.5rem;
}
.success-page-container p {
  color: var(--color-text-dark);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------
   10. AOS Animation Placeholders (AOS handles actual animation)
   -------------------------------------------------------------- */
[data-aos] {
  /* Default state for elements before AOS animates them */
  /* Example: opacity: 0; transform: translateY(20px); */
  /* This depends on the specific AOS animations used in HTML */
}

/* --------------------------------------------------------------
    11. Parallax Effect (Simple example for backgrounds)
   -------------------------------------------------------------- */
.parallax-background {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
/* Ensure the hero section with background image has a proper prompt as per request */
#hero[style*="background-image"] {
    /* Styles for parallax if added via JS or more complex CSS */
}

/* --------------------------------------------------------------
   12. Cookie Consent Popup (styles already in HTML, minimal additions)
   -------------------------------------------------------------- */
#cookiePopup {
    /* Base styles are inline as requested */
    font-family: var(--font-secondary); /* Ensure consistent font */
}
#cookiePopup p a {
    color: #a0cfff; /* Explicitly set link color in popup */
}
#acceptCookie {
    font-family: var(--font-primary); /* Ensure consistent font for button */
}

/* --------------------------------------------------------------
   13. Responsive Adjustments (Bootstrap handles most, add specifics if needed)
   -------------------------------------------------------------- */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .section-padding { padding: 40px 0; }
  #hero .lead { font-size: 1.1rem; }
  #hero .btn { padding: 0.8rem 1.6rem; font-size: 1rem; }
}

@media (max-width: 576px) {
  #hero h1 { font-size: 2rem; }
  .price-card {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}