/* ============================================================
   Template 7: "Slate & Coral"
   Company: 주식회사 헥토파이낸셜 (Hecto Financial)
   Primary: #2C3E50 | Accent: #E8988A | Dark: #1A252F | Light bg: #FDF9F8
   Fonts: Stack Sans Headline (display) + Epunda Sans (body)
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Epilogue:ital,wght@0,100..900;1,100..900&display=swap');

/* Epunda Sans is not on Google Fonts. Using Epilogue as closest substitute.
   Stack Sans Headline substitute: Space Grotesk bold weights */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

:root {
  --primary: #2C3E50;
  --accent: #E8988A;
  --dark: #1A252F;
  --light-bg: #FDF9F8;
  --white: #FFFFFF;
  --text-dark: #2C3E50;
  --text-muted: #6c757d;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Epilogue', sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--light-bg);
  margin: 0;
  padding: 0;
}

/* ---- Display Font for Headings ---- */
h1, h2, h3, h4, .display-1, .display-2, .display-4, .display-5, .display-7, .navbar-caption {
  font-family: var(--font-display);
}

.display-1 { font-size: 3.5rem; font-weight: 700; }
.display-2 { font-size: 2.5rem; font-weight: 600; }
.display-4 { font-size: 1.125rem; font-weight: 500; }
.display-5 { font-size: 1.5rem; font-weight: 600; }
.display-7 { font-size: 1rem; font-weight: 500; }

/* ---- Navbar ---- */
.custom-navbar {
  background: rgba(253, 249, 248, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 10px rgba(0,0,0,0.08);
  padding: 0.5rem 0;
}

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

.card-wrap { border-radius: 8px; overflow: hidden; }
.little-radius { border-radius: 4px; }
.middle-radius { border-radius: 12px; }

.navbar-nav.nav-dropdown.card-wrap.middle-radius {
  background: transparent;
}

.custom-navbar .nav-link {
  color: var(--text-dark) !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s;
  font-family: var(--font-body);
}

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

.navbar-buttons .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s;
}

.navbar-buttons .btn-primary:hover {
  background: #d48174;
  border-color: #d48174;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,37,47,0.85) 0%, rgba(44,62,80,0.7) 100%);
  z-index: 1;
}

.gradient-wrapper {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(232,152,138,0.3) 0%, transparent 60%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
}

.hero-content h1 {
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-content .subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  font-family: var(--font-body);
}

.hero-content .btn {
  background: var(--accent);
  border: none;
  color: white;
  padding: 0.8rem 2.2rem;
  font-size: 1.1rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
}

.hero-content .btn:hover {
  background: #d48174;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232,152,138,0.4);
}

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

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

.section-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 3rem;
  max-width: 600px;
}

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

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

.bg-dark-section .section-subtitle {
  color: rgba(255,255,255,0.7);
}

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

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

/* ---- Feature Cards ---- */
.feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s;
  height: 100%;
  text-align: center;
}

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

.feature-card .icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.feature-card p {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.6;
}

/* ---- Service Image Cards ---- */
.service-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  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 10px 30px rgba(0,0,0,0.12);
}

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

.service-card .card-body {
  padding: 1.5rem;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.service-card p {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.6;
}

.service-card .btn-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---- Advantages Stacked ---- */
.advantage-item {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.advantage-item .adv-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
}

.advantage-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--primary);
}

.advantage-item p {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.5;
}

/* ---- Contact Form ---- */
.contact-form-wrapper {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.contact-form-wrapper .form-control {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.contact-form-wrapper .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,152,138,0.2);
}

.contact-form-wrapper textarea.form-control {
  min-height: 120px;
}

.contact-form-wrapper .btn-submit {
  background: var(--accent);
  border: none;
  color: white;
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s;
}

.contact-form-wrapper .btn-submit:hover {
  background: #d48174;
}

/* ---- Contact Info Cards ---- */
.contact-info-card {
  background: var(--dark);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  color: var(--white);
  height: 100%;
  transition: all 0.3s;
}

.contact-info-card:hover {
  transform: translateY(-3px);
}

.contact-info-card .ci-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(232,152,138,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.5rem;
  color: var(--accent);
}

.contact-info-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-info-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* ---- Map ---- */
.map-wrapper {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
}

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

/* ---- FAQ Accordion ---- */
.accordion-item {
  border: none;
  margin-bottom: 0.8rem;
  background: transparent;
}

.accordion-button {
  background: var(--white);
  border-radius: 12px !important;
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: all 0.3s;
}

.accordion-button:not(.collapsed) {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(44,62,80,0.2);
}

.accordion-button::after {
  filter: brightness(0) saturate(100%);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  background: var(--white);
  border-radius: 0 0 12px 12px;
  padding: 1.2rem 1.5rem;
  color: #5a6a7a;
  line-height: 1.7;
}

/* ---- Footer ---- */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer .footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

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

.footer .copyright {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

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

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(232,152,138,0.25) 0%, transparent 60%);
}

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

.page-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.85;
}

/* ---- About Page Image+Text ---- */
.about-img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ---- Team Card ---- */
.team-card {
  text-align: center;
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s;
}

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

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.2rem;
  border: 3px solid var(--accent);
}

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

.team-card .role {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}

/* ---- Testimonials ---- */
.testimonial-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  height: 100%;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  font-family: serif;
  line-height: 1;
}

.testimonial-card .quote {
  font-size: 1rem;
  line-height: 1.7;
  color: #5a6a7a;
  margin-bottom: 1.5rem;
  font-style: italic;
}

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

.testimonial-card .author-role {
  font-size: 0.85rem;
  color: #6c757d;
}

/* ---- Stats ---- */
.stat-card {
  text-align: center;
  padding: 2rem;
}

.stat-card .stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-display);
}

.stat-card .stat-label {
  font-size: 1rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

/* ---- Legal Pages ---- */
.legal-content h3.wp-block-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

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

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

.legal-content li {
  line-height: 1.7;
  margin-bottom: 0.5rem;
  color: #444;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.legal-content table th,
.legal-content table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.legal-content table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

/* ---- Cookie consent ---- */
.cookie-alert {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 1.2rem 1.5rem;
  z-index: 9999;
  max-width: 600px;
  width: 90%;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.9rem;
}

.cookie-alert p {
  margin: 0;
  flex: 1 1 100%;
  text-align: center;
  color: #424a4d;
}

.cookie-alert .btn-accept {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-alert .btn-reject {
  background: transparent;
  color: #424a4d;
  border: 1px solid #ddd;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .display-1 { font-size: 2.5rem; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 2rem; }
  .page-hero { padding: 6rem 0 3rem; }
  .page-hero h1 { font-size: 2.2rem; }
  .contact-form-wrapper { padding: 1.5rem; }
}

/* ---- Utility ---- */
.text-primary-brand { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary-brand { background: var(--primary) !important; }
.bg-accent { background: var(--accent) !important; }
.bg-dark-brand { background: var(--dark) !important; }
.btn-accent { background: var(--accent); border: none; color: white; border-radius: 50px; padding: 0.6rem 1.8rem; font-weight: 600; }
.btn-accent:hover { background: #d48174; color: white; }
.btn-outline-accent { border: 2px solid var(--accent); color: var(--accent); border-radius: 50px; padding: 0.6rem 1.8rem; font-weight: 600; background: transparent; }
.btn-outline-accent:hover { background: var(--accent); color: white; }
