/* ============================================================
   JRF Korea - Japan Remit Finance Co., Ltd.
   Template 4: "Navy & Peach" - Methodical Consulting Style
   Primary: #002549 | Accent: #E1965F | Dark: #001525 | Light bg: #FDF8F5
   Font: Darker Grotesque (300-900)
   ============================================================ */

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Darker+Grotesque:wght@300;400;500;600;700;800;900&display=swap');

/* --- Base --- */
:root {
  --primary: #002549;
  --accent: #E1965F;
  --dark: #001525;
  --light-bg: #FDF8F5;
  --white: #ffffff;
  --black: #000000;
  --text-dark: #1a1a2e;
  --text-muted: #6c757d;
  --font-family: 'Darker Grotesque', sans-serif;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-family);
  font-weight: 400;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 700;
  color: var(--dark);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* --- Navbar --- */
.custom-navbar {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  transition: var(--transition);
  z-index: 1030;
}

.custom-navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
}

.navbar-brand img {
  height: 2.5rem;
  border-radius: 8px;
  object-fit: contain;
}

.navbar-caption {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark) !important;
  letter-spacing: -0.02em;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  box-shadow: none !important;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  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' stroke='%23002549' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='6' x2='21' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='12' x2='21' y2='12'%3E%3C/line%3E%3Cline x1='3' y1='18' x2='21' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

.nav-link {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 1rem;
  color: var(--dark) !important;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.navbar-buttons {
  margin-left: 1rem;
}

.btn-black {
  background-color: var(--dark);
  color: var(--white) !important;
  border: 2px solid var(--dark);
  padding: 0.6rem 1.8rem;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.btn-black:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 150, 95, 0.35);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--white) !important;
  border: 2px solid var(--accent);
  padding: 0.7rem 2rem;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-accent:hover {
  background-color: transparent;
  color: var(--accent) !important;
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--white) !important;
  border: 2px solid var(--white);
  padding: 0.7rem 2rem;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--dark) !important;
  transform: translateY(-2px);
}

/* --- Hero Section (Parallax Full-Screen) --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 21, 37, 0.85) 0%, rgba(0, 37, 73, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}

.hero-label {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 3.8rem;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
}

/* --- Section Common --- */
.section-padding {
  padding: 5rem 0;
}

.section-padding-lg {
  padding: 7rem 0;
}

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

.section-bg-dark {
  background-color: var(--dark);
  color: var(--white);
}

.section-title {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 650px;
}

.text-accent {
  color: var(--accent) !important;
}

.text-primary-custom {
  color: var(--primary) !important;
}

/* --- Features / Image+Text Sections --- */
.features-section {
  padding: 5rem 0;
}

.features-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.features-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.features-image:hover img {
  transform: scale(1.03);
}

.features-text {
  padding: 2rem 0;
}

.features-text h2 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 2.3rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.features-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* --- Numbered Advantages --- */
.advantages-section {
  padding: 5rem 0;
  background-color: var(--light-bg);
}

.advantage-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--dark));
  color: var(--white);
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 37, 73, 0.25);
}

.advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: rgba(225, 150, 95, 0.1);
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.advantage-card h4 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.advantage-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 300px;
  margin: 0 auto;
}

/* --- Founder Section --- */
.founder-section {
  padding: 5rem 0;
}

.founder-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.founder-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.founder-quote {
  position: relative;
  padding: 2rem 0;
}

.founder-quote blockquote {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--dark);
  font-style: italic;
  line-height: 1.8;
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.founder-name {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
}

.founder-role {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- Vision Section --- */
.vision-section {
  padding: 5rem 0;
  background-color: var(--light-bg);
}

.vision-content h2 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 2.3rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.vision-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.vision-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.vision-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* --- FAQ Accordion --- */
.faq-section {
  padding: 5rem 0;
}

.accordion-item {
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
  margin-bottom: 0;
}

.accordion-button {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark);
  background: transparent;
  padding: 1.25rem 0;
  box-shadow: none !important;
  border: none;
}

.accordion-button:not(.collapsed) {
  color: var(--accent);
  background: transparent;
}

.accordion-button::after {
  display: none;
}

.accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-right: 1rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.accordion-button:not(.collapsed) .accordion-icon {
  background-color: var(--accent);
  transform: rotate(45deg);
}

.accordion-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  padding: 0 0 1.5rem 3.5rem;
}

/* --- Contact Form --- */
.contact-section {
  padding: 5rem 0;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.form-control {
  font-family: var(--font-family);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: var(--transition);
  background-color: var(--light-bg);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 150, 95, 0.1);
  background-color: var(--white);
}

.form-control::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* --- Contact Cards --- */
.contact-cards-section {
  padding: 4rem 0;
  background-color: var(--dark);
  color: var(--white);
}

.contact-card {
  text-align: center;
  padding: 2rem 1rem;
}

.contact-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.contact-card h5 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* --- Google Map --- */
.map-section {
  padding: 0;
}

.map-section iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

/* --- Footer (DENSE Block - Template 4 Style) --- */
.footer-section {
  background-color: var(--dark);
  padding: 3rem 0;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.footer-content {
  font-family: var(--font-family);
  font-size: 0.95rem;
  line-height: 2;
}

.footer-content a {
  color: var(--accent) !important;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.footer-content a:hover {
  color: var(--white) !important;
  text-decoration: underline;
}

.footer-content .policy-links {
  margin-bottom: 0.25rem;
}

.footer-content .policy-links a {
  margin: 0 0.5rem;
}

/* --- Page Header (Sub Pages) --- */
.page-header {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Content Page Styles --- */
.content-section {
  padding: 4rem 0;
}

.content-section h2 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.content-section h3 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.content-section p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* --- Service Cards --- */
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  height: 100%;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.service-card-icon {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.service-card h4 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Testimonials --- */
.testimonial-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent);
}

.testimonial-card p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-style: italic;
}

.testimonial-author {
  font-family: var(--font-family);
  font-weight: 700;
  color: var(--dark);
  margin-top: 1rem;
}

.testimonial-role {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Stats / Key Figures --- */
.stats-section {
  padding: 4rem 0;
  background-color: var(--primary);
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 3rem;
  color: var(--white);
  line-height: 1.1;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
}

/* --- Parallax Banner --- */
.parallax-banner {
  position: relative;
  padding: 6rem 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 21, 37, 0.8);
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.parallax-content h2 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.parallax-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* --- Cookie Consent --- */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 1.25rem 0;
  display: none;
}

.cookie-consent-banner.show {
  display: block;
}

.cookie-consent-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-text {
  font-size: 0.9rem;
  color: var(--text-dark);
  flex: 1;
  min-width: 250px;
}

.cookie-text a {
  color: var(--accent);
  font-weight: 600;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background-color: var(--primary);
  color: var(--white) !important;
  border: 2px solid var(--primary);
  padding: 0.5rem 1.5rem;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cookie-accept:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-cookie-reject {
  background-color: transparent;
  color: var(--text-muted);
  border: 2px solid rgba(0, 0, 0, 0.15);
  padding: 0.5rem 1.5rem;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cookie-reject:hover {
  border-color: var(--text-muted);
  color: var(--text-dark);
}

/* --- Responsive Tweaks --- */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--white);
    padding: 1rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .navbar-buttons {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-text h2,
  .vision-content h2 {
    font-size: 1.8rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 767px) {
  .section-padding,
  .section-padding-lg {
    padding: 3rem 0;
  }

  .hero-section {
    background-attachment: scroll;
  }

  .parallax-banner {
    background-attachment: scroll;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }
}

/* --- Animation --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Cookie Table Styles --- */
.cookie-tables-white .wp-block-table {
  margin-bottom: 2rem;
  overflow-x: auto;
}

.cookie-tables-white .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.cookie-tables-white .wp-block-table th {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
  text-align: left;
}

.cookie-tables-white .wp-block-table th,
.cookie-tables-white .wp-block-table td {
  padding: 12px 10px;
  border: 1px solid #ddd;
}

.cookie-tables-white .wp-block-table tr:nth-child(even) {
  background-color: var(--light-bg);
}

/* --- Legal Pages --- */
.wp-block-heading {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.wp-block-heading strong {
  font-family: var(--font-family);
  font-weight: 700;
}

.content-section ul,
.content-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.content-section ul li,
.content-section ol li {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}
