/* style.css */

/*--------------------------------------------------------------
# CSS Variables
--------------------------------------------------------------*/
:root {
  --font-primary: 'Roboto', sans-serif;
  --font-secondary: 'Lato', sans-serif;

  /* Triad Color Scheme */
  --color-primary: #2A9D8F; /* Teal */
  --color-primary-darker: #238278;
  --color-secondary: #E9C46A; /* Saffron */
  --color-secondary-darker: #d4b05a;
  --color-accent: #F4A261; /* Persian Orange - for highlights, CTAs */
  --color-accent-darker: #e08a40;

  --color-background-dark: #264653; /* Dark Slate Gray */
  --color-background-medium: #2e5563; /* Slightly lighter dark for cards on dark bg */
  --color-background-light: #f8f9fa; /* Bootstrap's light bg */
  --color-background-white: #FFFFFF;

  --color-text-light: #FFFFFF;
  --color-text-on-dark-bg: #f0f0f0; /* For text on --color-background-dark */
  --color-text-muted-on-dark: #adb5bd; /* Muted text on dark backgrounds */
  --color-text-dark: #333333;
  --color-text-darker: #222222; /* For headings */

  --gradient-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6));
  --gradient-overlay-light: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.4));


  --box-shadow-light: 0 4px 12px rgba(0,0,0,0.1);
  --box-shadow-heavy: 0 8px 20px rgba(0,0,0,0.15);
  --box-shadow-interactive: 0 6px 16px rgba(0,0,0,0.12);

  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.375rem; /* Bootstrap's default */
  --border-radius-lg: 0.5rem;

  --transition-speed: 0.3s;
  --transition-timing: ease-in-out; /* Non-linear movement */
  --transition-cubic: cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Example of non-linear */

  --section-padding-y: 5rem; /* 80px */

  --card-image-height: 200px;
}

/*--------------------------------------------------------------
# Global & Base Styles
--------------------------------------------------------------*/
body {
  font-family: var(--font-secondary);
  color: var(--color-text-dark);
  background-color: var(--color-background-white);
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden; /* Prevent horizontal scroll caused by AOS or other animations */
  padding-top: 0px !important;
}

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: clamp(2.5rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.8vw, 1.25rem); }


p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-timing);
}

a:hover {
  color: var(--color-primary-darker);
  text-decoration: none; /* Or underline, depending on preference */
}

img {
  max-width: 100%;
  height: auto;
  display: block; /* Removes bottom space under images */
}

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.section-padding {
  padding: var(--section-padding-y) 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3.75rem; /* 60px */
  font-weight: 900;
  color: var(--color-text-darker);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lead {
  font-size: 1.15rem;
  font-weight: 400;
  color: #555;
}

.dark-bg {
  background-color: var(--color-background-dark);
  color: var(--color-text-on-dark-bg);
}

.dark-bg h1, .dark-bg h2, .dark-bg h3, .dark-bg h4, .dark-bg h5, .dark-bg h6,
.dark-bg .section-title {
  color: var(--color-text-light);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.dark-bg p, .dark-bg .lead {
  color: var(--color-text-on-dark-bg);
}

.dark-bg a {
    color: var(--color-secondary);
}
.dark-bg a:hover {
    color: var(--color-secondary-darker);
}

.parallax-bg {
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  z-index: 1;
}

.text-shadow {
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.content-centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn, button, input[type='submit'], input[type='button'] {
  font-family: var(--font-primary);
  font-weight: 700;
  padding: 0.75rem 1.75rem; /* 12px 28px */
  font-size: 1rem; /* Adjusted from 1.1rem to be more standard */
  border-radius: var(--border-radius-md);
  transition: all var(--transition-speed) var(--transition-timing);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-width: 2px;
  border-style: solid;
  box-shadow: var(--box-shadow-light);
}

.btn:hover, button:hover, input[type='submit']:hover, input[type='button']:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-heavy);
}

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

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

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


.btn-outline-light {
  border-color: var(--color-text-light);
  color: var(--color-text-light);
}
.btn-outline-light:hover {
  background-color: var(--color-text-light);
  color: var(--color-primary); /* Or any dark color */
}

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

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
}

/* "Read More" Link Styles */
.read-more-link {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition-speed) var(--transition-timing), transform var(--transition-speed) var(--transition-timing);
}

.read-more-link::after {
  content: '→';
  margin-left: 0.5em;
  transition: transform var(--transition-speed) var(--transition-timing);
  display: inline-block;
}

.read-more-link:hover {
  color: var(--color-accent-darker);
  transform: translateX(3px);
}
.read-more-link:hover::after {
  transform: translateX(5px);
}


/*--------------------------------------------------------------
# Header / Navigation
--------------------------------------------------------------*/
.navbar {
  padding: 1rem 0;
  transition: padding var(--transition-speed) var(--transition-timing), background-color var(--transition-speed) var(--transition-timing);
}
.navbar.sticky-top {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.navbar-brand {
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 1.75rem;
  color: var(--color-primary) !important;
}

.navbar .nav-link {
  font-family: var(--font-secondary);
  font-weight: 700;
  color: var(--color-text-dark);
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition-speed) var(--transition-timing);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--color-primary);
}

.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(34, 34, 34, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--color-text-light); /* Ensure text is white */
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  padding: 2rem 0;
}

.hero-section h1 {
  color: var(--color-text-light);
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-section p.lead {
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/*--------------------------------------------------------------
# Cards
--------------------------------------------------------------*/
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-light);
  transition: transform var(--transition-speed) var(--transition-cubic), box-shadow var(--transition-speed) var(--transition-timing);
  background-color: var(--color-background-white);
  display: flex; /* For STROGO requirement */
  flex-direction: column; /* For STROGO requirement */
  /* align-items: center; /* For STROGO requirement - better on card-body or specific content if not all centered */
  height: 100%; /* Make cards in a row equal height */
}

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

.card-image { /* STROGO: Container for image */
  width: 100%;
  height: var(--card-image-height); /* STROGO: Fixed height */
  overflow: hidden;
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Specific case for customer stories horizontal card images */
#customer-stories .card-image {
    border-top-right-radius: 0;
    border-bottom-left-radius: var(--border-radius-lg);
}


.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* STROGO: Ensure image covers container */
  transition: transform var(--transition-speed) var(--transition-timing);
}

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

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Allows footer elements in card to stick to bottom */
}

.card-title {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-text-darker);
  margin-bottom: 0.75rem;
}
.card-text {
  color: #555;
  font-size: 0.95rem;
  flex-grow: 1; /* Pushes elements below it to the bottom if card-body is flex */
}

/* Cards on dark background */
.dark-bg .card {
    background-color: var(--color-background-medium);
    color: var(--color-text-on-dark-bg);
}
.dark-bg .card .card-title {
    color: var(--color-text-light);
}
.dark-bg .card .card-text {
    color: var(--color-text-on-dark-bg);
}
.dark-bg .card .blockquote-footer {
    color: var(--color-secondary); /* Or a lighter muted color */
}
.dark-bg .card .btn-outline-secondary {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}
.dark-bg .card .btn-outline-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-darker);
}


/* Centering content within cards where appropriate */
.card.text-center .card-body,
#features .card .card-body, /* Example for features */
#testimonials .card .card-body { /* Example for testimonials */
    align-items: center;
    text-align: center;
}

#testimonials .card-image img,
#testimonials .card img.rounded-circle { /* For avatars */
  margin-left: auto;
  margin-right: auto;
}

/* Specific card type for customer stories (horizontal) */
#customer-stories .card .row > [class^="col-"] {
  padding-right: 0;
  padding-left: 0;
}
#customer-stories .card-image img.img-fluid.rounded-start.h-100 {
    border-top-left-radius: var(--border-radius-lg);
    border-bottom-left-radius: var(--border-radius-lg);
    border-top-right-radius: 0;
    height: 100% !important; /* Override Bootstrap's h-100 if needed */
    object-fit: cover;
}


/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
#features .card {
  text-align: center;
}
#features .card-title {
  font-size: 1.3rem;
  margin-top: 1rem;
}

/* Progress Bars */
.progress {
  height: 1.5rem;
  font-size: 0.85rem;
  border-radius: var(--border-radius-sm);
  background-color: #e9ecef;
}
.progress-bar {
  background-color: var(--color-primary);
  font-weight: 700;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

/*--------------------------------------------------------------
# Clientele Section
--------------------------------------------------------------*/
#clientele img {
  max-height: 60px; /* Control logo height */
  width: auto;
  margin: 0 auto; /* Center logos */
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter var(--transition-speed) var(--transition-timing), opacity var(--transition-speed) var(--transition-timing);
}
#clientele img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
#testimonials .card {
  text-align: center;
}
#testimonials .card-body {
    padding: 2rem 1.5rem;
}
#testimonials .card img.rounded-circle {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--color-secondary);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
#testimonials .card-text {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-text-on-dark-bg); /* Ensure contrast */
  margin-bottom: 1rem;
}
#testimonials .blockquote-footer {
  color: var(--color-secondary);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 700;
}

/*--------------------------------------------------------------
# Customer Stories Section (Modals)
--------------------------------------------------------------*/
.modal-content {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.modal-header {
    background-color: var(--color-background-light);
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
}
.modal-header .modal-title {
    color: var(--color-primary);
    font-weight: 900;
}
.modal-body img.img-fluid {
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
}
.modal-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

/*--------------------------------------------------------------
# External Resources Section
--------------------------------------------------------------*/
#external-resources .card .btn-outline-secondary {
    color: var(--color-accent);
    border-color: var(--color-accent);
}
#external-resources .card .btn-outline-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-text-light);
}


/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
#contact .form-label {
  font-weight: 700;
  color: var(--color-text-darker);
  margin-bottom: 0.5rem;
}
#contact .form-control {
  border-radius: var(--border-radius-md);
  padding: 0.85rem 1rem; /* Enhanced padding */
  font-size: 1rem;
  border: 1px solid #ced4da;
  transition: border-color var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}
#contact .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.25rem rgba(42, 157, 143, 0.25); /* Using --color-primary with alpha */
}
#contact textarea.form-control {
    min-height: 150px;
}
#contact .btn-primary {
    min-width: 200px; /* Make button prominent */
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background-color: var(--color-text-darker); /* Darker than dark-bg for distinction */
  color: #adb5bd; /* Muted text */
  padding: var(--section-padding-y) 0;
  font-size: 0.9rem;
}
.footer h5 {
  color: var(--color-text-light);
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer p {
  color: #adb5bd;
  margin-bottom: 0.5rem;
}
.footer ul {
  list-style: none;
  padding-left: 0;
}
.footer ul li {
  margin-bottom: 0.5rem;
}
.footer a {
  color: var(--color-secondary);
  transition: color var(--transition-speed) var(--transition-timing), padding-left var(--transition-speed) var(--transition-timing);
}
.footer a:hover {
  color: var(--color-text-light);
  padding-left: 5px; /* Slight movement on hover */
}

.footer .social-links a {
  display: inline-block; /* Or block if you want them stacked */
  margin: 0 0.5rem;
  padding: 0.5rem 0; /* Add some padding for easier clicking */
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-secondary);
  text-decoration: none;
}
.footer .social-links a:hover {
  color: var(--color-text-light);
  text-decoration: underline;
}
.footer hr {
    border-color: rgba(255,255,255,0.1);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}
.footer .mt-3.mb-0 small {
    color: #888;
}

/*--------------------------------------------------------------
# Specific Page Styles
--------------------------------------------------------------*/

/* Success Page */
.success-page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background-color: var(--color-background-light);
}
.success-page-container h1 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.success-page-container p {
  font-size: 1.2rem;
  color: var(--color-text-dark);
  margin-bottom: 2rem;
}
.success-page-container .icon-success {
  font-size: 5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  /* You might use an SVG or a font icon here */
}


/* Privacy & Terms Pages */
.privacy-page-container,
.terms-page-container {
  padding-top: 100px; /* Avoid overlap with fixed header */
  padding-bottom: var(--section-padding-y);
}
.privacy-page-container h1,
.terms-page-container h1 {
    margin-bottom: 2rem;
    text-align: center;
}
.privacy-page-container h2, .privacy-page-container h3,
.terms-page-container h2, .terms-page-container h3 {
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.privacy-page-container p, .privacy-page-container li,
.terms-page-container p, .terms-page-container li {
    line-height: 1.8;
    color: #444;
}

/*--------------------------------------------------------------
# Animations & Transitions (AOS can enhance these)
--------------------------------------------------------------*/
[data-aos] {
  transition-property: transform, opacity; /* Default AOS properties */
}

/* Non-linear movement example for custom animations if needed with GSAP */
.gsap-animated-element {
    opacity: 0;
    transform: translateY(50px);
}

/*--------------------------------------------------------------
# Glassmorphism (Example - can be applied to modals or specific cards)
--------------------------------------------------------------*/
.glassmorphism-effect {
  background: rgba(255, 255, 255, 0.15); /* Adjust alpha for desired effect */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* For Safari */
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1); /* Subtle shadow */
}

/* Cookie Consent Popup (from HTML, slight refinement) */
#cookieConsentPopup {
    font-family: var(--font-secondary);
}
#cookieConsentPopup p {
    font-size: 0.9rem;
    line-height: 1.5;
}
#cookieAcceptButton {
    font-family: var(--font-primary);
    font-weight: 700;
    background-color: var(--color-primary);
    border: none;
    transition: background-color var(--transition-speed) var(--transition-timing);
}
#cookieAcceptButton:hover {
    background-color: var(--color-primary-darker);
}


/*--------------------------------------------------------------
# Responsive Adjustments (Bootstrap handles most, add specifics if needed)
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
  .navbar-nav {
    margin-top: 1rem;
    background-color: #fff; /* Add background for mobile menu */
    padding: 1rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-heavy);
  }
  .navbar .nav-link {
    padding: 0.75rem 0.5rem;
  }
  .hero-section h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .hero-section p.lead {
    font-size: 1rem;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 3rem 0;
  }
  .section-title {
    margin-bottom: 2.5rem;
  }
  h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  h2 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  #customer-stories .card-image {
    height: 200px; /* Adjust for smaller screens if horizontal layout stacks */
    border-bottom-left-radius: 0;
    border-top-right-radius: var(--border-radius-lg);
  }
  #customer-stories .card .col-lg-5.card-image,
  #customer-stories .card .col-lg-7 {
      flex: 0 0 100%;
      max-width: 100%;
  }
  .footer {
    text-align: center;
  }
  .footer .col-md-4 {
    margin-bottom: 2rem;
  }
  .footer .col-md-4:last-child {
    margin-bottom: 0;
  }
}