/* ===========================================
   광양출장마사지 — style.css
   HTML 구조 유지 / 모바일 우선 / 사진 잘림 방지
   =========================================== */

:root{
  --primary:#174f8a;
  --primary-dark:#103b67;
  --accent:#e7652f;
  --text:#1f2937;
  --muted:#526174;
  --line:#e5eaf0;
  --bg:#f6f8fb;
  --white:#fff;
  --footer:#17233b;
  --radius:12px;
  --shadow:0 4px 18px rgba(15,35,60,.10);
  --shadow-soft:0 2px 10px rgba(15,35,60,.07);
  --header-h:60px;
  --max:1180px;
  --font:'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',Arial,sans-serif;
}

*{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
  line-height:1.78;
  word-break:keep-all;
  overflow-wrap:break-word;
  padding-top:var(--header-h);
}
a{color:inherit;text-decoration:none}
a:hover{color:var(--primary)}
img{display:block;max-width:100%;height:auto}
ul,ol{list-style:none}
button{font-family:inherit;border:0;background:none;cursor:pointer}

.container{
  width:100%;
  max-width:var(--max);
  margin:0 auto;
  padding:0 16px;
}

/* Header */
.site-header{
  position:fixed;
  top:0;left:0;right:0;
  height:var(--header-h);
  background:#fff;
  border-bottom:1px solid var(--line);
  z-index:1000;
}
.site-header.scrolled{box-shadow:var(--shadow-soft)}
.header-inner{
  height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.logo{display:flex;align-items:center;flex-shrink:0}
.logo a{
  color:var(--primary);
  font-weight:800;
  font-size:1.05rem;
  letter-spacing:-.03em;
  white-space:nowrap;
}
.header-cta{flex-shrink:0}
.btn-call{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 10px;
  border-radius:8px;
  background:var(--primary);
  color:#fff!important;
  font-weight:800;
  font-size:.8rem;
  white-space:nowrap;
}
.btn-call:hover{background:var(--primary-dark);color:#fff!important}

.main-nav{
  display:none;
  position:absolute;
  top:var(--header-h);
  left:0;right:0;
  background:#fff;
  border-bottom:2px solid var(--primary);
  box-shadow:var(--shadow);
  z-index:999;
}
.main-nav.open{display:block}
.main-nav ul{display:flex;flex-direction:column}
.main-nav a{
  display:block;
  padding:13px 18px;
  border-bottom:1px solid var(--line);
  color:var(--text);
  font-weight:700;
  font-size:.9rem;
}
.main-nav a:hover,
.main-nav a.active{
  background:var(--primary);
  color:#fff!important;
}

.menu-toggle{
  width:38px;
  height:38px;
  border-radius:8px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  padding:7px;
  flex-shrink:0;
}
.menu-toggle span{
  display:block;
  width:100%;
  height:2px;
  border-radius:2px;
  background:var(--text);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* Main hero: 겹침 방지 — 사진 위 / 글자 아래 */
.hero{
  display:block!important;
  position:relative;
  width:100%;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  background:#fff;
}
.hero-bg{
  position:relative!important;
  inset:auto!important;
  width:100%;
  height:auto!important;
  z-index:0;
}
.hero-bg figure{
  width:100%;
  height:auto!important;
  margin:0;
  overflow:visible!important;
  aspect-ratio:auto!important;
}
.hero-bg img{
  width:100%;
  height:auto!important;
  max-height:360px;
  object-fit:contain!important;
  object-position:center center;
  background:#fff;
}
.hero-bg::after{display:none!important;content:none!important}
.hero-content{
  position:relative!important;
  z-index:1;
  padding:22px 16px 34px!important;
  color:var(--text)!important;
}
.hero-title{
  color:var(--primary)!important;
  text-shadow:none!important;
  font-size:clamp(1.35rem,4vw,2.25rem);
  line-height:1.35;
  letter-spacing:-.035em;
  font-weight:900;
  margin-bottom:14px;
}
.hero-sub{
  color:var(--muted)!important;
  opacity:1!important;
  font-size:.96rem;
  line-height:1.78;
  margin-bottom:18px;
}
.hero-info{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin:0 0 20px;
}
.hero-info li{
  position:relative;
  padding-left:20px;
  color:var(--muted)!important;
  opacity:1!important;
  font-size:.9rem;
}
.hero-info li::before{
  content:'✓';
  position:absolute;
  left:0;
  color:var(--primary);
  font-weight:900;
}

/* Sections */
#main-content{min-height:60vh}
.section{
  padding:34px 0;
}
.section + .section{
  border-top:1px solid var(--line);
}
.page-title{
  margin:24px 0 14px;
  padding-bottom:12px;
  border-bottom:3px solid var(--primary);
  color:var(--primary);
  font-size:clamp(1.35rem,3.5vw,2rem);
  line-height:1.35;
  letter-spacing:-.03em;
  font-weight:900;
}
.page-lead{
  color:var(--muted);
  line-height:1.86;
  font-size:.96rem;
  margin-bottom:24px;
}
.section-title{
  margin-bottom:16px;
  padding-left:12px;
  border-left:4px solid var(--primary);
  color:var(--primary);
  font-size:clamp(1.08rem,2.6vw,1.45rem);
  line-height:1.38;
  letter-spacing:-.025em;
  font-weight:900;
}
h3{
  color:var(--text);
  font-size:clamp(.98rem,2.2vw,1.12rem);
  line-height:1.45;
  font-weight:800;
  margin-bottom:8px;
}
p{margin-bottom:12px;line-height:1.82}
p:last-child{margin-bottom:0}

/* Images: 전체 사진 잘림 방지 */
.page-hero,
.full-figure,
.cta-figure,
.card figure{
  overflow:visible!important;
  background:#fff;
}
.page-hero{
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
  margin:18px 0 22px;
}
.page-hero figure,
.full-figure,
.cta-figure,
.card figure{
  width:100%;
  height:auto!important;
  aspect-ratio:auto!important;
}
.page-hero img,
.full-figure img,
.cta-figure img,
.card figure img{
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center center!important;
}
figure{position:relative}
figcaption{
  background:rgba(246,248,251,.95);
  color:var(--muted);
  font-size:.78rem;
  text-align:center;
  padding:7px 10px;
}
.full-figure{
  margin:22px 0;
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
}
.cta-figure{
  border-radius:var(--radius) var(--radius) 0 0;
}

/* Buttons */
.btn-primary,
.btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:9px;
  font-weight:900;
  transition:.18s ease;
}
.btn-primary{
  padding:13px 22px;
  background:var(--accent);
  color:#fff!important;
  box-shadow:0 4px 14px rgba(231,101,47,.28);
}
.btn-primary:hover{background:#c94f1e;color:#fff!important}
.btn-secondary{
  padding:9px 15px;
  color:var(--primary)!important;
  border:2px solid var(--primary);
  background:#fff;
  font-size:.9rem;
}
.btn-secondary:hover{
  background:var(--primary);
  color:#fff!important;
}

/* Cards */
.service-cards,
.review-cards,
.course-list,
.course-detail-list,
.place-list,
.guide-step-list,
.guide-list,
.booking-steps,
.type-list,
.area-summary-list{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin-top:18px;
}
.card,
.review-card,
.course-item,
.course-detail-item,
.place-item,
.guide-step,
.guide-item,
.step,
.type-item,
.area-item{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-soft);
  padding:18px;
}
.card{
  padding:0;
  overflow:hidden;
}
.card h3,
.card p{
  padding-left:16px;
  padding-right:16px;
}
.card h3{padding-top:14px;color:var(--primary)}
.card p{font-size:.92rem;color:var(--muted)}
.card .btn-secondary{margin:0 16px 18px}
.card:hover figure img{transform:none!important}

.course-item,
.area-item{
  border-left:4px solid var(--accent);
  border-radius:0 var(--radius) var(--radius) 0;
}
.step{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.step-num{
  flex:0 0 36px;
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--primary);
  color:#fff;
  font-weight:900;
}

/* Reviews */
.review-card{
  position:relative;
  padding:20px;
}
.review-card::before{
  content:'“';
  position:absolute;
  top:4px;
  left:12px;
  color:var(--primary);
  opacity:.14;
  font-size:3.2rem;
  line-height:1;
  font-family:Georgia,serif;
}
.review-text{
  position:relative;
  color:var(--text);
  font-size:.93rem;
  line-height:1.82;
}
.review-info{
  margin-top:12px;
  padding:8px 10px;
  border-left:3px solid var(--primary);
  border-radius:7px;
  background:var(--bg);
  color:var(--muted);
  font-size:.82rem;
}

/* FAQ */
.faq-list{
  display:flex;
  flex-direction:column;
  gap:9px;
  margin-top:16px;
}
.faq-item{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}
.faq-q{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  padding:15px 17px;
  color:var(--primary);
  font-size:.96rem;
  line-height:1.5;
  font-weight:900;
  cursor:pointer;
}
.faq-q::after{
  content:'+';
  color:var(--primary);
  font-size:1.35rem;
  font-weight:500;
  line-height:1;
}
.faq-item.open .faq-q::after{transform:rotate(45deg)}
.faq-a{
  display:none;
  padding:0 17px 16px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:.92rem;
  line-height:1.82;
}
.faq-a.open{display:block}

/* CTA */
.cta-section{
  margin:28px 0;
  padding:0!important;
  border:1px solid var(--line)!important;
  border-radius:var(--radius);
  overflow:hidden!important;
  background:#fff;
  box-shadow:var(--shadow);
}
.cta-content{
  padding:24px 18px;
  text-align:center;
}
.cta-content h2{
  color:var(--primary);
  font-size:clamp(1.15rem,2.8vw,1.55rem);
  line-height:1.38;
  font-weight:900;
  margin-bottom:12px;
}
.cta-content p{
  color:var(--muted);
  font-size:.94rem;
  line-height:1.82;
  margin-bottom:18px;
}

/* Related links */
.link-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
  margin-top:14px;
}
.link-grid a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:9px 10px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  color:var(--primary);
  font-size:.86rem;
  font-weight:800;
  box-shadow:var(--shadow-soft);
}
.link-grid a:hover{
  background:var(--primary);
  color:#fff!important;
}
.section-more{
  text-align:right;
  margin-top:16px;
}
.section-more a{
  color:var(--primary);
  font-weight:900;
  font-size:.9rem;
  border-bottom:1px solid var(--primary);
}

/* Footer */
.site-footer{
  margin-top:34px;
  background:var(--footer);
  color:rgba(255,255,255,.84);
}
.footer-inner{
  display:flex;
  flex-direction:column;
  gap:22px;
  padding:34px 16px 24px;
}
.footer-logo{
  color:#fff;
  font-size:1.1rem;
  font-weight:900;
  margin-bottom:8px;
}
.footer-info p{
  color:rgba(255,255,255,.78);
  font-size:.86rem;
  line-height:1.72;
  margin-bottom:6px;
}
.footer-info a{color:#9ed3ff}
.footer-nav ul{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.footer-nav a{
  display:inline-block;
  padding:5px 9px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:5px;
  color:rgba(255,255,255,.74);
  font-size:.8rem;
}
.footer-nav a:hover{
  background:rgba(255,255,255,.12);
  color:#fff!important;
}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.13);
  text-align:center;
  padding:16px;
}
.footer-bottom p{
  color:rgba(255,255,255,.58);
  font-size:.78rem;
  line-height:1.6;
  margin-bottom:4px;
}

/* Utils */
strong{font-weight:900}
em{font-style:italic;color:var(--muted)}
img[loading="lazy"]{opacity:1}
img[loading="lazy"].loaded{opacity:1}

/* Responsive */
@media (max-width:420px){
  .logo a{font-size:.98rem}
  .btn-call{font-size:.75rem;padding:7px 8px}
  .hero-bg img{max-height:220px}
  .hero-content{padding:18px 16px 28px!important}
  .hero-title{font-size:1.34rem}
  .hero-sub{font-size:.92rem}
  .link-grid{grid-template-columns:1fr 1fr}
}

@media (min-width:640px){
  :root{--header-h:64px}
  .container{padding:0 20px}
  .hero-bg img{max-height:430px}
  .service-cards,
  .course-list,
  .place-list,
  .guide-step-list,
  .guide-list,
  .type-list,
  .area-summary-list,
  .review-cards,
  .booking-steps{
    grid-template-columns:repeat(2,1fr);
  }
  .link-grid{grid-template-columns:repeat(3,1fr)}
  .hero-info{flex-direction:row;flex-wrap:wrap;gap:8px 22px}
}

@media (min-width:900px){
  :root{--header-h:68px}
  .menu-toggle{display:none}
  .main-nav{
    display:flex!important;
    position:static;
    background:transparent;
    border:0;
    box-shadow:none;
    justify-content:center;
    flex:1;
  }
  .main-nav ul{
    flex-direction:row;
    align-items:center;
    gap:2px;
  }
  .main-nav a{
    border:0;
    border-radius:7px;
    padding:8px 9px;
    font-size:.84rem;
    white-space:nowrap;
  }
  .hero-bg img{max-height:500px}
  .hero-content{padding:28px 20px 44px!important}
  .service-cards{grid-template-columns:repeat(3,1fr)}
  .review-cards{grid-template-columns:repeat(3,1fr)}
  .booking-steps{grid-template-columns:repeat(3,1fr)}
  .course-detail-list,.guide-list{grid-template-columns:repeat(2,1fr)}
  .area-summary-list{grid-template-columns:repeat(3,1fr)}
  .link-grid{grid-template-columns:repeat(6,1fr)}
  .footer-inner{flex-direction:row;justify-content:space-between}
  .footer-info{flex:1 1 45%}
  .footer-nav{flex:1 1 45%}
}

@media (min-width:1200px){
  .container{padding:0 24px}
  .section{padding:44px 0}
  .main-nav a{font-size:.88rem;padding:8px 11px}
}

.floating-reserve{
  position:fixed;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  z-index:9999;
  width:min(520px, calc(100% - 24px));
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding:8px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(7,19,18,.9);
  box-shadow:0 14px 40px rgba(0,0,0,.42);
  backdrop-filter:blur(10px);
}
.floating-reserve a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border-radius:999px;
  font-weight:900;
  font-size:.94rem;
  letter-spacing:-.02em;
}
.floating-reserve__call{
  background:linear-gradient(135deg,#eaff4f,#b6ff3d);
  color:#071312!important;
}
.floating-reserve__guide{
  background:linear-gradient(135deg,#12d8b2,#59f5dc);
  color:#071312!important;
}
@media (max-width:420px){
  .floating-reserve{
    bottom:10px;
    width:calc(100% - 18px);
    padding:6px;
    gap:6px;
  }
  .floating-reserve a{
    min-height:40px;
    font-size:.86rem;
  }
}
