/* style.css */

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

  /* Color Palette - Split-Complementary inspired, Dark Theme Focused */
  --color-bg-dark-main: #1A1C1E; /* Main dark background */
  --color-bg-dark-header-footer: #121314; /* Slightly darker for header/footer */
  --color-bg-dark-card: #25282B; /* Background for cards on dark sections */

  --color-bg-light-accent1: #FDF6F0; /* Light bg for sections like Services (Orange tint) */
  --color-bg-light-accent2: #F0FDF6; /* Light bg for sections like Testimonials (Green tint) */
  --color-bg-light-generic: #FAFBFD; /* Generic light background for sections like Blog */

  --text-on-dark-primary: #FFFFFF; /* Main text on dark backgrounds */
  --text-on-dark-secondary: #E0E0E0;
  --text-on-dark-muted: #A0A4A8;   /* Muted text on dark backgrounds */

  --text-on-light-primary: #222222; /* Main text on light backgrounds */
  --text-on-light-secondary: #333333;
  --text-on-light-muted: #555555;   /* Muted text on light backgrounds */

  --accent-primary: #E07A5F;    /* Coral/Orange - Main Accent */
  --accent-secondary: #81B29A;  /* Muted Teal/Green - Secondary Accent */
  --accent-tertiary: #F4D35E;   /* Muted Yellow - Tertiary Accent */
  --accent-primary-rgb: 224, 122, 95; /* For RGBA box shadows */


  --brutalist-border-strong: 3px solid var(--accent-primary);
  --brutalist-border-subtle: 2px solid var(--accent-secondary);
  --brutalist-shadow-offset: 4px;

  --border-radius-sharp: 0; /* Brutalist */
  --border-radius-soft: 6px; /* Biomorphic touch */
  --border-radius-round: 50%;

  --transition-speed: 0.3s;
  --transition-easing: ease-in-out;
}

/*--------------------------------------------------------------
# Global Styles & Resets
--------------------------------------------------------------*/
body {
  font-family: var(--font-secondary);
  background-color: var(--color-bg-dark-main);
  color: var(--text-on-dark-secondary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 400; /* Archivo Black is inherently bold */
  margin-top: 0;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.hero-section h1, .hero-section .hero-title {
  color: var(--text-on-dark-primary) !important; /* STROGO: Text in hero section must be white */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}
.hero-section p.lead {
  color: var(--text-on-dark-secondary) !important; /* Ensure lead text is also light */
}


.section-title {
  font-size: 2.5rem;
  margin-bottom: 2.5rem !important;
  position: relative;
  padding-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title::after { /* Sketchy underline for titles */
  content: '';
  position: absolute;
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-primary);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Background image handling */
[style*="background-image"] {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Section Backgrounds & Text Colors */
.section-bg-dark {
  background-color: var(--color-bg-dark-main);
  color: var(--text-on-dark-secondary);
}
.section-bg-dark .section-title,
.section-bg-dark h1, .section-bg-dark h2, .section-bg-dark h3, .section-bg-dark h4, .section-bg-dark h5, .section-bg-dark h6 {
  color: var(--accent-primary);
}
.section-bg-dark .section-title::after {
  background: var(--accent-secondary);
}
.section-bg-dark p, .section-bg-dark li {
   color: var(--text-on-dark-secondary);
}

.section-bg-light,
.section-bg-accent-1,
.section-bg-accent-2 {
  color: var(--text-on-light-secondary);
}

.section-bg-light .section-title,
.section-bg-accent-1 .section-title,
.section-bg-accent-2 .section-title,
.section-bg-light h1, .section-bg-light h2, .section-bg-light h3, .section-bg-light h4, .section-bg-light h5, .section-bg-light h6,
.section-bg-accent-1 h1, .section-bg-accent-1 h2, .section-bg-accent-1 h3, .section-bg-accent-1 h4, .section-bg-accent-1 h5, .section-bg-accent-1 h6,
.section-bg-accent-2 h1, .section-bg-accent-2 h2, .section-bg-accent-2 h3, .section-bg-accent-2 h4, .section-bg-accent-2 h5, .section-bg-accent-2 h6 {
  color: var(--text-on-light-primary) !important;
  text-shadow: none;
}
.section-bg-light p, .section-bg-light li,
.section-bg-accent-1 p, .section-bg-accent-1 li,
.section-bg-accent-2 p, .section-bg-accent-2 li {
  color: var(--text-on-light-secondary) !important;
}


.section-bg-light { background-color: var(--color-bg-light-generic); }
.section-bg-accent-1 { background-color: var(--color-bg-light-accent1); }
.section-bg-accent-2 { background-color: var(--color-bg-light-accent2); }

/*--------------------------------------------------------------
# Buttons (Global)
--------------------------------------------------------------*/
.btn, button, input[type="submit"], input[type="button"] {
  font-family: var(--font-secondary);
  font-weight: 700;
  padding: 12px 30px;
  border-radius: var(--border-radius-sharp);
  transition: all var(--transition-speed) var(--transition-easing);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.5;
}

.btn-primary.custom-btn,
.btn-primary {
  background-color: var(--accent-primary);
  color: var(--text-on-dark-primary);
  border-color: var(--accent-primary);
  box-shadow: var(--brutalist-shadow-offset) var(--brutalist-shadow-offset) 0px var(--accent-secondary);
}

.btn-primary.custom-btn:hover,
.btn-primary:hover {
  background-color: var(--accent-secondary);
  color: var(--text-on-dark-primary);
  border-color: var(--accent-secondary);
  box-shadow: calc(var(--brutalist-shadow-offset) - 2px) calc(var(--brutalist-shadow-offset) - 2px) 0px var(--accent-primary);
  transform: translate(2px, 2px);
}

.btn-outline-primary.custom-btn-outline {
  color: var(--text-on-light-primary);
  border-color: var(--accent-primary);
  background-color: transparent;
}

.btn-outline-primary.custom-btn-outline:hover {
  background-color: var(--accent-primary);
  color: var(--text-on-dark-primary);
}

.btn-outline-light.custom-btn-outline-dark {
  color: var(--text-on-dark-primary);
  border-color: var(--accent-secondary);
}
.btn-outline-light.custom-btn-outline-dark:hover {
  background-color: var(--accent-secondary);
  color: var(--text-on-dark-primary);
}

.disabled-link, .disabled-link:hover {
  opacity: 0.6;
  cursor: not-allowed !important;
  background-color: var(--text-on-light-muted) !important;
  border-color: var(--text-on-light-muted) !important;
  color: var(--text-on-light-primary) !important;
  box-shadow: none !important;
  transform: none !important;
}

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
.bg-dark-brutalist {
  background-color: var(--color-bg-dark-header-footer) !important;
  border-bottom: var(--brutalist-border-strong);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-brand {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  color: var(--accent-primary) !important;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--text-on-dark-secondary);
  font-family: var(--font-secondary);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: var(--border-radius-soft);
  transition: color var(--transition-speed) var(--transition-easing), background-color var(--transition-speed) var(--transition-easing);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--accent-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.navbar-toggler {
  border-color: var(--accent-secondary) !important;
}
.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(129, 178, 154, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  min-height: 80vh;
  padding: 60px 0;
  position: relative;
}

.hero-section .hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
}
.hero-section .lead {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/*--------------------------------------------------------------
# Cards
--------------------------------------------------------------*/
.card {
  border: none;
  border-radius: var(--border-radius-sharp);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform var(--transition-speed) var(--transition-easing), box-shadow var(--transition-speed) var(--transition-easing);
  background-color: var(--color-bg-light-generic);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%; /* For uniform card height in rows */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.15);
}

.section-bg-dark .card {
  background-color: var(--color-bg-dark-card);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
.section-bg-dark .card:hover {
   box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.section-bg-dark .card .card-title,
.section-bg-dark .card h5 {
  color: var(--accent-secondary);
}
.section-bg-dark .card .card-text,
.section-bg-dark .card p {
  color: var(--text-on-dark-muted);
}
.dark-card-content .card-title, .dark-card-content h5 {
   color: var(--accent-secondary) !important;
}
.dark-card-content .card-text, .dark-card-content p {
   color: var(--text-on-dark-muted) !important;
}


.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 1rem;
  border-top-left-radius: var(--border-radius-sharp);
  border-top-right-radius: var(--border-radius-sharp);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) var(--transition-easing);
}

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

.card-body {
  padding: 1.5rem;
  width:100%;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Allows card body to fill height */
}
.card-body .btn {
    margin-top: auto; /* Pushes button to bottom if card heights are same */
}

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

.card-text {
  font-size: 0.95rem;
  color: var(--text-on-light-secondary);
  margin-bottom: 1rem;
  flex-grow: 1; /* Allows text to take available space */
}

.brutalist-card {
  border: var(--brutalist-border-strong);
  box-shadow: var(--brutalist-shadow-offset) var(--brutalist-shadow-offset) 0px var(--accent-secondary);
}
.brutalist-card:hover {
  box-shadow: calc(var(--brutalist-shadow-offset) - 2px) calc(var(--brutalist-shadow-offset) - 2px) 0px var(--accent-primary);
  transform: translate(2px, 2px) translateY(-5px);
}

.brutalist-border { /* For images directly styled with brutalist border */
  border: var(--brutalist-border-strong) !important;
  padding: 5px;
  background-color: var(--accent-secondary);
  box-shadow: var(--brutalist-shadow-offset) var(--brutalist-shadow-offset) 0 var(--accent-primary);
}
img.brutalist-border {
    border-radius: var(--border-radius-sharp);
}


/*--------------------------------------------------------------
# Timeline (Services Section)
--------------------------------------------------------------*/
.timeline-consultation {
  position: relative;
  padding: 20px 0;
}
.timeline-consultation::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-secondary);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 60px;
}
.timeline-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: var(--accent-primary);
  color: var(--text-on-dark-primary);
  border-radius: var(--border-radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--color-bg-light-accent1);
  z-index: 1;
  box-shadow: 0 0 0 3px var(--accent-primary); /* Outer ring to make it pop */
}
.timeline-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-on-dark-primary);
}
.timeline-content.card {
  margin-left: 10px;
  border: 2px solid var(--accent-secondary);
  background-color: #fff;
  box-shadow: 3px 3px 0 var(--accent-primary);
}
.timeline-content .card-title {
  color: var(--text-on-light-primary) !important;
}
.timeline-content p {
  color: var(--text-on-light-secondary) !important;
}

@media (min-width: 768px) {
  .timeline-consultation::before {
    left: 50%;
    margin-left: -2px;
  }
  .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 80px;
  }
  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 80px;
    padding-right: 0;
  }
  .timeline-icon {
    left: calc(50% - 20px);
  }
  .timeline-content.card {
    margin-left: 0;
  }
}


/*--------------------------------------------------------------
# Testimonials Carousel
--------------------------------------------------------------*/
.testimonial-card {
  background-color: var(--color-bg-light-generic);
  padding: 2rem;
  border: var(--brutalist-border-subtle);
  border-radius: var(--border-radius-soft);
}
.testimonial-card img.rounded-circle {
  border: 4px solid var(--accent-primary);
}
.testimonial-card .lead {
  font-style: italic;
  color: var(--text-on-light-secondary) !important;
}
.testimonial-card h5 {
  color: var(--text-on-light-primary) !important;
}
.testimonial-card p.text-muted {
  color: var(--text-on-light-muted) !important;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(var(--accent-primary-rgb), 0.8);
  border-radius: var(--border-radius-sharp);
  padding: 10px;
  width: 30px;
  height: 30px;
  background-size: 60% 60%;
}
.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}
.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 16 16'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}


/*--------------------------------------------------------------
# Statistics Section
--------------------------------------------------------------*/
#statistics .stat-item .stat-icon svg {
  stroke: var(--accent-secondary);
  animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
#statistics .stat-number {
  font-family: var(--font-primary);
  color: var(--text-on-dark-primary);
}
#statistics .stat-label {
  color: var(--text-on-dark-muted);
  font-size: 1rem;
}

/*--------------------------------------------------------------
# External Resources List Group
--------------------------------------------------------------*/
.external-resource-item {
  background-color: var(--color-bg-dark-card);
  border: 1px solid var(--accent-secondary);
  border-radius: var(--border-radius-sharp);
  margin-bottom: 0.5rem;
  padding: 1rem 1.25rem;
  transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease, border-left-color var(--transition-speed) ease;
}
.external-resource-item h5 {
  color: var(--accent-primary);
  margin-bottom: 0.25rem !important;
}
.external-resource-item p, .external-resource-item small {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
}
.external-resource-item small.text-muted {
  font-size: 0.8rem;
}
.external-resource-item:hover {
  background-color: #303438; /* Slightly lighter dark card */
  transform: translateX(5px);
  border-left: 4px solid var(--accent-primary);
}


/*--------------------------------------------------------------
# Forms (Contact Form)
--------------------------------------------------------------*/
.brutalist-form .form-label {
  font-weight: 700;
  color: var(--text-on-light-primary);
  margin-bottom: 0.5rem;
}
.brutalist-form .form-control {
  background-color: var(--color-bg-light-generic);
  border: 2px solid var(--text-on-light-muted);
  border-radius: var(--border-radius-sharp);
  padding: 10px 15px;
  color: var(--text-on-light-primary);
  box-shadow: none;
  transition: border-color var(--transition-speed) ease;
}
.brutalist-form .form-control:focus {
  border-color: var(--accent-primary);
  background-color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(var(--accent-primary-rgb), 0.25);
}
.brutalist-form .form-control::placeholder {
  color: var(--text-on-light-muted);
  opacity: 0.7;
}
.section-bg-dark .brutalist-form .form-label {
  color: var(--text-on-dark-secondary);
}
.section-bg-dark .brutalist-form .form-control {
  background-color: var(--color-bg-dark-card);
  border-color: var(--text-on-dark-muted);
  color: var(--text-on-dark-primary);
}
.section-bg-dark .brutalist-form .form-control:focus {
  border-color: var(--accent-primary);
  background-color: #303438;
}
.section-bg-dark .brutalist-form .form-control::placeholder {
  color: var(--text-on-dark-muted);
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer.bg-dark-brutalist {
  background-color: var(--color-bg-dark-header-footer) !important;
  color: var(--text-on-dark-muted);
  border-top: var(--brutalist-border-strong);
  padding-top: 3rem;
  padding-bottom: 2rem;
}
footer h5, footer h6 {
  font-family: var(--font-primary);
  color: var(--accent-primary);
  margin-bottom: 1rem;
}
footer p.small {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
}
footer .list-unstyled li {
  margin-bottom: 0.5rem;
}
footer .footer-link {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  transition: color var(--transition-speed) ease, padding-left var(--transition-speed) ease;
  position: relative;
  display: inline-block; /* For before element positioning */
}
footer .footer-link:hover {
  color: var(--accent-primary);
  padding-left: 8px;
}
footer .footer-link:hover::before {
  content: '>'; /* Simple drawn effect */
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: var(--accent-secondary);
  animation: sketchArrow 0.3s ease-out forwards;
}

@keyframes sketchArrow {
  from { opacity: 0; left: -5px; }
  to { opacity: 1; left: 0; }
}

/*--------------------------------------------------------------
# Specific Page Styles
--------------------------------------------------------------*/
.success-page-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 20px;
  background-color: var(--color-bg-dark-main);
  color: var(--text-on-dark-primary);
}
.success-page-container h1 {
  color: var(--accent-secondary);
  font-size: 3rem;
  margin-bottom: 1rem;
}
.success-page-container p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-on-dark-secondary);
}
.success-page-container .btn {
  margin-top: 1rem;
}
.success-page-container .icon-success svg {
  width: 80px;
  height: 80px;
  stroke: var(--accent-secondary);
  margin-bottom: 1.5rem;
  animation: fadeInScale 0.5s ease-out forwards;
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.privacy-page-container,
.terms-page-container {
  padding-top: 100px;
  padding-bottom: 40px;
  background-color: var(--color-bg-light-generic);
  color: var(--text-on-light-primary);
}
.privacy-page-container .container,
.terms-page-container .container {
    max-width: 900px; /* Better readability for text heavy pages */
}
.privacy-page-container h1, .privacy-page-container h2,
.terms-page-container h1, .terms-page-container h2 {
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}
.privacy-page-container h1, .terms-page-container h1 {
    font-size: 2.5rem;
    text-align: center;
    border-bottom: 2px solid var(--accent-secondary);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}
.privacy-page-container h2, .terms-page-container h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
}
.privacy-page-container p, .privacy-page-container li,
.terms-page-container p, .terms-page-container li {
  color: var(--text-on-light-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}
.privacy-page-container ul, .terms-page-container ul {
    padding-left: 20px;
}
.privacy-page-container ul li, .terms-page-container ul li {
    list-style-type: disc;
}


/*--------------------------------------------------------------
# Media Queries
--------------------------------------------------------------*/
@media (max-width: 767px) {
  .section-title {
    font-size: 2rem;
  }
  .hero-section {
    min-height: auto;
    padding: 80px 0;
  }
  .timeline-consultation::before {
    left: 20px;
  }
  .timeline-item, .timeline-item:nth-child(even) {
    width: 100%;
    padding-left: 60px;
    padding-right: 0;
    margin-left: 0;
  }
  .timeline-icon {
    left: 0;
  }
}