/* ============================================
   Template 1 - Navy & Gold
   Company: 주식회사 이나인페이 (E9PAY)
   Primary: #003366 | Accent: #FFD700
   Dark: #002244 | Light bg: #f8f9fa
   Font: Inter
   ============================================ */

/* ---- Base ---- */
:root {
  --primary: #003366;
  --accent: #FFD700;
  --dark: #002244;
  --light: #f8f9fa;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { transition: all 0.3s ease; }

/* ---- Navbar ---- */
.custom-navbar {
  background: rgba(255,255,255,0.97) !important;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  padding: 10px 0;
  min-height: 70px;
  transition: all 0.3s ease;
}

.custom-navbar .navbar-brand { padding: 0; }

.custom-navbar .navbar-brand img { height: 3rem; }

.custom-navbar .navbar-caption {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary) !important;
  text-decoration: none;
  margin-left: 10px;
}

.custom-navbar .nav-link {
  color: var(--primary) !important;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 16px !important;
  border-radius: 4px;
  transition: all 0.3s;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
  color: var(--accent) !important;
  background: rgba(0,51,102,0.05);
}

.navbar-buttons .btn {
  background: var(--primary) !important;
  color: var(--white) !important;
  border: none !important;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: all 0.3s;
}

.navbar-buttons .btn:hover {
  background: var(--accent) !important;
  color: var(--dark) !important;
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
}

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

/* ---- Hero Section ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/hero-banner.jpg') center/cover no-repeat;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,34,68,0.7);
  z-index: 1;
}

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

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-content .btn {
  background: var(--accent);
  color: var(--dark);
  border: none;
  padding: 14px 36px;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 6px;
  transition: all 0.3s;
}

.hero-content .btn:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ---- Features Section ---- */
.features-section {
  padding: 80px 0;
  background: var(--light);
}

.features-section .section-title {
  text-align: center;
  margin-bottom: 50px;
}

.features-section .section-title h2 {
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.features-section .section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
}

.feature-card {
  text-align: center;
  padding: 40px 25px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.3s;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.feature-card .icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  transition: all 0.3s;
}

.feature-card:hover .icon-circle {
  background: var(--accent);
  color: var(--dark);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---- Parallax Section ---- */
.parallax-section {
  position: relative;
  padding: 80px 0;
  background: url('../images/hero-alt.jpg') center/cover no-repeat fixed;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,34,68,0.8);
  z-index: 1;
}

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

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

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

/* ---- Service Cards ---- */
.services-section {
  padding: 80px 0;
  background: var(--white);
}

.service-card {
  background: var(--white);
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 35px 25px;
  text-align: center;
  height: 100%;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.service-card .price-wrapper {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.service-card .btn-contact {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px 28px;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s;
}

.service-card .btn-contact:hover {
  background: var(--accent);
  color: var(--dark);
}

/* ---- FAQ Accordion ---- */
.faq-section {
  padding: 80px 0;
  background: var(--light);
}

.faq-section .section-title {
  text-align: center;
  margin-bottom: 50px;
}

.accordion-button {
  font-weight: 600;
  color: var(--dark);
  background: var(--white);
  border: 1px solid #e0e0e0;
  border-radius: 8px !important;
  margin-bottom: 8px;
  padding: 16px 20px;
}

.accordion-button:not(.collapsed) {
  background: var(--white);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary);
}

.accordion-body {
  background: var(--white);
  border-radius: 0 0 8px 8px;
  padding: 20px;
  color: var(--text-light);
  line-height: 1.8;
}

/* ---- Contact Form ---- */
.contact-section {
  padding: 80px 0;
  background: var(--white);
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 16px;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s;
  margin-bottom: 15px;
}

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

.contact-form .btn-submit {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  font-weight: 700;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s;
}

.contact-form .btn-submit:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-2px);
}

/* ---- Contact Info ---- */
.contact-info-section {
  padding: 80px 0;
  background: var(--dark);
  color: var(--white);
}

.contact-info-card {
  text-align: center;
  padding: 30px 20px;
}

.contact-info-card .icon-dark-circle {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.6rem;
}

.contact-info-card h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.contact-info-card p {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

/* ---- Map ---- */
.map-section {
  width: 100%;
  height: 400px;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---- Footer ---- */
.footer-section {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 30px 0;
  text-align: center;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-links {
  margin-bottom: 15px;
}

.footer-links li {
  display: inline;
  margin: 0 12px;
}

.footer-copyright {
  font-size: 0.9rem;
  margin-top: 10px;
}

/* ---- Page Hero (sub-pages) ---- */
.page-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/hero-alt.jpg') center/cover no-repeat;
  background-attachment: fixed;
  margin-top: 70px;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,34,68,0.75);
  z-index: 1;
}

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

.page-hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
}

/* ---- General Section ---- */
.general-section {
  padding: 80px 0;
}

.general-section .section-title {
  margin-bottom: 40px;
}

.general-section h2 {
  font-size: 2.2rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

/* ---- About Page ---- */
.about-image-text {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-image-text img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* ---- Team / Testimonial Cards ---- */
.testimonial-card {
  background: var(--white);
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 35px 25px;
  text-align: center;
  height: 100%;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.testimonial-card .testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 3px solid var(--accent);
}

.testimonial-card h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.testimonial-card .role {
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.testimonial-card .quote {
  color: var(--text-light);
  font-style: italic;
  line-height: 1.7;
}

/* ---- Legal Pages ---- */
.legal-content {
  max-width: 850px;
  margin: 0 auto;
}

.legal-content h3.wp-block-heading {
  font-size: 1.3rem;
  margin-top: 35px;
  margin-bottom: 15px;
  color: var(--dark);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.legal-content h4.wp-block-heading {
  font-size: 1.1rem;
  margin-top: 25px;
  margin-bottom: 10px;
  color: var(--primary);
}

.legal-content p {
  margin-bottom: 12px;
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.legal-content ul li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.legal-content .wp-block-table {
  width: 100%;
  margin: 20px 0;
  overflow-x: auto;
}

.legal-content .wp-block-table table {
  width: 100%;
}

.cookie-tables-white .wp-block-table table,
.cookie-tables-white .wp-block-table th,
.cookie-tables-white .wp-block-table td {
  border: 1px solid black !important;
  border-collapse: collapse !important;
}

.cookie-tables-white .wp-block-table th,
.cookie-tables-white .wp-block-table td {
  padding: 12px 8px !important;
}

.cookie-tables-white .wp-block-table th {
  background: var(--light);
  font-weight: 700;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .hero-content h1 { font-size: 2.5rem; }
  .page-hero-content h1 { font-size: 2rem; }
  .about-image-text { flex-direction: column; }
  .feature-card, .service-card, .testimonial-card { margin-bottom: 20px; }
  .contact-form { margin-bottom: 30px; }
}

@media (max-width: 767px) {
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .hero-content .btn { padding: 12px 28px; font-size: 0.95rem; }
  .page-hero { min-height: 280px; }
  .page-hero-content h1 { font-size: 1.8rem; }
  .general-section { padding: 50px 0; }
  .features-section, .services-section, .faq-section { padding: 50px 0; }
  .contact-info-section { padding: 50px 0; }
}
