/*
Theme Name: IMTA Solutions
Theme URI: https://imta.io
Author: IMTA
Author URI: https://imta.io
Description: Custom WordPress theme for IMTA Solutions - IT company website
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: imta
*/

/* ===== CSS Variables ===== */
:root {
  --imta-blue: #001b5e;
  --imta-blue-dark: #000d2b;
  --imta-accent: #00d2ff;
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --border-color: #f3f4f6;
}

.dark {
  --bg-color: #000d2b;
  --text-color: #f3f4f6;
  --border-color: #1e293b;
}

/* ===== Base Styles ===== */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

/* ===== Utility Classes ===== */
.gradient-text {
  background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-padding {
  padding: 5rem 1.5rem;
}
@media (min-width: 768px) {
  .section-padding { padding: 5rem 3rem; }
}
@media (min-width: 1024px) {
  .section-padding { padding: 5rem 6rem; }
}

.logo-filter {
  filter: brightness(0) invert(8%) sepia(100%) saturate(4887%) hue-rotate(225deg) brightness(91%) contrast(110%);
}
.dark .logo-filter {
  filter: none;
}

/* ===== Animation Classes ===== */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal-card { opacity: 0; transform: translateY(50px); }
.reveal-step { opacity: 0; transform: translateY(50px); }
.reveal-stat { opacity: 0; transform: translateY(40px); }
.reveal-process { opacity: 0; transform: translateY(30px); }

.animate-fade-in-down {
  animation: fadeInDown 0.3s ease-out forwards;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin { animation: spin 1s linear infinite; }

/* ===== Counter ===== */
.counter { font-variant-numeric: tabular-nums; }

/* ===== Service Card Initial State ===== */
.service-card { opacity: 0; transform: translateY(30px); }

/* ===== Prose Styles ===== */
.prose h3 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #003366;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  font-family: 'Inter Tight', sans-serif;
}
.dark .prose h3 { color: #ffffff; }
.prose p { margin-bottom: 1.5rem; }
.prose ul {
  list-style-type: disc;
  margin: 0 0 1.5rem 1.5rem;
  padding-left: 1rem;
}
.prose li { margin-bottom: 0.75rem; }

/* ===== Scroll To Top ===== */
#scroll-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease;
  left: 1rem;
  right: auto;
  bottom: 5.5rem;
  z-index: 40;
}
#scroll-to-top.hidden-btn {
  opacity: 0;
  transform: translateY(3rem);
  pointer-events: none;
}

@media (min-width: 768px) {
  #scroll-to-top {
    left: 2rem;
    right: auto;
    bottom: 2rem;
  }
}

/* ===== Hide Jotform Branding ===== */
.jf-powered-by,
.jfChat-poweredBy,
.jc-Branding,
.jc-Footer,
.jotform-powered-by,
.jotform-branding {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ===== Contact Form 7 Premium Styling ===== */
.wpcf7 {
  width: 100%;
}

.wpcf7 form p {
  margin-bottom: 1.5rem;
  width: 100%;
}
.dark .wpcf7 form p {
  color: #fff;
}

.wpcf7 form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--imta-blue);
  margin-left: 0.5rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.dark .wpcf7 form label {
  color: var(--imta-accent);
}

.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Base input styling */
.wpcf7 form input[type="text"],
.wpcf7 form input[type="email"],
.wpcf7 form input[type="tel"],
.wpcf7 form textarea,
.wpcf7 form select {
  width: 100% !important;
  max-width: 100% !important;
  padding: 1rem 1.25rem !important;
  border-radius: 1rem !important;
  border: 1px solid #e5e7eb !important;
  background-color: #ffffff !important;
  color: #111827 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 1rem !important;
  outline: none !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* Dark mode inputs: Glassmorphism effect */
.dark .wpcf7 form input[type="text"],
.dark .wpcf7 form input[type="email"],
.dark .wpcf7 form input[type="tel"],
.dark .wpcf7 form textarea,
.dark .wpcf7 form select {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.dark .wpcf7 form input::placeholder,
.dark .wpcf7 form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
}

/* Focus states */
.wpcf7 form input[type="text"]:focus,
.wpcf7 form input[type="email"]:focus,
.wpcf7 form input[type="tel"]:focus,
.wpcf7 form textarea:focus {
  border-color: var(--imta-blue) !important;
  box-shadow: 0 0 0 3px rgba(0, 27, 94, 0.1) !important;
  background-color: #f9fafb !important;
}

.dark .wpcf7 form input[type="text"]:focus,
.dark .wpcf7 form input[type="email"]:focus,
.dark .wpcf7 form input[type="tel"]:focus,
.dark .wpcf7 form textarea:focus {
  border-color: var(--imta-accent) !important;
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15) !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
}

/* Submit Button */
.wpcf7 form .wpcf7-submit {
  width: 100% !important;
  background: var(--imta-blue) !important;
  color: #ffffff !important;
  padding: 1.25rem 2rem !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 1.125rem !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 27, 94, 0.2) !important;
  display: block !important;
  margin-top: 1rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.dark .wpcf7 form .wpcf7-submit {
  background: linear-gradient(135deg, var(--imta-accent), #007bb5) !important;
  color: var(--imta-blue) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 210, 255, 0.3) !important;
}

/* Button Hover */
.wpcf7 form .wpcf7-submit:hover {
  transform: translateY(-3px) scale(1.01) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 27, 94, 0.3) !important;
  background: #000d2b !important;
}

.dark .wpcf7 form .wpcf7-submit:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 210, 255, 0.5) !important;
  filter: brightness(1.1) !important;
  background: linear-gradient(135deg, #ffffff, var(--imta-accent)) !important;
}

/* Button Active */
.wpcf7 form .wpcf7-submit:active {
  transform: translateY(1px) scale(0.99) !important;
}

/* Response / Validation text */
.wpcf7 form .wpcf7-not-valid-tip {
  color: #ef4444 !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  margin-top: 0.5rem !important;
  display: block;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
  color: #ef4444 !important;
  border-radius: 1rem !important;
  padding: 1rem !important;
  background: rgba(239, 68, 68, 0.05) !important;
  font-weight: 600 !important;
  margin-top: 2rem !important;
}

.wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
  color: #10b981 !important;
  border-radius: 1rem !important;
  padding: 1rem !important;
  background: rgba(16, 185, 129, 0.05) !important;
  font-weight: 600 !important;
  margin-top: 2rem !important;
}
