/* ============================================================
   Template 3: Amethyst & Amber — BOLD MODERN MANAGER
   Company: 주식회사 센트비 (SentBe)
   Primary: #383193 | Accent: #D37530 | Dark: #1C1750 | Light bg: #F8F6FF
   Fonts: Young Serif (headings) + Gabarito (body)
   ============================================================ */

/* === Google Fonts Import === */
@import url('https://fonts.googleapis.com/css2?family=Young+Serif&family=Gabarito:wght@400;500;600;700;800;900&display=swap');

/* === Root Variables === */
:root {
  --primary: #383193;
  --primary-rgb: 56, 49, 147;
  --accent: #D37530;
  --accent-rgb: 211, 117, 48;
  --dark: #1C1750;
  --dark-rgb: 28, 23, 80;
  --light-bg: #F8F6FF;
  --light-bg-rgb: 248, 246, 255;
  --white: #ffffff;
  --black: #1a1a2e;
  --gray: #6c757d;
  --font-heading: 'Young Serif', serif;
  --font-body: 'Gabarito', sans-serif;
}

/* === Base === */
body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
}

a {
  color: var(--primary);
  transition: color 0.3s ease;
}

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

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 50px;
  padding: 12px 32px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #b8652a;
  border-color: #b8652a;
  color: var(--white);
}

.btn-black {
  background-color: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.btn-black:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

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

.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--white);
}

/* === Navbar (Template 3: NO navbar-fixed-top, menu_box) === */
.menu_box {
  background-color: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding-top: 10px;
  padding-bottom: 10px;
}

.menu_box .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 0;
}

.menu_box .navbar-brand img {
  height: 3.2rem;
}

.menu_box .navbar-brand a.navbar-brand {
  padding: 0;
  margin: 0;
}

.menu_box .navbar-caption {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--primary) !important;
  text-decoration: none;
}

.menu_box .navbar-toggler {
  border: none;
  padding: 8px;
  outline: none;
  margin-left: auto;
}

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

.menu_box .navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(56, 49, 147, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.menu_box .navbar-collapse {
  flex-grow: 0;
}

.menu_box .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--primary) !important;
  padding: 8px 16px !important;
  transition: color 0.3s ease;
}

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

.mbr-section-btn-main {
  margin-left: 12px;
}

.mbr-section-btn-main .btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mbr-section-btn-main .btn .bi-arrow-right {
  font-size: 0.9rem;
}

/* Ensure navbar items align properly */
.menu_box .navbar-nav {
  align-items: center;
}

@media (min-width: 992px) {
  .menu_box .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
}

/* === Parallax Hero === */
.parallax-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

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

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

.parallax-hero .display-1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.parallax-hero .lead {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.parallax-hero .btn i {
  margin-left: 6px;
}

/* === Sections === */
.section {
  padding: 100px 0;
}

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

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 3rem;
}

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

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

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

/* === Full-Bleed Split (container-fluid) === */
.split-section {
  padding: 0;
}

.split-section .row {
  margin: 0;
}

.split-section .image-col {
  padding: 0;
  min-height: 500px;
  background-size: cover;
  background-position: center;
}

.split-section .text-col {
  padding: 80px 60px;
  display: flex;
  align-items: center;
}

.split-section .text-col .content-wrapper {
  max-width: 560px;
}

/* === Border Wrapper === */
.border-wrapper {
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin-bottom: 2rem;
}

.border-wrap {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  margin: 60px 0;
}

/* === 4-Column Services Grid === */
.service-card {
  text-align: center;
  padding: 40px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  background: var(--white);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(56, 49, 147, 0.12);
}

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

.service-card:hover .icon-circle {
  background: var(--primary);
  color: var(--white);
}

.service-card h4 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card p {
  font-family: var(--font-body);
  color: var(--gray);
}

/* === Team Cards === */
.team-card {
  text-align: center;
  margin-bottom: 30px;
}

.team-card .team-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 4px solid var(--light-bg);
  transition: border-color 0.3s ease;
}

.team-card:hover .team-img {
  border-color: var(--accent);
}

.team-card h4 {
  font-family: var(--font-heading);
  color: var(--dark);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.team-card .role {
  font-family: var(--font-body);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

/* === Achievement Stats === */
.achievement-card {
  text-align: center;
  padding: 30px 20px;
}

.achievement-card .stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--primary);
  display: block;
  line-height: 1.1;
}

.achievement-card .stat-label {
  font-family: var(--font-body);
  color: var(--gray);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* === FAQ Accordion === */
.faq-section .accordion-item {
  border: none;
  margin-bottom: 12px;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.faq-section .accordion-button {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  background: var(--white);
  padding: 20px 24px;
  border-radius: 8px !important;
  box-shadow: none;
}

.faq-section .accordion-button:not(.collapsed) {
  color: var(--primary);
  background: var(--light-bg);
  box-shadow: none;
}

.faq-section .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23383193'%3e%3cpath fill-rule='evenodd' d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3e%3c/svg%3e");
}

.faq-section .accordion-body {
  font-family: var(--font-body);
  color: var(--gray);
  padding: 0 24px 20px;
  line-height: 1.8;
}

/* === Contact Form === */
.contact-form-wrapper {
  background: var(--white);
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.contact-form-wrapper .form-control {
  font-family: var(--font-body);
  border: 2px solid #e0dce8;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--light-bg);
}

.contact-form-wrapper .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(56, 49, 147, 0.1);
  outline: none;
  background: var(--white);
}

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

/* === Contact Info Row === */
.contact-info-row .info-card {
  text-align: center;
  padding: 40px 20px;
}

.contact-info-row .info-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: var(--primary);
}

.contact-info-row h5 {
  font-family: var(--font-heading);
  color: var(--dark);
  margin-bottom: 4px;
}

.contact-info-row p {
  font-family: var(--font-body);
  color: var(--gray);
}

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

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

/* === Footer (Template 3: footer01 tokenm5, 2-column, flex-row-reverse) === */
.footer01 {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 40px;
}

.footer01 .row {
  flex-direction: row-reverse;
}

.footer01 .list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer01 .list .item-wrap {
  display: inline-block;
}

.footer01 .list .item-wrap a {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer01 .list .item-wrap a:hover {
  color: var(--accent);
}

.footer01 .copyright {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer01 a {
  text-decoration: none;
}

/* === Card Wrapper === */
.card-wrapper {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* === Image Styles === */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-radius {
  border-radius: 12px;
}

/* === Divider === */
.section-divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 40px auto;
  border-radius: 2px;
}

/* === Page Header (sub-pages) === */
.page-header {
  background: linear-gradient(135deg, var(--dark), var(--primary));
  padding: 120px 0 60px;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-family: var(--font-body);
  font-size: 1.15rem;
  opacity: 0.85;
}

/* === Responsive === */
@media (max-width: 991px) {
  .parallax-hero {
    min-height: 70vh;
    background-attachment: scroll;
  }

  .parallax-hero .display-1 {
    font-size: 2.5rem;
  }

  .split-section .text-col {
    padding: 50px 30px;
  }

  .section {
    padding: 60px 0;
  }

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

  .footer01 .list {
    justify-content: center;
    margin-bottom: 20px;
  }

  .footer01 .row {
    flex-direction: column;
    text-align: center;
  }

  .contact-form-wrapper {
    padding: 30px 20px;
  }
}

@media (max-width: 767px) {
  .parallax-hero .display-1 {
    font-size: 2rem;
  }

  .parallax-hero .lead {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 24px;
  }

  .split-section .image-col {
    min-height: 300px;
  }
}

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

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

.legal-content .container a:hover {
  color: #00008B;
  text-decoration: underline;
}

.legal-content h3.wp-block-heading {
  font-family: var(--font-heading);
  color: var(--dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content h3.wp-block-heading strong {
  font-weight: 400;
}

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

.legal-content p {
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content ul {
  font-family: var(--font-body);
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

/* Cookie Table Black Border Style */
.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(--dark);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
}

.cookie-tables-white .wp-block-table td {
  font-family: var(--font-body);
}

.wp-block-table {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

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

.has-fixed-layout {
  table-layout: fixed;
}

/* Cookie banner styles */
.cookies-alert {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgb(255, 255, 255);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 20px 0;
  display: none;
}

.cookies-alert.show {
  display: block;
}

.cookies-alert .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.cookies-alert .cookie-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #424a4d;
  flex: 1;
  min-width: 260px;
}

.cookies-alert .cookie-text a {
  color: #424a4d;
  text-decoration: underline;
}

.cookies-alert .cookie-buttons {
  display: flex;
  gap: 12px;
}

.cookies-alert .cookie-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookies-alert .cookie-btn.accept {
  background: var(--primary);
  color: white;
}

.cookies-alert .cookie-btn.accept:hover {
  background: var(--dark);
}

.cookies-alert .cookie-btn.reject {
  background: #ffffff;
  color: #424a4d;
  border: 1px solid #ddd;
}

.cookies-alert .cookie-btn.reject:hover {
  background: #f5f5f5;
}
