/* ===== Reset & Base ===== */
:root {
  --navy: #1f3a5f;
  --navy-deep: #16293f;
  --accent: #2f6e6a;
  --ink: #222629;
  --muted: #5c636b;
  --line: #e6e8ec;
  --bg-alt: #f6f7f9;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(20, 30, 45, .06);
  --shadow-md: 0 12px 30px rgba(20, 30, 45, .12);
  --maxw: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark {
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--navy);
  font-size: 18px;
  border: 2px solid var(--navy);
  padding: 3px 8px;
  border-radius: 8px;
}
.logo__text { font-weight: 700; font-size: 19px; color: var(--ink); }

.nav__list { display: flex; gap: 30px; }
.nav__link {
  font-weight: 500;
  font-size: 16px;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--navy);
  transition: width .25s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }

.header__cta { display: inline-flex; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #243b53 0%, #1f3a5f 45%, #2f6e6a 120%);
  background-image:
    linear-gradient(135deg, rgba(31,58,95,.82), rgba(22,41,63,.88)),
    url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 80% 10%, rgba(47,110,106,.35), transparent 60%);
}
.hero__inner { position: relative; padding: 130px 24px 90px; max-width: 880px; }
.hero__eyebrow {
  display: inline-block;
  font-weight: 600;
  letter-spacing: .04em;
  color: #bfe0dc;
  margin-bottom: 18px;
  font-size: 15px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
}
.hero__title {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.hero__title span { color: #8fd0c9; }
.hero__desc {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: rgba(255,255,255,.9);
  margin-bottom: 34px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Section ===== */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.section__lead { color: var(--muted); font-size: 17px; }

/* ===== Feature grid (About) ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-card__icon { font-size: 30px; margin-bottom: 14px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 15px; }

/* ===== Products ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card__img {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  background-size: cover;
  background-position: center;
  position: relative;
}
.product-card__img::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* placeholder gradients per category — image overlays gradient when file exists */
.product-card__img[data-img="tile"]     { background-image: url('../images/tile.jpg'),     linear-gradient(135deg,#cfd8e3,#9aaabf); }
.product-card__img[data-img="sanitary"] { background-image: url('../images/sanitary.jpg'), linear-gradient(135deg,#dfe7ea,#a9bfc4); }
.product-card__img[data-img="faucet"]   { background-image: url('../images/faucet.jpg'),   linear-gradient(135deg,#d6dee0,#9fb1b3); }
.product-card__img[data-img="fixture"]  { background-image: url('../images/fixture.jpg'),  linear-gradient(135deg,#d3dbe6,#aebccd); }
.product-card__body { padding: 22px 22px 26px; }
.product-card__body h3 { font-size: 19px; font-weight: 700; margin-bottom: 12px; color: var(--navy); }
.product-card__body ul { display: flex; flex-direction: column; gap: 6px; }
.product-card__body li {
  color: var(--muted);
  font-size: 15px;
  padding-left: 16px;
  position: relative;
}
.product-card__body li::before {
  content: "";
  position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ===== Target ===== */
.target-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}
.target-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.target-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.target-card__num {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  opacity: .35;
  flex-shrink: 0;
}
.target-card p { font-size: 16px; color: var(--muted); }
.target-card strong { color: var(--ink); font-weight: 700; }

/* ===== Services ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-item {
  text-align: center;
  padding: 32px 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.service-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-item__icon {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: var(--bg-alt);
  border-radius: 50%;
}
.service-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.service-item p { color: var(--muted); font-size: 15px; }

/* ===== Location ===== */
.location {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: stretch;
}
.location__info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
}
.location__row { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.location__row:last-of-type { border-bottom: none; }
.location__row dt { width: 72px; flex-shrink: 0; font-weight: 700; color: var(--navy); }
.location__row dd { color: var(--muted); }
.location__row dd a { color: var(--accent); font-weight: 600; }
.location__actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.location__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 360px;
}
.location__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 130%);
  color: #fff;
  text-align: center;
  padding: 78px 0;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 14px; letter-spacing: -.02em; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 28px; font-size: 17px; }

/* ===== Footer ===== */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 44px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer .logo__mark { color: #fff; border-color: rgba(255,255,255,.6); }
.footer__name { font-weight: 700; font-size: 18px; color: #fff; }
.footer__meta { text-align: right; font-size: 14px; line-height: 1.9; }
.footer__meta a { color: #bfe0dc; }
.footer__copy { margin-top: 8px; color: rgba(255,255,255,.45); }

/* ===== Floating call (mobile) ===== */
.float-call {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
.float-call__icon { font-size: 18px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .feature-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .location { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform .35s var(--ease);
    z-index: 99;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 0; padding: 8px 0; }
  .nav__link { display: block; padding: 14px 24px; font-size: 17px; }
  .nav__link::after { display: none; }

  .section { padding: 68px 0; }
  .section__head { margin-bottom: 38px; }
  .target-grid { grid-template-columns: 1fr; }
  .float-call { display: inline-flex; }
  .footer__inner { flex-direction: column; }
  .footer__meta { text-align: left; }
}

@media (max-width: 480px) {
  .feature-grid, .service-grid, .product-grid { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; }
  .hero__inner { padding-top: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
