/* ============================================
   Template 5: "Dark & Crimson"
   Company: 주식회사 더리드페이먼츠
   Primary #1a1a2e | Accent #E94560 | Dark #0F0F1A | Light #F5F5FA
   Font: Inter Tight
   ============================================ */

:root {
  --primary: #1a1a2e;
  --accent: #E94560;
  --dark: #0F0F1A;
  --light-bg: #F5F5FA;
  --white: #ffffff;
  --text-muted: #6c757d;
}

/* ---- Base ---- */
body {
  font-family: 'Inter Tight', sans-serif;
  color: #333;
  background-color: var(--white);
  overflow-x: hidden;
}

a { text-decoration: none; }
a:hover { text-decoration: underline; }

.display-1, .display-2, .display-4, .display-5, .display-7 {
  font-family: 'Inter Tight', sans-serif;
}

/* ---- Navbar ---- */
.custom-navbar {
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 12px 0;
  transition: all 0.3s ease;
}

.custom-navbar .navbar-brand img {
  height: 3rem;
  border-radius: 8px;
}

.custom-navbar .navbar-caption {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary) !important;
}

.custom-navbar .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary) !important;
  margin: 0 4px;
  padding: 8px 14px !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
  color: var(--accent) !important;
  background-color: rgba(233, 69, 96, 0.08);
}

.navbar-buttons .btn {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
}

.btn-primary:hover {
  background-color: #d63851 !important;
  border-color: #d63851 !important;
}

.btn-black {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

.btn-black:hover {
  background-color: var(--dark) !important;
  border-color: var(--dark) !important;
}

.btn-black-outline {
  background: transparent !important;
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
}

.btn-black-outline:hover {
  background: var(--primary) !important;
  color: #fff !important;
}

/* ---- Hero Section ---- */
.hero-section {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-section .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(15, 15, 26, 0.85) 0%, rgba(26, 26, 46, 0.75) 100%);
}

.hero-section .container {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-section .hero-heading {
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1.15;
  color: #fff;
}

.hero-section .border-wrapper {
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin: 30px 0;
}

.hero-section .hero-desc {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
}

.hero-section .hero-cta .btn {
  font-weight: 600;
  padding: 14px 36px;
  font-size: 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

/* ---- Section Styles ---- */
.section-heading {
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---- Feature Cards ---- */
.feature-card {
  padding: 30px 25px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  height: 100%;
  border-left: 4px solid transparent;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-left-color: var(--accent);
}

.feature-card .feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(233, 69, 96, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--accent);
}

.feature-card h4 {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ---- Parallax Section ---- */
.parallax-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  padding: 100px 0;
  color: #fff;
}

.parallax-section .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 15, 26, 0.85);
}

.parallax-section .container {
  position: relative;
  z-index: 2;
}

/* ---- Image + Text Sections ---- */
.img-text-section {
  padding: 100px 0;
}

.img-text-section img {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 100%;
  object-fit: cover;
}

.img-text-section .text-content h3 {
  font-weight: 700;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

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

/* ---- Embla Carousel ---- */
.embla {
  overflow: hidden;
  position: relative;
}

.embla__viewport {
  overflow: hidden;
  width: 100%;
}

.embla__container {
  display: flex;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

.embla__slide {
  position: relative;
  flex: 0 0 100%;
  padding: 0 15px;
}

@media (min-width: 768px) {
  .embla__slide { flex: 0 0 50%; }
}

@media (min-width: 992px) {
  .embla__slide { flex: 0 0 33.333%; }
}

.client-slide {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  height: 100%;
}

.client-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.client-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.client-slide .slide-content {
  padding: 20px;
}

.client-slide h5 {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.client-slide p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.embla__button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.embla__button:hover {
  background: var(--accent);
}

.embla__button--prev { left: -10px; }
.embla__button--next { right: -10px; }

.embla__button:disabled {
  opacity: 0.3;
  cursor: default;
}

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

.accordion-item {
  border: none;
  margin-bottom: 10px;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.accordion-button {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.05rem;
  padding: 18px 24px;
  background: #fff;
}

.accordion-button:not(.collapsed) {
  color: var(--accent);
  background-color: #fff;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0,0,0,0.1);
}

.accordion-body {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ---- Contact Form ---- */
.contact-section {
  padding: 100px 0;
}

.contact-form-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

.contact-form-wrapper .form-control {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background-color: #fafafa;
}

.contact-form-wrapper .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
  background-color: #fff;
}

.contact-form-wrapper .form-control::placeholder {
  color: #aaa;
}

.contact-form-wrapper .btn-submit {
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.contact-form-wrapper .btn-submit:hover {
  background: #d63851;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.3);
}

/* ---- Contact Info Cards ---- */
.contact-info-card {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.contact-info-card .info-icon {
  width: 60px;
  height: 60px;
  background: rgba(233, 69, 96, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.5rem;
  color: var(--accent);
}

.contact-info-card h5 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 1rem;
}

.contact-info-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ---- Map ---- */
.map-section iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

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

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 15px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer .footer-links li {
  display: inline;
}

.site-footer .footer-links a {
  color: var(--accent) !important;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.site-footer .footer-links a:hover {
  color: #ff6b81 !important;
  text-decoration: none;
}

.site-footer .copyright {
  font-size: 0.85rem;
  text-align: center;
}

/* ---- Page Hero (sub-pages) ---- */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 160px 0 80px;
  color: #fff;
}

.page-hero .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(15, 15, 26, 0.88) 0%, rgba(26, 26, 46, 0.78) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-weight: 800;
  font-size: 2.8rem;
}

/* ---- Legal Pages ---- */
.legal-content {
  padding: 60px 0;
}

.legal-content h2 {
  font-weight: 700;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.legal-content h3.wp-block-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-bg);
}

.legal-content h4.wp-block-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul {
  color: #555;
  line-height: 1.8;
  padding-left: 1.5rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

.legal-content .container a {
  color: #000000;
  text-decoration: none;
}

.legal-content .container a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Cookie table styles */
.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-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .hero-section .hero-heading { font-size: 2.5rem; }
  .section-heading { font-size: 2rem; }
  .page-hero h1 { font-size: 2rem; }
  .page-hero { padding: 140px 0 60px; }
  .parallax-section { background-attachment: scroll; }
  .img-text-section { padding: 60px 0; }
  .contact-section { padding: 60px 0; }
  .faq-section { padding: 60px 0; }
}

@media (max-width: 767px) {
  .hero-section .hero-heading { font-size: 2rem; }
  .hero-section .hero-desc { font-size: 1rem; }
  .hero-section .hero-cta { margin-top: 20px; }
  .section-heading { font-size: 1.75rem; }
  .embla__button--prev { left: 0; }
  .embla__button--next { right: 0; }
  .site-footer .footer-links { flex-direction: column; align-items: center; gap: 6px; }
}
