/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */

/* =========================================================
   장수에프앤에스 / 장수마을 Divi Global CSS
   Version: 1.0
   ========================================================= */

/* ------------------------------
   1) Font Setting
   ------------------------------ */

/* 빠르게 적용하려면 사용
   권장: 실제 운영 시에는 폰트를 서버에 직접 업로드하거나
   공식 방식으로 head에 로드하는 것이 더 좋습니다.
*/
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

/* ------------------------------
   2) Root Variables
   ------------------------------ */
:root {
  /* Brand Color */
  --color-primary: #0F3A5F;     /* 딥네이비 */
  --color-primary-2: #174a77;
  --color-accent: #1FB5AD;      /* 민트 */
  --color-accent-2: #17a299;
  --color-highlight: #FF6B35;   /* 오렌지 */
  --color-text: #1f2937;        /* 본문 */
  --color-text-light: #4b5563;  /* 보조텍스트 */
  --color-border: #d9e2ec;
  --color-bg: #ffffff;
  --color-bg-soft: #f7fafc;
  --color-bg-deep: #f2f6f9;

  /* Typography */
  --font-base: "Pretendard", "SUIT", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-weight-black: 800;

  --fs-display: clamp(2.3rem, 4vw, 3.8rem);
  --fs-h1: clamp(2.0rem, 3vw, 3.1rem);
  --fs-h2: clamp(1.6rem, 2.2vw, 2.3rem);
  --fs-h3: clamp(1.25rem, 1.8vw, 1.7rem);
  --fs-h4: clamp(1.1rem, 1.3vw, 1.3rem);
  --fs-body-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-body-sm: 0.9375rem;
  --fs-caption: 0.875rem;

  --lh-tight: 1.2;
  --lh-heading: 1.35;
  --lh-body: 1.8;
  --lh-relaxed: 1.95;

  --letter-tight: -0.03em;
  --letter-normal: -0.015em;

  /* Radius / Shadow */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;

  --shadow-soft: 0 10px 30px rgba(15, 58, 95, 0.08);
  --shadow-card: 0 12px 34px rgba(15, 58, 95, 0.10);
  --shadow-hover: 0 18px 40px rgba(15, 58, 95, 0.14);

  /* Layout */
  --container-max: 1280px;
  --section-space: 110px;
  --section-space-md: 80px;
  --section-space-sm: 56px;

  /* Button */
  --btn-height: 56px;
  --btn-padding-x: 28px;
}

/* ------------------------------
   3) Base Reset
   ------------------------------ */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  background: var(--color-bg);
  letter-spacing: var(--letter-normal);
  word-break: keep-all;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body, input, textarea, select, button {
  font-family: var(--font-base);
}

/* Divi container width */
.et_pb_row,
.container,
.et-l--header .et_pb_row,
.et-l--footer .et_pb_row {
  width: 92%;
  max-width: var(--container-max);
}

/* ------------------------------
   4) Typography
   ------------------------------ */
h1, h2, h3, h4, h5, h6,
.et_pb_module_header,
.et_pb_text h1, .et_pb_text h2, .et_pb_text h3,
.et_pb_text h4, .et_pb_text h5, .et_pb_text h6 {
  margin: 0 0 0.8em;
  color: var(--color-primary);
  font-family: var(--font-base);
  font-weight: var(--font-weight-black);
  line-height: var(--lh-heading);
  letter-spacing: var(--letter-tight);
  word-break: keep-all;
}

h1,
.et_pb_text h1,
.et_pb_fullwidth_header .et_pb_fullwidth_header_container .header-content h1 {
  font-size: var(--fs-h1);
  font-weight: var(--font-weight-black);
  line-height: 1.18;
  margin-bottom: 0.5em;
}

h2,
.et_pb_text h2,
.et_pb_module_header {
  font-size: var(--fs-h2);
  margin-bottom: 0.65em;
}

h3,
.et_pb_text h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.6em;
}

h4,
.et_pb_text h4 {
  font-size: var(--fs-h4);
  margin-bottom: 0.55em;
}

h5,
.et_pb_text h5,
h6,
.et_pb_text h6 {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
}

p,
.et_pb_text p,
.et_pb_blurb_description,
.et_pb_fullwidth_header p,
.et_pb_slide_description,
.et_pb_post p {
  margin: 0 0 1.15em;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
}

.lead,
.is-lead,
.et_pb_text .lead {
  font-size: var(--fs-body-lg);
  line-height: 1.9;
  color: var(--color-text-light);
  font-weight: var(--font-weight-medium);
}

small,
.text-small {
  font-size: var(--fs-body-sm);
  color: var(--color-text-light);
}

strong, b {
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

/* 리스트 */
ul, ol {
  margin: 0 0 1.2em 1.25em;
  padding: 0;
}

li {
  margin-bottom: 0.45em;
  line-height: 1.75;
  color: var(--color-text);
}

/* ------------------------------
   5) Link
   ------------------------------ */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--color-accent-2);
}

.et_pb_text a,
.entry-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ------------------------------
   6) Section / Spacing
   ------------------------------ */
.et_pb_section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.et_pb_section.et_pb_with_background {
  background-size: cover;
  background-position: center center;
}

.section-tight {
  padding-top: 70px !important;
  padding-bottom: 70px !important;
}

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

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

/* ------------------------------
   7) Hero / Header
   ------------------------------ */
.et_pb_fullwidth_header {
  padding: 120px 0 110px;
  background: linear-gradient(135deg, rgba(15,58,95,0.97) 0%, rgba(23,74,119,0.95) 55%, rgba(31,181,173,0.88) 100%);
}

.et_pb_fullwidth_header .header-content h1,
.et_pb_fullwidth_header .et_pb_fullwidth_header_subhead,
.et_pb_fullwidth_header p {
  color: #fff;
}

.et_pb_fullwidth_header .et_pb_fullwidth_header_subhead {
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.02em;
  opacity: 0.95;
  margin-bottom: 14px;
}

.et_pb_fullwidth_header p {
  font-size: 1.06rem;
  line-height: 1.9;
  max-width: 780px;
  opacity: 0.95;
}

/* ------------------------------
   8) Divi Button
   ------------------------------ */
.et_pb_button,
.et_pb_button_module_wrapper .et_pb_button,
button,
input[type="submit"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-height);
  padding: 0 var(--btn-padding-x);
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff !important;
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-soft);
  transition: all 0.25s ease;
}

.et_pb_button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.et_pb_button.et_pb_bg_layout_light {
  color: #fff !important;
}

/* 보조 버튼 */
.btn-secondary .et_pb_button,
.et_pb_button.btn-secondary {
  background: #fff !important;
  color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}

.btn-secondary .et_pb_button:hover,
.et_pb_button.btn-secondary:hover {
  background: var(--color-primary) !important;
  color: #fff !important;
}

/* 강조 버튼 */
.btn-highlight .et_pb_button,
.et_pb_button.btn-highlight {
  background: var(--color-highlight) !important;
  border-color: var(--color-highlight) !important;
}

.btn-highlight .et_pb_button:hover,
.et_pb_button.btn-highlight:hover {
  background: #e85b27 !important;
  border-color: #e85b27 !important;
}

/* ------------------------------
   9) Card / Blurb / Box
   ------------------------------ */
.et_pb_blurb,
.card-box,
.et_pb_promo,
.et_pb_team_member,
.et_pb_testimonial,
.et_pb_pricing,
.et_pb_post {
  border-radius: var(--radius-md);
}

.blurb-card .et_pb_blurb_content,
.card-box,
.et_pb_promo,
.et_pb_team_member_description,
.et_pb_testimonial_description {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  transition: all 0.28s ease;
}

.blurb-card .et_pb_blurb_content:hover,
.card-box:hover,
.et_pb_promo:hover,
.et_pb_post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.et_pb_blurb .et_pb_module_header {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.et_pb_blurb_description {
  color: var(--color-text-light);
}

/* ------------------------------
   10) Image
   ------------------------------ */
img {
  max-width: 100%;
  height: auto;
}

.et_pb_image img,
.wp-post-image,
.entry-featured-image-url img {
  border-radius: var(--radius-sm);
}

/* ------------------------------
   11) Blog / Post
   ------------------------------ */
.et_pb_post,
.blog .post,
.single .post {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.et_pb_post .entry-title,
.single .entry-title {
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--color-primary);
}

.post-meta,
.et_pb_post .post-meta {
  font-size: var(--fs-caption);
  color: var(--color-text-light);
}

.single .et_pb_post,
.single-post .et_pb_post {
  padding: 32px;
}

/* 블로그 본문 가독성 */
.entry-content p,
.et_pb_post_content p,
.single .post-content p {
  margin-bottom: 1.2em;
  line-height: var(--lh-relaxed);
}

.entry-content h2,
.et_pb_post_content h2 {
  margin-top: 1.8em;
  margin-bottom: 0.7em;
  padding-bottom: 0.25em;
  border-bottom: 2px solid rgba(15,58,95,0.08);
}

.entry-content h3,
.et_pb_post_content h3 {
  margin-top: 1.5em;
}

/* ------------------------------
   12) Form
   ------------------------------ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="date"],
select,
textarea,
.et_pb_contact_form input,
.et_pb_contact_form textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  font-size: 1rem;
  color: var(--color-text);
  box-shadow: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

textarea,
.et_pb_contact_form textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.et_pb_contact_form input:focus,
.et_pb_contact_form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(31, 181, 173, 0.12);
}

label,
.et_pb_contact_form_label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
}

/* ------------------------------
   13) Header / Menu
   ------------------------------ */
#main-header {
  box-shadow: 0 6px 22px rgba(15, 58, 95, 0.08);
}

#top-menu > li > a,
.et_mobile_menu li a {
  font-size: 0.97rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

#top-menu li.current-menu-item > a,
#top-menu li.current_page_item > a {
  color: var(--color-accent);
}

#main-header.et-fixed-header {
  box-shadow: 0 10px 30px rgba(15, 58, 95, 0.12);
}

/* ------------------------------
   14) Footer
   ------------------------------ */
#main-footer {
  background: var(--color-primary);
}

#footer-info,
#main-footer,
.footer-widget,
.footer-widget a {
  color: rgba(255,255,255,0.92) !important;
}

.footer-widget .title {
  color: #fff !important;
  font-weight: var(--font-weight-bold);
}

/* ------------------------------
   15) Utility Class
   ------------------------------ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.color-primary { color: var(--color-primary) !important; }
.color-accent { color: var(--color-accent) !important; }
.color-highlight { color: var(--color-highlight) !important; }
.bg-soft { background: var(--color-bg-soft) !important; }
.bg-deep { background: var(--color-bg-deep) !important; }

.max-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.max-960 { max-width: 960px; margin-left: auto; margin-right: auto; }

/* 제목 아래 강조선 */
.section-title-line h2,
.section-title-line .et_pb_module_header {
  position: relative;
  padding-bottom: 14px;
}

.section-title-line h2::after,
.section-title-line .et_pb_module_header::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-highlight));
}

/* CTA 박스 */
.cta-box {
  background: linear-gradient(135deg, #0F3A5F 0%, #174a77 100%);
  border-radius: var(--radius-lg);
  padding: 44px 34px;
  box-shadow: var(--shadow-card);
  color: #fff;
}

.cta-box h2,
.cta-box h3,
.cta-box p {
  color: #fff !important;
}

/* ------------------------------
   16) Mobile
   ------------------------------ */
@media (max-width: 980px) {
  :root {
    --section-space: 78px;
    --btn-height: 52px;
  }

  .et_pb_section {
    padding-top: var(--section-space-md);
    padding-bottom: var(--section-space-md);
  }

  .et_pb_fullwidth_header {
    padding: 90px 0 82px;
  }

  h1,
  .et_pb_text h1,
  .et_pb_fullwidth_header .et_pb_fullwidth_header_container .header-content h1 {
    line-height: 1.22;
  }

  p,
  .et_pb_text p,
  .et_pb_blurb_description {
    line-height: 1.75;
  }

  .single .et_pb_post,
  .single-post .et_pb_post {
    padding: 24px;
  }
}

@media (max-width: 767px) {
  :root {
    --section-space: 60px;
    --fs-body: 0.98rem;
    --fs-body-lg: 1.05rem;
  }

  html {
    font-size: 15.5px;
  }

  .et_pb_section {
    padding-top: var(--section-space-sm);
    padding-bottom: var(--section-space-sm);
  }

  .et_pb_row,
  .container {
    width: 90%;
  }

  .et_pb_fullwidth_header {
    padding: 74px 0 64px;
  }

  .et_pb_fullwidth_header p {
    font-size: 1rem;
    line-height: 1.8;
  }

  .blurb-card .et_pb_blurb_content,
  .card-box,
  .et_pb_promo,
  .et_pb_team_member_description,
  .et_pb_testimonial_description {
    padding: 24px 20px;
  }

  .et_pb_button,
  button,
  input[type="submit"] {
    width: 100%;
    min-height: 50px;
  }
}
