/*
================================================================
Metaphrase Custom Stylesheet (V3 - Final Branding)
================================================================
*/

/* 1. Brand Color & Font Variables
--------------------------------------------------------------*/
:root {
  --primary-color: #357ABD;       /* Metaphrase Blue */
  --primary-color-hover: #2a629a; /* A slightly darker blue for hover */
  --contrast-color: #ffffff;      /* White for text on dark buttons */
  --text-color: #212529;           /* Neutral Dark for Text */
  --light-bg-color: #F8F9FA;      /* Accent Grey for Backgrounds */
  --heading-font: 'Poppins', sans-serif;
  --body-font: 'Poppins', sans-serif;
}


/* 2. Global Styles & Typography
--------------------------------------------------------------*/


body {
  font-family: var(--body-font);
  color: var(--text-color);
}

a {
  color: var(--primary-color);
}

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

h1, h2, h3, h4, h5, h6,
.sitename, .hero-title, .section-title h2,
.about h3, .services h3, .portfolio-content h3,
.pricing-card h3, .team-content h4, .faq-header h3 {
  font-family: var(--heading-font);
}

.logo .sitename + span,
.section-title h2::after {
  background: var(--primary-color);
}

.light-background {
  background-color: var(--light-bg-color);
}


/* 3. Comprehensive Button Overrides
--------------------------------------------------------------*/
/* Targeting all primary action buttons across the template */
.btn-primary,
.btn-getstarted,
.about .content .read-more,
.services-alt .content-block .button-wrapper .btn,
.call-to-action-2 .cta-action .btn-primary,
.contact .form-wrapper button,
.portfolio .portfolio-filters li.filter-active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--contrast-color) !important;
}

/* Targeting all button hover states */
.btn-primary:hover,
.btn-getstarted:hover,
.about .content .read-more:hover,
.services-alt .content-block .button-wrapper .btn:hover,
.call-to-action-2 .cta-action .btn-primary:hover,
.contact .form-wrapper button:hover {
  background-color: var(--primary-color-hover) !important;
  border-color: var(--primary-color-hover) !important;
  color: var(--contrast-color) !important; /* Ensures text stays white on hover */
}

/* Special case for outline buttons on hover */
.call-to-action-2 .cta-action .btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.call-to-action-2 .cta-action .btn-outline-primary:hover {
  background-color: var(--primary-color) !important;
  color: var(--contrast-color) !important;
}


/* 4. Other Specific Elements
--------------------------------------------------------------*/
.navmenu a:hover,
.navmenu .active {
  color: var(--primary-color);
}

.feature-box .feature-icon i,
.service-item .service-icon,
.about ul li i,
.info-card .icon-box,
.call-to-action-2 .cta-features .feature-item i {
  color: var(--primary-color);
}

/* Style for simple ICONS (like the bullet points in the About section) */
.about ul li i,
.call-to-action-2 .cta-features .feature-item i {
  color: var(--primary-color);
  background-color: transparent !important; /* This removes the background */
}

  
.scroll-top,
.pricing-card.popular {
  background: var(--primary-color);
}

.pricing .pricing-card.popular .btn-light {
    color: var(--primary-color);
}

/* 5. Logo Size Adjustment (Desktop & Mobile)
--------------------------------------------------------------*/

/* --- Default size for Desktops --- */
.header .logo img {
  height: 80px; /* Adjust this for the large screen view */
  width: auto;
  max-height: none;
}

/* --- Smaller size for Mobile phones --- */
/* This rule applies only to screens 991px wide or smaller */
@media (max-width: 991px) {
  .header .logo img {
    height: 80px; /* Adjust this for the small screen view */
  }
}

.hero .feature-boxes .feature-box .feature-icon i {
  background: none;
}


  /* 7. Custom Border Radius for About Us Images
--------------------------------------------------------------*/
.about .about-images img {
  border-radius: 68px !important;
}


/* 8. Vertically Align "About Us" Content
--------------------------------------------------------------*/
#about .row {
  align-items: center !important;
}

  /* 11. "How We Work" Section Color Override
--------------------------------------------------------------*/
.how-we-work {
  --accent-color: var(--primary-color) !important;
}

/* 12. "Industries We Serve" Pill Styling
--------------------------------------------------------------*/
.industries-list {
  list-style: none; /* Removes the default bullet points */
  padding: 0;
  margin-top: 1rem;
  display: flex; /* Lines up the items */
  flex-wrap: wrap; /* Allows items to wrap to the next line */
  gap: 10px; /* Creates space between the pills */
}

.industries-list li {
  padding: 8px 15px;
  background-color: color-mix(in srgb, var(--primary-color), transparent 90%); /* Light blue background */
  color: var(--primary-color); /* Darker blue text */
  border-radius: 20px; /* Makes the corners fully rounded */
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease; /* Smooth transition for the hover effect */
}

/* The Interactive Hover Effect */
.industries-list li:hover {
  background-color: var(--primary-color); /* Solid blue background on hover */
  color: var(--contrast-color); /* White text on hover */
  transform: translateY(-2px); /* Slight lift effect */
}

/* 13. Vertically Align "Why Choose Us" Content
--------------------------------------------------------------*/
#services-alt .row {
  align-items: center !important;
}

/* 15. Logo Slogan Styling (Pill Style)
--------------------------------------------------------------*/
.logo-slogan {
  /* Spacing */
  margin-left: 15px;

  /* Pill Shape & Colors */
  background-color: color-mix(in srgb, var(--primary-color), transparent 90%);
  padding: 6px 12px;
  border-radius: 20px;

  /* Text Styling */
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 500;
  font-style: normal; /* Removes the previous italic style */
  letter-spacing: 0.5px; /* Adds a little breathing room to the text */
  white-space: nowrap; /* Ensures the text stays on one line */
}

/* Hide the slogan on mobile to prevent clutter */
@media (max-width: 991px) {
  .logo-slogan {
    display: none;
  }
}

/* --- 10. Testimonials Styling (Final Equal Height Fix) --- */

/* 1. Force the swiper wrapper to allow stretching */
.testimonials .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

/* 2. Make each slide a flex container */
.testimonials .swiper-slide {
  height: auto !important;
  display: flex;
  flex-direction: column;
}

/* 3. Force the card to fill 100% of the slide height */
.testimonial-card {
  display: flex;
  flex-direction: column;
  flex: 1; /* This makes all cards the same height */
  width: 100%;
  padding: 30px;
  background: #fff;
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  position: relative;
  border: 1px solid transparent;
  transition: 0.3s;
}

/* 4. Keep the content at the top and push profile/footer to the bottom */
.testimonial-content {
  flex-grow: 1; /* This pushes the rest to the bottom */
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 20px;
  color: #444;
}

/* 5. Style the grey profile box */
.testimonial-profile {
  background: #f4f4f4;
  padding: 15px;
  margin-top: 20px;
  border-radius: 5px;
}

.testimonial-profile h3 {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.testimonial-profile h4 {
  font-size: 14px;
  color: #777;
  margin: 5px 0 0 0;
}

/* 6. LinkedIn Link at the very bottom */
.testimonial-footer {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  text-align: right;
}

.testimonial-footer a {
  color: #0077b5;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

/* 7. Navigation Buttons styling */
.testimonials .swiper-button-next,
.testimonials .swiper-button-prev {
  color: #0077b5;
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.testimonials .swiper-button-next:after,
.testimonials .swiper-button-prev:after {
  font-size: 16px;
  font-weight: bold;
}

/* --- 12. Footer Styling --- */
.footer {
  color: #444;
  background-color: #f9f9f9;
  font-size: 14px;
  padding-bottom: 50px;
}

.footer .footer-top {
  padding-top: 50px;
  border-top: 1px solid #e9e9e9;
}

.footer .sitename {
  color: #0077b5; /* LinkedIn Blue */
  font-size: 24px;
  font-weight: 700;
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
  color: #111;
}

.footer .footer-links ul i {
  color: #0077b5;
}

.footer .footer-links ul a:hover {
  color: #0077b5;
}

.footer .social-links a {
  background: #0077b5;
  color: #fff;
  transition: 0.3s;
}

.footer .social-links a:hover {
  background: #005582;
}


/* --- 13. Enhanced Footer Branding --- */

/* Make the footer logo larger and clearer */
.footer-logo {
  max-height: 80px !important; /* Increased from 50px */
  width: auto;
  margin-bottom: 15px;
}

/* Polished styling for company registration text */
.company-reg {
  font-size: 13px;
  line-height: 1.6;
  color: #6c757d;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  font-style: italic;
}

/* Ensure contact info stands out */
.footer-contact strong {
  color: #0077b5; /* LinkedIn Blue for emphasis */
}

/* --- 14. Final Balanced 4-Column Footer --- */

.footer {
  padding: 60px 0 40px 0 !important;
  background-color: #fcfcfc;
}

/* Force equal height and bottom alignment for all 4 columns */
.footer-columns-container {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch; 
}

/* Universal Font Size for perfect consistency */
.footer p, 
.footer ul li a, 
.footer-contact-col p {
  font-size: 16px !important; 
  line-height: 1.6 !important;
  color: #444 !important;
  margin: 0;
}

.footer h4 {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #0077b5 !important;
  margin-bottom: 25px !important;
  letter-spacing: 1px;
}

.footer-logo {
  max-height: 80px !important;
  margin-bottom: 20px;
}

/* Registration text styling */
.company-reg {
  font-style: italic;
  color: #666 !important;
  padding-right: 20px;
}

/* Vertical Stretching for Link Columns */
.footer-links-col {
  display: flex;
  flex-direction: column;
}

.footer-links-col ul {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between; /* This forces the bottom link to align with the bottom of the logo/reg text */
  padding-bottom: 5px;
}

.footer-links-col ul li {
  padding: 2px 0;
}

/* Right Column Contact & Social Alignment */
.footer-contact-col {
  display: flex;
  flex-direction: column;
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.footer .social-links a {
  width: 38px !important;
  height: 38px !important;
  background-color: #0077b5 !important;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  margin-right: 12px !important;
  transition: 0.3s;
}

.footer .social-links a:hover {
  background-color: #005582 !important;
}

.footer .copyright {
  border-top: 1px solid #eee;
  padding-top: 30px;
  margin-top: 40px !important;
}

/* Styling for the File Upload input */
input[type="file"].form-control {
  padding: 10px;
  background-color: #fff;
  border: 1px solid #dee2e6;
  font-size: 14px;
}

input[type="file"]::file-selector-button {
  background-color: #0077b5;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 15px;
  margin-right: 10px;
  cursor: pointer;
  transition: 0.3s;
}

input[type="file"]::file-selector-button:hover {
  background-color: #005582;
}


/* --- 15. Aesthetic Contact Form Polishing (Restored Field Boxes) --- */

#contact .form-wrapper {
  padding: 40px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: 15px;
}

/* Restoring the visible field boxes */
#contact .php-email-form .form-control,
#contact .php-email-form .form-select {
  border: 1px solid #ced4da !important; /* Standard visible border */
  border-radius: 8px !important;
  padding: 12px 15px !important;
  font-size: 15px !important;
  background-color: #ffffff !important;
  transition: all 0.3s ease;
  display: block;
  width: 100%;
}

/* Hover & Focus state for better interactivity */
#contact .php-email-form .form-control:focus,
#contact .php-email-form .form-select:focus {
  border-color: #0077b5 !important; /* Brand Blue */
  box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.1) !important;
  outline: none;
}

/* Increase spacing between rows */
#contact .php-email-form .form-group {
  margin-bottom: 20px;
}

/* Polishing the File Upload area */
.file-upload-wrapper {
  margin-top: 10px;
  padding: 25px;
  border: 2px dashed #0077b5; /* Using your brand blue for the dash */
  border-radius: 10px;
  background-color: #f8fbff; /* Very light blue tint */
  text-align: center;
  transition: 0.3s;
}

.file-upload-wrapper:hover {
  background-color: #f0f7ff;
}

#file-upload-label {
  display: block;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  font-size: 16px;
}

/* Professional Submit Button */
#contact .php-email-form button[type="submit"] {
  background: #0077b5;
  border: 0;
  padding: 14px 50px;
  color: #fff;
  transition: 0.4s;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
  margin-top: 10px;
}

#contact .php-email-form button[type="submit"]:hover {
  background: #005582;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
}

/* --- 16. Privacy Page Aesthetics & Spacing --- */

.page-title-section {
  padding: 120px 0 60px 0;
  background: linear-gradient(135deg, #0077b5 0%, #005582 100%);
  color: white;
  text-align: center;
}

.page-title-section h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-title-section p {
  font-size: 18px;
  opacity: 0.9;
}

.privacy-text-wrapper {
  padding-top: 40px;
}

.policy-card {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.policy-item {
  margin-bottom: 35px;
  line-height: 1.8 !important; /* Fixes the cluttered text problem */
}

.policy-item h3 {
  font-size: 22px;
  font-weight: 700;
  color: #0077b5;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.policy-item h3 i {
  margin-right: 12px;
  font-size: 24px;
}

.policy-item p, .policy-item li {
  font-size: 16px;
  color: #444;
  margin-bottom: 10px;
}

.policy-item ul {
  padding-left: 20px;
}

/* Fix for header background on white pages */
.privacy-page .header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* --- 17. Privacy Hero Title Styling --- */

/* Fix the title color and spacing in the blue hero section */
.page-title-section h1 {
  color: #ffffff !important; /* Forces the text to be white */
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  padding-top: 40px; /* Adds space so it's not hidden under the header */
}

.page-title-section p {
  color: rgba(255, 255, 255, 0.9) !important; /* Semi-transparent white for the subtitle */
  font-size: 20px;
  letter-spacing: 1px;
}

/* Ensure the hero section has enough breathing room on all sides */
.page-title-section {
  padding: 160px 0 80px 0 !important; /* Increased top padding for the fixed header */
  background: linear-gradient(135deg, #0077b5 0%, #005582 100%) !important;
}

/* --- 18. Services Page Specific Styling --- */

.service-detail-card {
  padding: 40px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  border: 1px solid #eee;
  transition: 0.3s ease;
}

.service-detail-card:hover {
  transform: translateY(-5px);
  border-color: #0077b5;
  box-shadow: 0 10px 40px rgba(0, 119, 181, 0.1);
}

.service-detail-card .icon-box {
  width: 60px;
  height: 60px;
  background: rgba(0, 119, 181, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-detail-card .icon-box i {
  font-size: 32px;
  color: #0077b5;
}

.service-detail-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  margin-bottom: 15px;
}

.service-detail-card p {
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
}

/* Language & Tag Badges */
.language-tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.language-tags li {
  background: #0077b5;
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
}

.expertise-list span {
  display: block;
  font-size: 15px;
  color: #444;
  margin-bottom: 8px;
  font-weight: 500;
}

.expertise-list i {
  color: #0077b5;
  font-size: 18px;
}

/* Commitment Banner Styling */
.commitment-banner {
  padding: 80px 0;
  margin-top: 60px;
}

.commitment-banner h2 {
  font-size: 36px;
  font-weight: 700;
  color: #0077b5;
  margin-bottom: 20px;
}

.commitment-banner p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}


/* --- 19. Services SEO Content & Button Styling --- */

.content-essay {
  line-height: 2 !important;
  color: #444;
}

.content-essay h2, .content-essay h3 {
  color: #0077b5;
  font-weight: 700;
}

.cta-box {
  background: #f8fbff;
  border: 1px solid #e0eefd;
  border-radius: 15px;
}

/* Professional Padded Quote Button */
.btn-quote-aesthetic {
  display: inline-block;
  background-color: #0077b5;
  color: #ffffff !important;
  padding: 15px 40px !important; /* Fixed padding for proper button look */
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 119, 181, 0.2);
  margin-top: 20px;
}

.btn-quote-aesthetic:hover {
  background-color: #005582;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 119, 181, 0.3);
}

/* Ensure the header on this page behaves correctly */
.services-page .header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* --- 20. Header Consistency Fix for Sub-Pages --- */

/* Force white background on sub-pages so logo/menu are visible */
.index-page:not(.home) #header {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #eee;
}

/* Style the slogan background as seen in your screenshots */
.logo-slogan {
  background: #e7f3ff; /* Light blue background */
  color: #0077b5;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin-left: 15px;
  display: inline-block;
}

/* Ensure the header navigation text is dark blue on white bg */
.index-page:not(.home) .navmenu a {
  color: #444 !important;
}

.index-page:not(.home) .navmenu a:hover, 
.index-page:not(.home) .navmenu .active {
  color: #0077b5 !important;
}

/* FAQ Accordion Styling */
.faq-accordion .faq-item {
  background: #fff;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #eee;
  padding: 15px 20px;
}

.faq-accordion .faq-item h3 {
  font-size: 18px;
  color: #0077b5;
  cursor: pointer;
  margin-bottom: 0;
}

.faq-accordion .faq-content {
  padding-top: 10px;
  color: #555;
  display: none; /* Controlled by main.js or Bootstrap */
}

/* Show content when active */
.faq-item.faq-active .faq-content {
  display: block;
}

/* --- 21. FAQ & Contact Page Styling --- */

/* Fix white text for the Blue Card */
.faq-contact-card {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  padding: 40px;
  border-radius: 15px;
}

.faq-contact-card .card-content h3, 
.faq-contact-card .card-content p {
  color: #ffffff !important;
}

/* Restored Accordion Functionality */
.faq-accordion .faq-item {
  background-color: #ffffff;
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
}

.faq-accordion .faq-header {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-accordion .faq-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

.faq-accordion .faq-content {
  padding: 0 25px 25px 25px;
  display: none; /* Controlled by main.js */
  color: var(--text-color);
}

.faq-item.faq-active .faq-content {
  display: block;
}

/* Polishing File Upload Button */
.file-upload-wrapper {
  margin-top: 10px;
  padding: 30px;
  border: 2px dashed var(--primary-color);
  border-radius: 12px;
  background-color: #f8fbff;
  text-align: center;
}

input[type="file"]::file-selector-button {
  background-color: var(--primary-color) !important;
  color: white !important;
  border-radius: 50px !important;
  padding: 8px 25px !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer;
}

/* Ensure FAQ content is clickable and toggles correctly */
.faq-accordion .faq-content {
  display: none;
  padding: 0 25px 25px 25px;
  color: var(--text-color);
}

.faq-item.faq-active .faq-content {
  display: block;
}

/* Force header visibility on sub-pages */
.index-page.home #header {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
