/* style.css */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
  /* Color Palette: Split-Complementary with Eco-Minimalism */
  --primary-color: #A0522D; /* Sienna - Earthy, Chicken, Road */
  --primary-color-darker: #8B4513; /* Darker Sienna for hover */
  --secondary-color: #556B2F; /* Dark Olive Green - Eco, Natural */
  --secondary-color-darker: #455727; /* Darker Olive Green for hover */
  --accent-color-1: #4682B4; /* Steel Blue - Modern, App (split from Sienna's complement) */
  --accent-color-1-darker: #3A6A92; /* Darker Steel Blue for hover */
  --accent-color-2: #FFB347; /* Pastel Orange/Apricot - Playful, Energetic (split from Sienna's complement) */

  /* Text Colors */
  --heading-color: #2c3e50; /* Dark Slate Gray */
  --text-color: #34495e; /* Wet Asphalt */
  --light-text-color: #FFFFFF;
  --link-color: var(--accent-color-1);
  --link-hover-color: var(--accent-color-1-darker);

  /* Background Colors */
  --background-color: #FDFBF5; /* Very Light Beige/Off-white - Eco, Minimalist */
  --light-bg-texture-color: #F5F0E8; /* Slightly darker beige for textured sections */
  --card-bg-color: #FFFFFF;
  --footer-bg-color: #2c3e50; /* Dark Slate Gray for footer */
  --dark-overlay-color: rgba(0, 0, 0, 0.5);

  /* Fonts */
  --font-primary: 'Merriweather', serif;
  --font-secondary: 'Montserrat', sans-serif;

  /* Transitions & Animations */
  --transition-speed-fast: 0.2s;
  --transition-speed-normal: 0.4s;
  --transition-elastic: cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy animation */

  /* Borders */
  --border-radius-small: 0.25rem; /* 4px */
  --border-radius-medium: 0.5rem; /* 8px */
  --border-color: #E0E0E0;

  /* Shadows */
  --box-shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.15);
  --text-shadow-light: 1px 1px 3px rgba(0,0,0,0.3);
}

/*--------------------------------------------------------------
# General Styles
--------------------------------------------------------------*/
body {
  font-family: var(--font-primary);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden; /* Prevent horizontal scroll */
  padding-top: 0px !important;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color var(--transition-speed-fast) ease-in-out;
}

a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.section-title {
  font-size: 2.5rem;
  color: var(--heading-color);
  text-shadow: var(--text-shadow-light);
  margin-bottom: 1.5rem; /* Increased bottom margin */
  padding-top: 1rem; /* Ensure it's not too close to top */
}
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

.sub-section-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.tertiary-title {
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-color); /* Ensure lead text is dark enough */
}

/* Background texture for sections */
.bg-light-texture {
  background-color: var(--light-bg-texture-color);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/*--------------------------------------------------------------
# Buttons - Global Styles
--------------------------------------------------------------*/
.btn {
  font-family: var(--font-secondary);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-medium);
  transition: all var(--transition-speed-normal) var(--transition-elastic);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-width: 2px;
  box-shadow: var(--box-shadow-soft);
  transform: translateY(0); /* Initial state for bounce effect */
}

.btn:hover, .btn:focus {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--box-shadow-medium);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: none;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--light-text-color);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-color-darker);
  border-color: var(--primary-color-darker);
  color: var(--light-text-color);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--light-text-color);
}
.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--secondary-color-darker);
  border-color: var(--secondary-color-darker);
  color: var(--light-text-color);
}

.btn-outline-light {
  border-color: var(--light-text-color);
  color: var(--light-text-color);
}
.btn-outline-light:hover, .btn-outline-light:focus {
  background-color: var(--light-text-color);
  color: var(--primary-color);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

.btn-link {
  font-weight: 700;
  color: var(--accent-color-1);
  text-decoration: none;
  padding: 0.25rem 0; /* Minimal padding */
  box-shadow: none; /* Remove box-shadow from link buttons */
}
.btn-link:hover, .btn-link:focus {
  color: var(--accent-color-1-darker);
  text-decoration: underline;
  background-color: transparent; /* Ensure no bg on hover */
  transform: none; /* No bounce for simple links */
  box-shadow: none;
}

/*--------------------------------------------------------------
# Forms - Global Styles
--------------------------------------------------------------*/
.modern-input {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-small);
  border: 1px solid var(--border-color);
  font-family: var(--font-primary);
  transition: border-color var(--transition-speed-fast) ease-in-out, box-shadow var(--transition-speed-fast) ease-in-out;
  background-color: var(--card-bg-color);
  color: var(--text-color);
}
.modern-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-color), 0.25);
  outline: none;
}
.modern-input::placeholder {
  color: #999;
}
.form-label {
  font-weight: 600;
  font-family: var(--font-secondary);
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}
.form-title {
    color: var(--primary-color);
    font-size: 2rem;
    text-shadow: none; /* Remove text shadow for form titles for clarity */
}
.contact-info-title {
    color: var(--secondary-color);
    font-family: var(--font-secondary);
}


/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
header.sticky-top {
  z-index: 1030; /* Ensure it's above most content, Bootstrap's standard for fixed/sticky */
}
.navbar {
  background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
  backdrop-filter: blur(10px); /* Glassmorphism effect */
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--box-shadow-soft);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.navbar-brand {
  font-family: var(--font-secondary);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color) !important; /* Ensure brand color overrides Bootstrap */
  transition: transform var(--transition-speed-normal) var(--transition-elastic);
}
.navbar-brand:hover {
  transform: scale(1.05);
}
.nav-link {
  font-family: var(--font-secondary);
  font-weight: 600;
  color: var(--text-color) !important;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius-small);
  transition: color var(--transition-speed-fast) ease-in-out, background-color var(--transition-speed-fast) ease-in-out;
}
.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
  background-color: rgba(var(--primary-color), 0.1);
}
.navbar-toggler {
  border-color: var(--primary-color);
  transition: transform var(--transition-speed-normal) var(--transition-elastic);
}
.navbar-toggler:hover {
    transform: rotate(10deg) scale(1.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%28160, 82, 45, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  min-height: 85vh; /* Flexible height */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.hero-section::before { /* Parallax-like effect with fixed attachment */
    content: "";
    background-image: inherit; /* Inherits from parent style attribute */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Creates parallax effect */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1; /* Behind the linear-gradient overlay and content */
}
.hero-section .container {
    position: relative; /* To ensure content is above ::before */
    z-index: 1;
}
.hero-title {
  font-size: 3.5rem;
  color: var(--light-text-color); /* STROGO constraint */
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1.5rem;
  color: var(--light-text-color); /* STROGO constraint */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

/*--------------------------------------------------------------
# Card Styles (General and for sections like Insights, Team, Press, External Links)
--------------------------------------------------------------*/
.card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--box-shadow-soft);
  transition: transform var(--transition-speed-normal) var(--transition-elastic), box-shadow var(--transition-speed-normal) ease;
  display: flex; /* STROGO */
  flex-direction: column; /* STROGO */
  align-items: center; /* STROGO */
  text-align: center; /* STROGO */
  overflow: hidden; /* Prevent content overflow */
  height: 100%; /* Ensure cards in a row have same height if using Bootstrap's .h-100 */
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--box-shadow-medium);
}

.card-image {
  width: 100%; /* Take full width of card */
  height: 200px; /* STROGO: Fixed height */
  overflow: hidden; /* Clip image if it's larger */
  margin-bottom: 1rem; /* Space between image and content */
  display: flex; /* Center image inside */
  align-items: center; /* Center image inside */
  justify-content: center; /* Center image inside */
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* STROGO: Cover and crop */
  transition: transform var(--transition-speed-normal) ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Allows card body to fill space */
  width: 100%; /* Ensure body takes full width of card */
}

.card-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.card-subtitle {
    font-size: 1rem;
    color: var(--secondary-color);
}

.card-text {
  font-size: 0.95rem;
  flex-grow: 1; /* Pushes button to bottom if present */
  margin-bottom: 1rem; /* Space before button if present */
  color: var(--text-color); /* Ensure text is readable */
}

/* Specifically for team member images */
.team-member-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem auto; /* STROGO: Center image */
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border: 3px solid var(--card-bg-color); /* Contrast border */
}
.team-member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*--------------------------------------------------------------
# Insights Section
--------------------------------------------------------------*/
.stat-widget {
  background-color: rgba(var(--primary-color), 0.1);
  padding: 1.5rem;
  border-radius: var(--border-radius-medium);
  text-align: center;
  transition: transform var(--transition-speed-normal) var(--transition-elastic);
}
.stat-widget:hover {
    transform: scale(1.05);
}
.stat-widget h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}
.stat-widget p {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 0;
}

.progress-indicator .progress {
  height: 30px;
  border-radius: var(--border-radius-medium);
  background-color: #e9ecef;
}
.progress-indicator .progress-bar {
  background-color: var(--secondary-color);
  font-weight: 600;
  font-family: var(--font-secondary);
  font-size: 1rem;
  border-radius: var(--border-radius-medium);
}

/*--------------------------------------------------------------
# Accolades Section
--------------------------------------------------------------*/
.accolade-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-medium);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition-speed-normal) var(--transition-elastic), box-shadow var(--transition-speed-normal) ease;
}
.accolade-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--box-shadow-medium);
}
.accolade-logo {
  max-height: 80px;
  width: auto;
  margin-bottom: 1rem;
}
.accolade-title {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}
.accolade-source {
  font-size: 0.9rem;
  color: var(--text-color);
}
.blockquote {
    border-left: 4px solid var(--accent-color-2);
    padding-left: 1.5rem;
    margin-top: 2rem;
    font-style: italic;
}
.blockquote-footer {
    color: var(--secondary-color);
    font-style: normal;
}

/*--------------------------------------------------------------
# Press Section "Read More" links
--------------------------------------------------------------*/
.card .btn-link { /* More specific selector to ensure it applies in cards */
  display: inline-block; /* For better layout */
  margin-top: auto; /* Pushes to bottom of card-body if card-text flex-grow is set */
  font-weight: bold;
  color: var(--accent-color-1);
  text-decoration: none;
}

.card .btn-link:hover {
  color: var(--accent-color-1-darker);
  text-decoration: underline;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
  background-color: var(--footer-bg-color);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 3rem;
  padding-bottom: 3rem;
}
footer .footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0.75rem;
  font-family: var(--font-secondary);
  transition: color var(--transition-speed-fast) ease-in-out;
}
footer .footer-nav a:hover {
  color: var(--light-text-color);
  text-decoration: none;
}
footer .social-links a {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0.5rem;
  font-size: 1rem; /* Adjust if needed */
  font-family: var(--font-secondary);
  transition: color var(--transition-speed-fast) ease-in-out, transform var(--transition-speed-normal) var(--transition-elastic);
  display: inline-block; /* For transform */
}
footer .social-links a:hover {
  color: var(--accent-color-2); /* Bright accent on hover */
  text-decoration: none;
  transform: scale(1.1);
}
footer p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

/*--------------------------------------------------------------
# Legal Pages (Privacy, Terms)
--------------------------------------------------------------*/
/* Apply to main content area of privacy.html and terms.html */
body[data-barba-namespace="privacy"] main,
body[data-barba-namespace="terms"] main {
  padding-top: 100px; /* VAZHNO: Ensure content not overlapped by fixed header */
}
.content-section {
    background-color: var(--card-bg-color);
    padding: 2rem;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--box-shadow-soft);
    margin-bottom: 2rem;
}
.content-section h1, .content-section h2, .content-section h3 {
    color: var(--heading-color);
}
.content-section p, .content-section ul {
    color: var(--text-color);
    line-height: 1.8;
}
.content-section ul {
    padding-left: 1.5rem;
    list-style-type: disc;
}
.content-section ul li {
    margin-bottom: 0.5rem;
}
.page-header-image {
    max-height: 250px; /* Control image size on legal pages */
    object-fit: contain;
    margin-bottom: 2rem;
}

/*--------------------------------------------------------------
# Success Page
--------------------------------------------------------------*/
body[data-barba-namespace="success"] main {
  min-height: calc(100vh - var(--header-height, 70px) - var(--footer-height, 150px)); /* Adjust header/footer heights as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0; /* Override default main padding */
}
/* Fallback or if header/footer heights are not set as vars */
@supports not (min-height: calc(100vh - 70px)) {
  body[data-barba-namespace="success"] main {
    min-height: 70vh; /* Fallback if calc is complex for some reason */
  }
}
#success-message h1 {
  color: var(--secondary-color);
}
#success-message img {
    max-width: 200px; /* Control size of success image */
}

/*--------------------------------------------------------------
# Barba.js Page Transitions (Basic Example)
--------------------------------------------------------------*/
.barba-leave-active,
.barba-enter-active {
  transition: opacity var(--transition-speed-normal) ease, transform var(--transition-speed-normal) ease;
}
.barba-leave-to {
  opacity: 0;
  transform: translateY(20px);
}
.barba-enter-from {
  opacity: 0;
  transform: translateY(-20px);
}

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent-1 { color: var(--accent-color-1) !important; }
.text-accent-2 { color: var(--accent-color-2) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }


/* Ensure proper spacing to avoid overlap, complement Bootstrap */
section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 992px) {
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .section-title {
        margin-bottom: 3rem;
    }
}

/* Final alignment fixes for cards if Bootstrap's grid isn't enough */
.row.g-4 > .col-md-4 .card,
.row.g-4 > .col-md-6 .card,
.row.g-4 > .col-lg-4 .card {
    height: 100%; /* Ensures cards in a row stretch to the same height if content varies */
}

html,body{
  overflow-x: hidden;
}