/*
Theme Name:  India Sourcing Agent
Theme URI:   https://www.indiasourcingagent.com
Author:      Amazin Insight Pvt. Ltd.
Author URI:  https://www.indiasourcingagent.com
Description: Official WordPress theme for India Sourcing Agent – a premier sourcing and procurement service provider connecting international buyers with quality Indian manufacturers.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: india-sourcing-agent
Tags:        one-page, business, sourcing, bootstrap
*/

/* ============================================================
   CSS Custom Properties (Brand Tokens)
   ============================================================ */
:root {
  --primary: #1e8449;
  --primary-dark: #196f3d;
  --primary-light: #27ae60;
  --secondary: #f39c12;
  --dark: #2c3e50;
  --light: #ecf0f1;
  --gray: #95a5a6;
  --white: #ffffff;
  --black: #000000;
}

/* ============================================================
   Base
   ============================================================ */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark);
}

/* ============================================================
   Utility Classes
   ============================================================ */
.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

.min-vh-75 {
  min-height: 75vh;
}

.object-fit-cover {
  object-fit: cover;
}

.z-index-1 {
  z-index: 1;
}

/* ============================================================
   Bootstrap Overrides – Brand Colours
   ============================================================ */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

/* ============================================================
   Top Bar
   ============================================================ */
.top-bar {
  font-size: 0.85rem;
}

.top-bar a:hover {
  opacity: 0.8;
}

.top-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  margin-left: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.top-social-icon:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding-left: 1rem;
  padding-right: 1rem;
}

.navbar-nav .nav-link:hover {
  color: var(--primary);
}

/* ============================================================
   Hero Section – Video Background
   ============================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  height: 100vh;
  max-height: 800px;
  min-height: 500px;
  background: none;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.5;
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
}

.video-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

/* ============================================================
   Hero Slider
   ============================================================ */
.hero-slider-container {
  position: relative;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-slide-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background: black;
  color: white;
}

.hero-slide-caption h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.hero-slide-caption p {
  font-size: 0.9rem;
  margin-bottom: 0;
  opacity: 0.9;
}

.carousel-indicators {
  bottom: -40px;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 5px;
}

.carousel-indicators button.active {
  background-color: var(--white);
}

.carousel-control-prev,
.carousel-control-next {
  width: 10%;
  opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
  background-color: black;
}

/* ============================================================
   Background Gradient (Global Reach overlay)
   ============================================================ */
.bg-gradient-dark {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  height: 50%;
  width: 100%;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================================
   Form Controls
   ============================================================ */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.25rem rgba(39, 174, 96, 0.25);
}

/* ============================================================
   Certifications Section
   ============================================================ */
.certificate-card {
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.certificate-icon {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificate-actions {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.certificate-card:hover .certificate-actions {
  opacity: 1;
}

/* ============================================================
   Certificate Modals
   ============================================================ */
.modal-body img {
  max-height: 70vh;
  object-fit: contain;
}

.modal-dialog {
  max-width: 800px;
}

/* ============================================================
   Social Icon Variants
   ============================================================ */
.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--light);
  color: var(--dark);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.social-icon-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-footer:hover {
  background-color: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
}

.social-icon-footer-dark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--light);
  color: var(--dark);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon-footer-dark:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* ============================================================
   WhatsApp Chat Button
   ============================================================ */
.whatsapp-chat {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  color: var(--white);
  font-size: 30px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.whatsapp-button:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  color: var(--white);
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--white);
  color: var(--dark);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.whatsapp-chat:hover .whatsapp-tooltip {
  opacity: 1;
  right: 70px;
}

/* ============================================================
   Responsive Adjustments
   ============================================================ */
@media (max-width: 767.98px) {
  .display-4 {
    font-size: 2.5rem;
  }

  .display-5 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1rem;
  }

  .certificate-card {
    margin-bottom: 20px;
  }

  .modal-dialog {
    max-width: 95%;
    margin: 10px auto;
  }

  .hero-section {
    height: auto;
    min-height: 500px;
  }
}

/* ============================================================
   Contact Form 7 – Bootstrap-matching styles
   Mirrors the exact look of the original index.html form
   ============================================================ */

/* Remove CF7's default <p> margin so we control spacing */
.wpcf7 form p {
  margin: 0;
}

/* Grid wrapper — mirrors <div class="row g-3"> */
.wpcf7-form .cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 575.98px) {
  .wpcf7-form .cf7-row {
    grid-template-columns: 1fr;
  }
}

.wpcf7-form .cf7-col-full {
  grid-column: 1 / -1;
  /* spans both columns */
}

/* Labels — mirrors .form-label.text-dark */
.wpcf7-form label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
}

/* All text inputs, email, tel, url — mirrors .form-control */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea,
.wpcf7-form select {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dark);
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  appearance: none;
  -webkit-appearance: none;
}

/* Focus state — mirrors Bootstrap + primary green */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  border-color: var(--primary-light);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(39, 174, 96, 0.25);
}

/* Select dropdown arrow — mirrors Bootstrap .form-select */
.wpcf7-form select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.25rem;
}

/* Textarea — matches rows="4" height */
.wpcf7-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Form spans wrap — remove default display:block clipping */
.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Submit button — mirrors .btn.btn-primary.w-100 */
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  cursor: pointer;
  background-color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 0.375rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  appearance: button;
  -webkit-appearance: button;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.wpcf7-form input[type="submit"]:disabled,
.wpcf7-form .wpcf7-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Inline validation error — mirrors Bootstrap .is-invalid feedback */
.wpcf7-not-valid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.18) !important;
  background-color: #fff8f8 !important;
}

.wpcf7-not-valid-tip {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #dc3545;
  animation: cf7-tip-in 0.2s ease;
}

.wpcf7-not-valid-tip::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f071";
  /* fa-triangle-exclamation */
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ── Slide-up keyframe shared by all response messages ── */
@keyframes cf7-slide-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cf7-tip-in {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Base response output ── */
.wpcf7-response-output {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.925rem;
  font-weight: 500;
  border: none !important;
  border-left: 4px solid transparent !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  animation: cf7-slide-up 0.35s cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* Icon rendered via ::before */
.wpcf7-response-output::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1.4;
  flex-shrink: 0;
}

/* ── Success ── */
.wpcf7-mail-sent-ok.wpcf7-response-output {
  background-color: #edfaf3;
  color: #0f6b38;
  border-left-color: var(--primary) !important;
}

.wpcf7-mail-sent-ok.wpcf7-response-output::before {
  content: "\f058";
  /* fa-circle-check */
  color: var(--primary);
}

/* ── Validation errors (missing required fields) ── */
.wpcf7-validation-errors.wpcf7-response-output {
  background-color: #fff8ec;
  color: #7d5000;
  border-left-color: #f0ad4e !important;
}

.wpcf7-validation-errors.wpcf7-response-output::before {
  content: "\f071";
  /* fa-triangle-exclamation */
  color: #f0ad4e;
}

/* ── Mail send failure ── */
.wpcf7-mail-sent-ng.wpcf7-response-output,
.wpcf7-aborted.wpcf7-response-output {
  background-color: #fef2f2;
  color: #842029;
  border-left-color: #dc3545 !important;
}

.wpcf7-mail-sent-ng.wpcf7-response-output::before,
.wpcf7-aborted.wpcf7-response-output::before {
  content: "\f06a";
  /* fa-circle-exclamation */
  color: #dc3545;
}

/* ── Spam blocked ── */
.wpcf7-spam-blocked.wpcf7-response-output {
  background-color: #f5f5f5;
  color: #555;
  border-left-color: #999 !important;
}

.wpcf7-spam-blocked.wpcf7-response-output::before {
  content: "\f05e";
  /* fa-ban */
  color: #999;
}

/* ── Accept terms error ── */
.wpcf7-acceptance-missing.wpcf7-response-output {
  background-color: #fff8ec;
  color: #7d5000;
  border-left-color: #f0ad4e !important;
}

.wpcf7-acceptance-missing.wpcf7-response-output::before {
  content: "\f05a";
  /* fa-circle-info */
  color: #f0ad4e;
}

/* Loading spinner */
.wpcf7 .ajax-loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  vertical-align: middle;
}


/* ============================================================
   Page Hero Banner  (page.php, single.php, archive.php, search.php)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.page-hero .breadcrumb {
  margin-bottom: 0.5rem;
}

.page-hero .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
  content: "/";
}

/* ============================================================
   Page / Post Content Typography
   ============================================================ */
.page-content,
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--dark);
}

.page-body h2,
.post-body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.page-body h3,
.post-body h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.page-body p,
.post-body p {
  margin-bottom: 1.25rem;
}

.page-body a,
.post-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-body a:hover,
.post-body a:hover {
  color: var(--primary-dark);
}

.page-body ul,
.post-body ul,
.page-body ol,
.post-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.page-body li,
.post-body li {
  margin-bottom: 0.4rem;
}

.page-body blockquote,
.post-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background-color: rgba(30, 132, 73, 0.06);
  border-radius: 0 0.375rem 0.375rem 0;
  font-style: italic;
  color: #4a4a4a;
}

.page-body img,
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

.page-body pre,
.post-body pre {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
}

/* WordPress alignment classes */
.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin: 0 auto 1rem;
}

.alignfull {
  width: 100%;
}

/* ============================================================
   Pagination
   ============================================================ */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.6rem;
  margin: 0 2px;
  border-radius: 0.375rem;
  border: 1px solid #dee2e6;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.2s ease;
  background: #fff;
  font-size: 0.9rem;
}

.page-numbers:hover,
.page-numbers.current {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-numbers.dots {
  border: none;
  background: transparent;
}

/* ============================================================
   Comments Area
   ============================================================ */
.comments-area .comment-text p {
  margin-bottom: 0;
}

.comment-respond .comment-notes {
  font-size: 0.875rem;
  color: #6c757d;
}

/* ============================================================
   404 Page
   ============================================================ */
.error-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

/* ============================================================
   Blog card hover — disable lift for sidebar widgets
   ============================================================ */
.sidebar .card:hover {
  transform: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}