/* ProMinent Pool & Wellness - main stylesheet
   Mobile layout kicks in at max-width: 860px (see bottom of file). */
:root{--navy:#0b2a5b;--ink:#0a1f44;--orange:#e8891c;--gold:#d9a441;--paper:#f4f8fc;--card:#fff;--text:#1d2b45;--mut:#4a5a78;--line:#cfdaea}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth}
body{font-family:"Segoe UI","Noto Sans Thai",Helvetica,Arial,sans-serif;background:var(--paper);color:var(--text);line-height:1.5}
a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.wrap{max-width:1440px;margin:0 auto}

/* ---------- HERO ---------- */
.hero{position:relative;min-height:430px;overflow:hidden;background:linear-gradient(180deg,180deg,#fff,#f4f8fc)}
.hero .bg{position:absolute;right:0;top:0;width:62%;height:100%;object-fit:cover;-webkit-mask-image:linear-gradient(90deg,transparent,#000 30%);mask-image:linear-gradient(90deg,transparent,#000 30%)}
.hero .slogan{
    position: absolute;
    right: 336px;
    bottom: 31px;
    z-index: 2;
    font: italic 700 28px/1.1 Georgia,serif;
    color: #fff;
    transform: rotate(-8deg);
    text-shadow: 0 2px 6px rgba(0,0,0,.35)
}
header{position:relative;z-index:3;display:flex;align-items:center;gap:32px;padding:18px 5% 0}
.logo img{height:70px;width:auto;display:block}
nav{display:flex;gap:34px;margin-left:auto;font-size:15px;font-weight:500;color:var(--navy)}
nav a{padding:6px 0;border-bottom:2px solid transparent}
nav a.on{border-color:var(--orange)}
.btn{display:inline-flex;align-items:center;gap:10px;background:var(--ink);color:#fff;border-radius:999px;padding:12px 26px;font-size:14px;font-weight:600;border:0;cursor:pointer}
.lang{font-size:13px;color:var(--navy)}
.burger{display:none;background:none;border:0;width:40px;height:40px;cursor:pointer}
.burger i{display:block;height:3px;background:var(--navy);margin:6px 4px;border-radius:2px}
.mcta{display:none}
.copy{position:relative;z-index:2;padding:40px 5% 80px;max-width:760px;color:var(--navy)}
.copy small{font-size:15px;letter-spacing:.14em;font-weight:500}
.copy h1{font-size:clamp(30px,3.6vw,48px);font-weight:300;line-height:1.15;margin:8px 0 18px}
.copy h1 strong{font-weight:800;display:inline;font-size:1.05em}
.copy p{max-width:540px;margin-bottom:24px;font-size:16px}
.dots{position:absolute;left:50%;bottom:20px;display:flex;gap:8px;z-index:2}
.dots i{width:8px;height:8px;border-radius:50%;background:#fff;opacity:.7}
.dots i:first-child{background:var(--navy);opacity:1}

/* เมนูหลัก: ขนาดอักษรปรับตามความกว้างหน้าจอ */
#nav a {
  font-size: clamp(10px, 0.95vw, 13px); /* เล็กสุด 10px – ใหญ่สุด 13px */
  /*white-space: nowrap;*/                  /* ไม่ให้ชื่อเมนูตัดขึ้นบรรทัดใหม่ */
}

/* ช่องไฟระหว่างเมนูก็ลดตามจอด้วย */
#nav {
  gap: clamp(8px, 1.6vw, 28px);
}

/* ปุ่ม Get a Free Consultation และตัวเลือกภาษา ให้เล็กลงตามกัน */
header .btn {
  font-size: clamp(11px, 1.05vw, 15px);
  padding: clamp(6px, 0.8vw, 12px) clamp(12px, 1.6vw, 24px);
}
header .lang {
  font-size: clamp(11px, 1vw, 14px);
}

/* ---------- PROMO CARDS ---------- */
.promos{display:grid;grid-template-columns:1.05fr 1fr 1fr;gap:2px;background:var(--navy)}
.card{position:relative;min-height:300px;padding:34px 36px;color:#fff;display:flex;flex-direction:column;justify-content:flex-end;gap:6px;overflow:hidden;background:var(--navy)}
.card .bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.card::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,26,62,.2),rgba(6,26,62,.78))}
.card>*:not(.bg){position:relative}
.card .dev{
    position: absolute;
    right: 6%;
    bottom: 10%;
    height: 55%;
    width: auto;
    max-width: 25%;
    object-fit: contain
}
.tag{align-self:flex-start;background:#fff;color:var(--navy);border-radius:999px;padding:4px 14px;font-size:12px;font-weight:700;letter-spacing:.08em}
.card h2{font-size:26px;font-weight:800;line-height:1.1}
.card h2 em{font-style:italic;font-family:Georgia,serif;color:var(--gold);font-size:1.15em}
.card .clean{align-self:flex-start;isolation:isolate}
.card .free{position:absolute;left:100%;top:50%;z-index:-1;width:100px;height:auto;margin-left:-8px;transform:translateY(-52%) rotate(-3deg);pointer-events:none}

.card h3{font-size:19px;font-weight:500}
.card p{font-size:13px;opacity:.92;max-width:300px}
.stars{color:var(--gold);font-size:32px;letter-spacing:4px;line-height:1}
.more{align-self:flex-start;background:#fff;color:var(--navy);border-radius:999px;padding:7px 20px;font-size:13px;font-weight:600;margin-top:6px}
.sp{font-size:12px;letter-spacing:.14em;font-weight:600}

/* ---------- WHY CHOOSE ---------- */
.why{display:grid;grid-template-columns:1.1fr 2.4fr 1.5fr;gap:40px;align-items:center;padding:28px 5% 30px;background:var(--card)}
.why h2{font-size:17px;font-weight:600;color:var(--navy);line-height:1.3}
.why h2::after{content:"";display:block;width:36px;height:2px;background:var(--orange);margin:10px 0}
.why .lead p{font-size:14px;color:var(--mut)}
.feat{display:grid;grid-template-columns:repeat(4,1fr)}
.feat div{text-align:center;padding:0 14px;border-left:1px solid var(--line);font-size:12px;color:var(--mut)}
.feat div:first-child{border:0}
.feat svg{width:34px;height:34px;stroke:var(--navy);fill:none;stroke-width:1.5;margin-bottom:8px}
.feat b{display:block;font-size:12px;letter-spacing:.04em;color:var(--navy);text-transform:uppercase;margin-bottom:3px}
.story{position:relative;min-height:134px;border-radius:6px;overflow:hidden;color:#fff;padding:18px 22px;display:flex;flex-direction:column;justify-content:space-between;background:var(--navy)}
.story .bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.story::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,26,62,.2),rgba(6,26,62,.7))}
.story>*:not(.bg){position:relative}
.story p{font-size:15px;letter-spacing:.06em;font-weight:500}
.play{display:flex;align-items:center;gap:10px;font-size:13px}
.play i{width:30px;height:30px;border-radius:50%;background:#fff;display:grid;place-items:center;color:var(--navy);font-style:normal;font-size:11px}

/* ---------- FOOTER ---------- */
footer{background:var(--navy);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 5%;font-size:12px}
.de{display:inline-block;width:24px;height:24px;border-radius:50%;vertical-align:middle;margin-right:10px;background:linear-gradient(#000 33%,#d00 33% 66%,#fc0 66%)}
.soc{display:flex;gap:10px;align-items:center}
.soc i{width:22px;height:22px;border:1.5px solid #fff;border-radius:50%;display:inline-block}

/* ---------- MOBILE LAYOUT (design #2) ---------- */
@media (max-width:860px){
body{background:#dbe9f6}
.wrap{max-width:480px;background:var(--paper)}
header{padding:14px 18px;gap:0;justify-content:space-between;background:var(--card);position:sticky;top:0;z-index:10}
.logo img{height:42px}
.burger{display:block}
nav{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:0;background:var(--card);padding:6px 18px 14px;border-bottom:1px solid var(--line)}
nav.open{display:flex}
nav a{padding:12px 0}
header>.btn,header>.lang{display:none}
.mcta{display:flex;justify-content:space-between;margin:14px 14px 0;position:relative;z-index:3}
.hero{min-height:0}
.hero .bg{width:100%;opacity:.6;-webkit-mask-image:none;mask-image:none}
.hero .slogan{display:none}
.copy{padding:20px 18px 54px;max-width:none}
.copy small{font-size:12px}
.copy h1{font-size:28px}
.copy p{font-size:14px;max-width:none}
.copy .btn{padding:10px 20px}
.promos{display:flex;flex-direction:column;gap:12px;padding:12px 14px;background:transparent}
.card{min-height:160px;padding:18px;border-radius:12px;border:2px solid var(--gold);justify-content:center}
.card h2{font-size:21px}
.card h3{font-size:16px}
.stars{font-size:22px}
.card .dev{height:50%;bottom:12%}
.why{grid-template-columns:1fr;gap:16px;padding:18px 14px;background:transparent}
.why h2{font-size:15px;text-transform:uppercase}
.why h2::after,.why .lead p{display:none}
.feat div{padding:0 6px;font-size:11px}
.feat svg{width:28px;height:28px}
.feat b{font-size:10px}
.story{min-height:100px}
/* footer{flex-wrap:wrap;padding:14px 16px;font-size:11px}
footer>div:last-child{display:none} */
footer{flex-direction:column;align-items:flex-start;gap:12px;padding:14px 16px;font-size:11px}
footer>div:last-child{display:flex}
.soc{width:100%;flex-wrap:nowrap;gap:8px;align-self:stretch}
.soc span{flex:1 1 auto;margin-right:auto;text-align:left}
.soc img{flex:0 0 auto;width:28px;height:auto}
.card .free{width:100px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
