/* ==========================================
   髙橋キャリアサポート - Style
   Navy: #1B3A5C | White: #FFF | Orange: #E67E22
   ========================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #1B3A5C;
  --navy-dark: #122840;
  --navy-light: #2A5580;
  --white: #FFFFFF;
  --orange: #E67E22;
  --orange-light: #F39C12;
  --gray-50: #F8FAFB;
  --gray-100: #EEF2F5;
  --gray-200: #D5DCE2;
  --gray-400: #8FA0B0;
  --gray-600: #5A6F80;
  --gray-800: #2C3E50;
  --shadow-sm: 0 2px 8px rgba(27,58,92,0.06);
  --shadow-md: 0 8px 30px rgba(27,58,92,0.1);
  --shadow-lg: 0 20px 60px rgba(27,58,92,0.15);
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  color: var(--gray-800);
  line-height: 1.8;
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.pc-only { display: inline; }
.sp-only { display: none; }

/* ---- Sample Banner ---- */
.sample-banner {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1001;
}
.sample-banner a { color: var(--white); text-decoration: underline; font-weight: 700; }

/* ---- Header ---- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27,58,92,0.06);
  transition: var(--transition);
  margin-top: 37px;
}
.header.scrolled {
  box-shadow: var(--shadow-sm);
  margin-top: 0;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-size: 16px; font-weight: 700; color: var(--navy); letter-spacing: 0.04em; line-height: 1.2; }
.logo-sub { font-size: 9px; font-weight: 500; color: var(--gray-400); letter-spacing: 0.15em; text-transform: uppercase; }

.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-desktop a {
  font-size: 13.5px; font-weight: 500; color: var(--gray-600);
  transition: var(--transition);
  position: relative;
}
.nav-desktop a:hover { color: var(--navy); }
.nav-desktop a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--orange); transform: scaleX(0);
  transition: var(--transition); transform-origin: right;
}
.nav-desktop a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  background: var(--navy) !important; color: var(--white) !important;
  padding: 8px 20px !important; border-radius: 6px;
  font-size: 13px !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--navy-light) !important; }

/* Hamburger */
.hamburger { display: none; width: 44px; height: 44px; position: relative; z-index: 1002; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); position: absolute; left: 11px;
  transition: var(--transition);
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger.active span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed; top: 0; right: -100%; width: 80%; max-width: 360px;
  height: 100vh; background: var(--white); z-index: 1001;
  padding: 100px 32px 40px;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.mobile-nav.active { right: 0; }
.mobile-nav nav { display: flex; flex-direction: column; gap: 0; }
.mobile-nav a {
  padding: 16px 0; font-size: 15px; font-weight: 500; color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.mobile-nav a:hover { color: var(--orange); padding-left: 8px; }
.mobile-cta {
  margin-top: 20px !important;
  background: var(--navy); color: var(--white) !important;
  text-align: center; padding: 14px 0 !important;
  border-radius: 8px; border-bottom: none !important;
}

.mobile-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4); z-index: 1000;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.mobile-overlay.active { opacity: 1; pointer-events: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-size: 14px; font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--orange); color: var(--white);
  box-shadow: 0 4px 16px rgba(230,126,34,0.3);
}
.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(230,126,34,0.4);
}
.btn-outline {
  border: 2px solid var(--white); color: var(--white);
  background: rgba(255,255,255,0.1);
}
.btn-outline:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-white { border: 2px solid var(--white); color: var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.btn-lg { padding: 16px 48px; font-size: 15px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}
.hero-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(27,58,92,0.7) 0%, rgba(18,40,64,0.5) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: var(--white);
  padding: 0 24px;
}
.hero-lead {
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  opacity: 0.85;
}
.hero-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.hero-desc {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 40px;
  opacity: 0.85;
  font-weight: 300;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 2; color: var(--white);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.15em; opacity: 0.6;
}
.scroll-line {
  width: 1px; height: 40px; background: var(--white);
  animation: scrollLine 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- Section Titles ---- */
.section-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700; color: var(--navy);
  line-height: 1.4;
  margin-bottom: 16px;
}
.section-title.white { color: var(--white); }
.section-subtitle {
  font-size: 15px; color: var(--gray-600);
  line-height: 1.8; margin-bottom: 48px;
}

/* ---- About ---- */
.about { background: var(--gray-50); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 60px; align-items: center;
}
.about-visual {
  display: flex; flex-direction: column; align-items: center;
  gap: 24px; position: relative;
}
.about-icon-wrap {
  width: 200px; height: 200px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.about-badge {
  background: var(--navy);
  color: var(--white);
  padding: 16px 28px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge-num { font-size: 40px; font-weight: 900; display: block; line-height: 1; color: var(--orange); }
.about-badge-unit { font-size: 13px; font-weight: 500; }

.about-desc {
  font-size: 15px; line-height: 2; color: var(--gray-600);
  margin-bottom: 16px;
}
.about-points { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.about-point { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.point-icon { flex-shrink: 0; width: 24px; height: 24px; display: flex; align-items: center; }

/* ---- For Target (Companies / Workers) ---- */
.for-companies-sec { background: var(--white); }
.for-workers-sec { background: var(--gray-50); }

.for-target .section-label,
.for-target .section-title,
.for-target .section-subtitle { text-align: center; }

.target-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.target-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  text-align: center;
}
.for-workers-sec .target-card { background: var(--white); }
.target-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(230,126,34,0.2);
}
.target-card-icon { margin-bottom: 20px; }
.target-card h3 {
  font-size: 17px; font-weight: 700; color: var(--navy);
  margin-bottom: 12px;
}
.target-card p { font-size: 14px; color: var(--gray-600); line-height: 1.8; }

/* ---- Services ---- */
.services {
  background: var(--white);
}
.services .section-label,
.services .section-title,
.services .section-subtitle { text-align: center; }

.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--gray-50);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--orange);
  transform: scaleY(0);
  transition: var(--transition);
  transform-origin: bottom;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleY(1); transform-origin: top; }

.service-icon { margin-bottom: 20px; }
.service-name { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.service-desc { font-size: 14px; color: var(--gray-600); line-height: 1.9; margin-bottom: 16px; }

.service-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  list-style: none;
}
.service-tags li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px; font-weight: 500;
  color: var(--navy);
}

/* ---- Numbers ---- */
.numbers {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.numbers::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(230,126,34,0.08);
}
.numbers .section-label { color: rgba(255,255,255,0.5); }

.numbers-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative; z-index: 1;
}
.number-item { padding: 20px 0; }
.number-value {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  display: inline;
}
.number-suffix {
  font-size: 20px; font-weight: 700;
  margin-left: 4px;
  color: rgba(255,255,255,0.7);
}
.number-label {
  font-size: 14px; font-weight: 500;
  margin-top: 8px;
  color: rgba(255,255,255,0.6);
}

/* ---- Flow ---- */
.flow { background: var(--gray-50); }
.flow .section-label,
.flow .section-title { text-align: center; }

.flow-tabs {
  display: flex; justify-content: center; gap: 4px;
  margin-bottom: 48px;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 4px;
  max-width: 400px; margin-left: auto; margin-right: auto;
}
.flow-tab {
  flex: 1; padding: 12px 20px;
  font-size: 14px; font-weight: 600;
  color: var(--gray-600);
  border-radius: 6px;
  transition: var(--transition);
}
.flow-tab.active {
  background: var(--navy); color: var(--white);
  box-shadow: var(--shadow-sm);
}
.flow-tab:hover:not(.active) { color: var(--navy); }

.flow-content.hidden { display: none; }

.flow-steps {
  max-width: 640px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.flow-steps::before {
  content: '';
  position: absolute; left: 28px; top: 40px; bottom: 40px;
  width: 2px; background: var(--gray-200);
}

.flow-step {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 24px 0;
  position: relative;
}
.flow-num {
  width: 56px; height: 56px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.flow-step-body { padding-top: 8px; }
.flow-step-body h4 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.flow-step-body p { font-size: 14px; color: var(--gray-600); line-height: 1.8; }

/* ---- Company ---- */
.company { background: var(--white); }
.company .section-label,
.company .section-title { text-align: center; }

.company-table-wrap {
  max-width: 760px; margin: 0 auto;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
}
.company-table { width: 100%; border-collapse: collapse; }
.company-table tr { border-bottom: 1px solid var(--gray-100); }
.company-table tr:last-child { border-bottom: none; }
.company-table th {
  width: 160px; padding: 16px 24px;
  font-size: 14px; font-weight: 600;
  color: var(--navy);
  background: rgba(27,58,92,0.04);
  text-align: left; vertical-align: top;
}
.company-table td {
  padding: 16px 24px;
  font-size: 14px; color: var(--gray-600);
  line-height: 1.7;
}

/* ---- CTA Section ---- */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--orange) 0%, #D35400 100%);
}
.cta-inner {
  text-align: center; color: var(--white);
}
.cta-inner h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-inner p {
  font-size: 15px; opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.8;
}
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Contact ---- */
.contact { background: var(--gray-50); }
.contact .section-label,
.contact .section-title,
.contact .section-subtitle { text-align: center; }

.contact-form {
  max-width: 680px; margin: 0 auto;
  background: var(--white);
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--navy); margin-bottom: 8px;
}
.req {
  font-size: 11px; color: var(--white);
  background: var(--orange);
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Noto Sans JP', sans-serif;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  background: var(--gray-50);
  transition: var(--transition);
  color: var(--gray-800);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(27,58,92,0.08);
}
.form-group textarea { resize: vertical; }

.radio-group { display: flex; gap: 20px; flex-wrap: wrap; }
.radio-label {
  display: flex !important; align-items: center; gap: 6px;
  font-size: 14px !important; font-weight: 400 !important;
  color: var(--gray-600) !important; cursor: pointer;
}
.radio-label input { width: auto !important; margin: 0; }

.form-submit { text-align: center; margin-top: 8px; }

/* ---- Footer ---- */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.footer-logo span { font-size: 15px; font-weight: 700; color: var(--white); }
.footer-addr { font-size: 13px; line-height: 1.8; }

.footer-links h4 {
  font-size: 13px; font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
.footer-links a {
  display: block; font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--orange); }
.footer-hours { font-size: 12px; margin-top: 8px; color: rgba(255,255,255,0.4); }

.footer-bottom {
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.footer-credit a { color: var(--orange); text-decoration: underline; }

/* ---- Animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .hamburger { display: block; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .pc-only { display: none; }
  .sp-only { display: inline; }

  .header { margin-top: 33px; }
  .header-inner { height: 60px; }

  .hero { min-height: 90vh; }
  .hero-lead { font-size: 12px; }
  .hero-desc { font-size: 14px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 280px; justify-content: center; }
  .hero-scroll { display: none; }

  .target-cards { grid-template-columns: 1fr; gap: 16px; }
  .target-card { padding: 28px 24px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 32px 24px; }

  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .number-value { font-size: 36px; }

  .flow-tabs { margin-bottom: 32px; }

  .company-table th { width: 110px; padding: 12px 14px; font-size: 13px; }
  .company-table td { padding: 12px 14px; font-size: 13px; }

  .cta-btns { flex-direction: column; align-items: center; }
  .cta-btns .btn { width: 100%; max-width: 300px; justify-content: center; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .radio-group { flex-direction: column; gap: 10px; }
  .logo-main { font-size: 14px; }
  .logo-icon { width: 36px; height: 36px; }
  .section-subtitle { font-size: 14px; margin-bottom: 36px; }
  .about-icon-wrap { width: 160px; height: 160px; }
  .about-badge-num { font-size: 32px; }
  .service-tags li { font-size: 11px; }
  .flow-step { gap: 16px; }
  .flow-num {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }
  .flow-steps::before {
    left: 21px;
  }
  .cta-inner h2 { font-size: 22px; }
}

/* ---- Extra Hover / Interactive States ---- */
.target-card-icon svg {
  transition: var(--transition);
}
.target-card:hover .target-card-icon svg {
  transform: scale(1.08);
}

.service-icon svg {
  transition: var(--transition);
}
.service-card:hover .service-icon svg {
  transform: translateY(-4px);
}

.flow-step {
  transition: var(--transition);
}
.flow-step:hover .flow-num {
  background: var(--orange);
  transition: var(--transition);
}

.number-item {
  transition: var(--transition);
}
.number-item:hover {
  transform: scale(1.05);
}

/* ---- Selection Color ---- */
::selection {
  background: rgba(27, 58, 92, 0.15);
  color: var(--navy);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--gray-50);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ---- Focus States (Accessibility) ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* ---- Loading placeholder for hero image ---- */
.hero-bg {
  background: var(--navy-dark);
  transition: opacity 0.5s ease;
}

/* ---- Subtle pattern for navy sections ---- */
.numbers::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

/* ---- Badge pulse animation ---- */
.about-badge {
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ---- Service card number decoration ---- */
.service-card {
  counter-increment: service;
}
.service-card::after {
  content: '0' counter(service);
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 48px;
  font-weight: 900;
  color: var(--navy);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
}

.services-grid {
  counter-reset: service;
}

/* ---- CTA section decorations ---- */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

/* ---- Hero decorative elements ---- */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(248,250,251,1) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* ---- Section divider subtle lines ---- */
.for-companies-sec::before {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--orange);
  margin: 0 auto 0;
  border-radius: 2px;
  opacity: 0;
}

/* ---- Table row hover ---- */
.company-table tr {
  transition: var(--transition);
}
.company-table tr:hover {
  background: rgba(27, 58, 92, 0.02);
}

/* ---- Input placeholder style ---- */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
  font-weight: 300;
}

/* ---- Link underline animation for footer ---- */
.footer-credit a {
  position: relative;
}
.footer-credit a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: right;
}
.footer-credit a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---- Print styles ---- */
@media print {
  .sample-banner,
  .header,
  .mobile-nav,
  .mobile-overlay,
  .hero-scroll,
  .cta-section {
    display: none !important;
  }
  .hero {
    min-height: auto;
    padding: 40px 0;
  }
  .section {
    padding: 40px 0;
    break-inside: avoid;
  }
  body {
    font-size: 12pt;
    color: #000;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---- Active nav state ---- */
.nav-desktop a.nav-active {
  color: var(--navy);
  font-weight: 600;
}
.nav-desktop a.nav-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---- Hero content stagger ---- */
.hero-content .hero-lead { animation-delay: 0.2s; }
.hero-content .hero-title { animation-delay: 0.4s; }
.hero-content .hero-desc { animation-delay: 0.6s; }
.hero-content .hero-btns { animation-delay: 0.8s; }

/* ---- Gradient text for hero title accent ---- */
.hero-title br + * {
  color: var(--orange-light);
}

/* ---- About section responsive tweaks ---- */
@media (min-width: 1025px) {
  .about-grid {
    padding: 0 20px;
  }
  .about-text {
    padding-left: 20px;
  }
}

/* ---- Card group counter for target cards ---- */
.target-cards {
  counter-reset: target-card;
}

/* ---- Flow num transition ---- */
.flow-num {
  transition: background 0.3s ease, transform 0.3s ease;
}
.flow-step:hover .flow-num {
  transform: scale(1.08);
}

/* ---- Contact form button states ---- */
.contact-form .btn-primary {
  position: relative;
  overflow: hidden;
}
.contact-form .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.5s ease;
}
.contact-form .btn-primary:hover::before {
  left: 100%;
}

/* ---- Footer brand hover ---- */
.footer-logo:hover svg {
  transform: scale(1.05);
  transition: var(--transition);
}

/* ---- Utility: visually hidden ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
