/* ============================================
   Template 14: Crimson & Cream
   Company: 주식회사 크로스이엔에프 (CROSS ENF)
   Primary: #8B1A1A | Accent: #D4A574 | Dark: #4A0E0E | Light: #FDF8F4
   Font: Darker Grotesque (300-900)
   ============================================ */

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

/* ----- Root Variables ----- */
:root {
  --primary: #8B1A1A;
  --primary-rgb: 139, 26, 26;
  --accent: #D4A574;
  --dark: #4A0E0E;
  --light-bg: #FDF8F4;
  --white: #ffffff;
  --black: #000000;
  --text-dark: #333333;
  --text-muted: #6c757d;
  --font-family: 'Darker Grotesque', sans-serif;
}

/* ----- Base Styles ----- */
body {
  font-family: var(--font-family);
  font-weight: 400;
  color: var(--text-dark);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

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

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

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

.display-1 { font-weight: 800; }
.display-2 { font-weight: 700; }
.display-4 { font-weight: 500; }
.display-5 { font-weight: 600; }
.display-7 { font-weight: 400; }

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

.custom-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-navbar .navbar-brand img {
  height: 2.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.custom-navbar .navbar-caption strong {
  color: var(--primary);
}

.custom-navbar .nav-link {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-dark) !important;
  padding: 8px 16px !important;
  transition: color 0.3s;
  text-transform: none;
}

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

.custom-navbar .nav-link.active {
  font-weight: 700;
}

.navbar-buttons .btn-black {
  background-color: var(--dark);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
}

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

/* Navbar Toggler */
.custom-navbar .navbar-toggler {
  border: none;
  padding: 4px 8px;
}

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

.custom-navbar .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(74, 14, 14, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

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

.hero-section .label-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-section h1.display-7 {
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.4;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto 30px;
}

.hero-section .btn-danger {
  background-color: var(--primary);
  border-color: var(--primary);
  padding: 14px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}

.hero-section .btn-danger:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 26, 26, 0.3);
}

/* ----- Sub-page Hero ----- */
.sub-hero {
  position: relative;
  min-height: 50vh;
  background: url('../images/hero-alt.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-hero .hero-overlay {
  background: rgba(0, 0, 0, 0.65);
}

.sub-hero h1 {
  font-weight: 800;
  color: var(--white);
  font-size: 3rem;
}

.sub-hero .breadcrumb-text {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ----- Section Styles ----- */
.section-padding {
  padding: 100px 0;
}

.section-padding-sm {
  padding: 70px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 50px;
}

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

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

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

/* ----- Numbered Advantages ----- */
.step-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s;
  height: 100%;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.1);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.step-card h4 {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ----- Features1 (Image + Text) ----- */
.features-section {
  padding: 80px 0;
}

.features-section img {
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  width: 100%;
}

.features-section .content-wrap {
  padding: 20px 30px;
}

.features-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

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

/* ----- Service Cards ----- */
.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 25px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s;
  height: 100%;
}

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

.service-card .icon-wrap {
  width: 80px;
  height: 80px;
  background: var(--light-bg);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-card .icon-wrap i {
  font-size: 2.2rem;
  color: var(--primary);
}

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

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

/* ----- FAQ Accordion ----- */
.accordion-section {
  background-color: var(--light-bg);
}

.accordion-item {
  border: none;
  border-bottom: 1px solid rgba(139, 26, 26, 0.1);
  background: transparent;
}

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

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

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238B1A1A'%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");
}

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

/* ----- Contact Form ----- */
.contact-form-section {
  background-color: var(--white);
}

.contact-form-section .form-control {
  border: 1px solid #e0d5cc;
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--font-family);
  font-size: 1rem;
  margin-bottom: 16px;
  background-color: #fefcf9;
}

.contact-form-section .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(212, 165, 116, 0.25);
}

.contact-form-section textarea.form-control {
  min-height: 140px;
}

.contact-form-section .btn-black {
  background-color: var(--dark);
  color: var(--white);
  border: none;
  padding: 14px 40px;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 4px;
  transition: all 0.3s;
}

.contact-form-section .btn-black:hover {
  background-color: var(--primary);
}

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

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

.contact-info-card .icon-circle {
  width: 70px;
  height: 70px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.contact-info-card h5 {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
}

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

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

/* ----- Testimonials ----- */
.testimonial-card {
  background: var(--white);
  border-radius: 8px;
  padding: 35px 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  margin-bottom: 30px;
  height: calc(100% - 30px);
}

.testimonial-card .quote-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.testimonial-card .testimonial-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

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

/* ----- Client Logo Section ----- */
.client-section {
  background: var(--white);
  padding: 60px 0;
}

.client-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

/* ----- Stats Row ----- */
.stats-section {
  background: var(--primary);
  padding: 60px 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

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

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

/* ----- Footer (Dense Block Style - Template 4/14) ----- */
.site-footer {
  background-color: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 40px 0;
  text-align: center;
}

.site-footer .footer-info {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 2;
}

.site-footer .footer-info a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.site-footer .footer-info a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer .copyright {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ----- Mission / Vision Section ----- */
.mission-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  height: 100%;
}

.mission-card h3 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}

.mission-card p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* ----- Cookie Consent ----- */
.cookie-consent-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
  padding: 16px 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-consent-bar.show {
  transform: translateY(0);
}

.cookie-consent-bar .cookie-text {
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.cookie-consent-bar .cookie-text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-consent-bar .btn-accept {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 8px 24px;
  border-radius: 4px;
  font-weight: 600;
  margin-left: 8px;
}

.cookie-consent-bar .btn-accept:hover {
  background: var(--accent);
}

.cookie-consent-bar .btn-reject {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid #ddd;
  padding: 8px 24px;
  border-radius: 4px;
  font-weight: 500;
}

/* ----- Legal Pages ----- */
.legal-content {
  padding-top: 120px;
  padding-bottom: 80px;
}

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

.legal-content h3.wp-block-heading {
  margin-top: 36px;
  margin-bottom: 16px;
}

.legal-content h3.wp-block-heading strong {
  color: var(--primary);
  font-size: 1.2rem;
}

.legal-content h4.wp-block-heading strong {
  color: var(--dark);
  font-size: 1.05rem;
}

.legal-content p {
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 12px;
}

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

.legal-content ul li {
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.legal-content .wp-block-table {
  margin: 24px 0;
  overflow-x: auto;
}

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

.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: #f5f0eb;
  font-weight: 700;
  color: var(--dark);
}

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

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

/* ----- CTA Section ----- */
.cta-section {
  background: var(--primary);
  padding: 70px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.cta-section .btn-outline-light {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 12px 36px;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 4px;
  transition: all 0.3s;
}

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

/* ----- Responsive ----- */
@media (max-width: 991px) {
  .hero-section h1.display-7 {
    font-size: 1.8rem;
  }

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

  .features-section .content-wrap {
    padding: 30px 0;
  }

  .sub-hero h1 {
    font-size: 2.2rem;
  }

  .section-padding {
    padding: 60px 0;
  }

  .custom-navbar .navbar-collapse {
    background: var(--white);
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 8px;
  }
}

@media (max-width: 767px) {
  .hero-section h1.display-7 {
    font-size: 1.5rem;
  }

  .hero-section .label-text {
    font-size: 1rem;
  }

  .hero-section .btn-danger {
    padding: 12px 30px;
    font-size: 1rem;
  }

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

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

  .features-section h2 {
    font-size: 1.6rem;
  }

  .sub-hero {
    min-height: 35vh;
  }
}
