/*
Theme Name: Batsons Industries
Theme URI: https://batsons.in
Author: Batsons Industries
Author URI: https://batsons.in
Description: Custom WordPress theme for Batsons Industries - Aviation & Automotive solutions. Built with ACF custom fields for easy content management.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: batsons
*/

/* =========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ========================================= */
:root {
  /* Brand Colors */
  --color-primary:       #006466;
  --color-primary-dark:  #005d5f;
  --color-accent:        #f9b100;
  --color-accent-dark:   #e0a000;

  /* Neutrals */
  --color-white:         #ffffff;
  --color-neutral-50:    #ffffff;
  --color-neutral-100:   #f8f9fc;
  --color-neutral-200:   #f2f4fc;
  --color-neutral-800:   #5c5c6f;
  --color-neutral-900:   #303044;
  --color-neutral-1000:  #111125;

  /* Text */
  --color-text-body:     #364153;
  --color-text-muted:    #4a5565;
  --color-text-light:    #d1d5dc;
  --color-text-faint:    #99a1af;
  --color-text-gray:     #6a7282;

  /* Semantic */
  --color-footer-bg:     #1a1b26;
  --color-footer-border: #2d3142;
  --color-section-bg:    #eee;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', var(--font-primary);

  /* Font Sizes */
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-lg:   18px;
  --text-xl:   20px;
  --text-2xl:  24px;
  --text-3xl:  36px;
  --text-4xl:  48px;
  --text-5xl:  56px;
  --text-6xl:  64px;

  /* Spacing */
  --space-8:   8px;
  --space-12:  12px;
  --space-16:  16px;
  --space-24:  24px;
  --space-32:  32px;
  --space-48:  48px;
  --space-64:  64px;
  --space-96:  96px;

  /* Layout */
  --container-max: 1440px;
  --container-inner: 1248px;
  --section-px: 96px;

  /* Borders */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  color: var(--color-text-body);
  background: var(--color-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover { opacity: 0.85; }

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }

/* =========================================
   LAYOUT UTILITIES
   ========================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.container-inner {
  max-width: var(--container-inner);
  margin: 0 auto;
  width: 100%;
}

.section-pad {
  padding: var(--space-64) var(--space-96);
}

.section-pad-lg {
  padding: var(--space-96) var(--space-96);
}

/* =========================================
   TYPOGRAPHY HELPERS
   ========================================= */
.heading-display {
  font-size: var(--text-6xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.28px;
}

.heading-1 {
  font-size: var(--text-5xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -1.12px;
}

.heading-2 {
  font-size: var(--text-4xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.96px;
}

.heading-3 {
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.72px;
}

.heading-4 {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.4px;
}

.subtitle-label {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 2.56px;
  text-transform: uppercase;
  color: #cdb3fd;
  line-height: 1.5;
}

.body-lg {
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.48px;
}

.body-md {
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.32px;
}

.body-sm {
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.24px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: 14px var(--space-24);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.32px;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-neutral-1000);
  border: 2px solid var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-neutral-1000);
  border: 1px solid var(--color-neutral-1000);
}

.btn-secondary:hover {
  background: var(--color-neutral-1000);
  color: var(--color-white);
  opacity: 1;
}

.btn-secondary-white {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
}

.btn-secondary-white:hover {
  background: var(--color-white);
  color: var(--color-neutral-1000);
  opacity: 1;
}

.btn-tertiary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  padding: 4px 0;
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: -0.32px;
  color: var(--color-neutral-1000);
  background: none;
  border: none;
  cursor: pointer;
  transition: gap 0.2s ease;
}

.btn-tertiary:hover { gap: 12px; opacity: 1; }

.btn-tertiary .arrow-icon {
  width: 12px;
  height: 12px;
  display: flex;
  align-items: center;
}

/* Quote Button (Navbar) */
.btn-quote {
  background: var(--color-accent);
  color: var(--color-neutral-1000);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: -0.3125px;
  line-height: 24px;
  transition: all 0.2s ease;
}

.btn-quote:hover {
  background: var(--color-accent-dark);
  opacity: 1;
  transform: translateY(-1px);
}

/* Submit Button */
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  background: var(--color-accent);
  color: var(--color-neutral-1000);
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: -0.3125px;
  transition: all 0.2s ease;
}

.btn-submit:hover {
  background: var(--color-accent-dark);
  opacity: 1;
  transform: translateY(-1px);
}

/* =========================================
   ICON BOX (Yellow square icons)
   ========================================= */
.icon-box {
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box-lg {
  width: 56px;
  height: 56px;
}

.icon-box img,
.icon-box svg {
  width: 24px;
  height: 24px;
}

.icon-box-lg img,
.icon-box-lg svg {
  width: 28px;
  height: 28px;
}

/* =========================================
   STAT BLOCK
   ========================================= */
.stat-block {
  border-left: 4px solid var(--color-accent);
  padding: var(--space-16) 0 var(--space-16) var(--space-32);
  width: 264px;
}

.stat-block .stat-number {
  font-size: var(--text-6xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1.28px;
  color: var(--color-neutral-900);
}

.stat-block .stat-label {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: var(--color-neutral-800);
  margin-top: var(--space-16);
}

/* =========================================
   CARDS
   ========================================= */
.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.feature-card .card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: var(--color-neutral-900);
  margin-bottom: var(--space-8);
}

.feature-card .card-body {
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.24px;
  color: var(--color-neutral-800);
}

.service-card {
  background: var(--color-white);
  border: 2px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  width: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card .card-header-strip {
  background: #dfdfdf;
  height: 120px;
  width: 100%;
  flex-shrink: 0;
}

.service-card .card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
  padding: var(--space-24);
  margin-top: -60px;
  width: 100%;
}

.service-card .card-icon-wrap {
  background: #f3ecff;
  border-radius: var(--radius-md);
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.service-card .card-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card .card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: var(--color-neutral-900);
  text-align: center;
}

.service-card .card-body {
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.24px;
  color: var(--color-neutral-800);
  text-align: center;
}

/* =========================================
   FORMS
   ========================================= */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.1504px;
  color: var(--color-text-body);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--color-white);
  border: 1px solid #d1d5dc;
  border-radius: 0;
  padding: 12px 16px;
  font-size: var(--text-base);
  color: var(--color-neutral-1000);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  font-family: var(--font-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 100, 102, 0.15);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

.form-textarea {
  height: 146px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23364153' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  padding-right: 48px;
  cursor: pointer;
}

/* Radio/Checkbox */
.radio-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-white);
  border: 1px solid #d0d5dd;
  border-radius: var(--radius-full);
  padding: 12px 20px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.radio-pill:hover { border-color: var(--color-primary); }

.radio-pill input[type="radio"],
.radio-pill input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: 1px solid #667085;
  border-radius: 10px;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.radio-pill input[type="radio"]:checked {
  background: #eafef1;
  border-color: #038c8c;
  position: relative;
}

.radio-pill input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #038c8c;
}

.radio-pill label {
  font-size: var(--text-base);
  color: #344054;
  cursor: pointer;
  font-family: 'Mulish', var(--font-primary);
}

/* =========================================
   CONTACT FORM SECTION
   ========================================= */
.contact-form-wrap {
  background: #e8ecef;
  border-radius: var(--radius-lg);
  padding: var(--space-32);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
  width: 100%;
}

.contact-form-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  width: 100%;
  max-width: 768px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);
}

.contact-form-row-3 {
  display: flex;
  gap: var(--space-24);
}

.contact-form-row-3 .form-group {
  flex: 1;
}

.radio-group-row {
  display: flex;
  gap: var(--space-24);
  align-items: center;
}

/* =========================================
   AFFILIATION LOGOS
   ========================================= */
.affiliations-section {
  background: var(--color-section-bg);
  padding: 40px var(--space-32);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
}

.affiliations-section h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.72px;
  color: var(--color-neutral-1000);
  text-align: center;
}

.affiliations-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-32);
  width: 100%;
  max-width: var(--container-inner);
  mix-blend-mode: multiply;
}

.affiliations-logos img {
  object-fit: contain;
  max-height: 120px;
  width: auto;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-footer-border);
  padding: 0 128px;
}

.footer-inner {
  padding: var(--space-32);
  display: flex;
  flex-direction: column;
  gap: var(--space-48);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-48);
}

.footer-col-title {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 0.0875px;
  text-transform: uppercase;
  line-height: 24px;
  margin-bottom: var(--space-16);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer-list li a,
.footer-list li span {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: -0.1504px;
  line-height: 20px;
  transition: color 0.2s ease;
}

.footer-list li a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.footer-list-icon {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.footer-list-icon img,
.footer-list-icon svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-cert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f4a261;
  flex-shrink: 0;
}

.footer-desc {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  line-height: 20px;
  letter-spacing: -0.1504px;
  max-width: 241px;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.footer-bottom {
  border-top: 1px solid var(--color-footer-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--color-text-gray);
  line-height: 20px;
  letter-spacing: -0.1504px;
}

.footer-socials {
  display: flex;
  gap: var(--space-16);
  align-items: center;
}

.footer-socials a {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.footer-socials a:hover { opacity: 0.7; }

.footer-socials svg {
  fill: var(--color-text-light);
  width: 20px;
  height: 20px;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Scroll reveal (JS-driven) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1280px) {
  :root {
    --section-px: 48px;
    --text-6xl: 52px;
    --text-5xl: 44px;
    --text-4xl: 40px;
  }

  .section-pad,
  .section-pad-lg {
    padding: var(--space-64) var(--space-48);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  :root {
    --text-6xl: 44px;
    --text-5xl: 38px;
    --text-4xl: 34px;
    --text-3xl: 28px;
  }

  .stat-block { width: auto; flex: 1; }
  .feature-card { width: auto; flex: 1; }
  .service-card { width: auto; }

  .contact-form-row { grid-template-columns: 1fr; }
  .contact-form-row-3 { flex-direction: column; }
  .radio-group-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  :root {
    --text-6xl: 36px;
    --text-5xl: 32px;
    --text-4xl: 28px;
    --text-3xl: 24px;
    --text-2xl: 20px;
  }

  .section-pad,
  .section-pad-lg {
    padding: var(--space-48) var(--space-24);
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .affiliations-logos { flex-wrap: wrap; justify-content: center; }
  .site-footer { padding: 0 var(--space-24); }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-16); }
}

/* =========================================
   WORDPRESS CORE
   ========================================= */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.wp-caption { max-width: 100%; }
.alignleft  { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin: 0 auto 1em; display: block; }

/* =========================================
   PAGE HERO (for inner pages)
   ========================================= */
.page-hero {
  background: var(--color-primary);
  padding: 80px var(--space-96);
  display: flex;
  align-items: center;
  min-height: 300px;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.96px;
}

.page-hero .breadcrumb {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  margin-top: var(--space-8);
}

.page-hero .breadcrumb a { color: var(--color-accent); }

/* =========================================
   CONTENT AREA (inner pages)
   ========================================= */
.content-area {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-64) var(--space-96);
}

.content-area h1,
.content-area h2,
.content-area h3 {
  color: var(--color-neutral-1000);
  margin-bottom: var(--space-16);
  margin-top: var(--space-32);
}

.content-area p {
  color: var(--color-text-body);
  line-height: 1.6;
  margin-bottom: var(--space-16);
}

.content-area ul,
.content-area ol {
  list-style: disc;
  padding-left: var(--space-24);
  margin-bottom: var(--space-16);
}

/* =========================================
   MOBILE NAV
   ========================================= */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .mobile-nav-toggle { display: flex; }

  .nav-list-wrap {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: var(--space-24);
    gap: var(--space-16);
    z-index: 999;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-list-wrap.open { display: flex; }
}
