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

body {
  font-family: 'Microsoft JhengHei', '微軟正黑體', sans-serif;
  background: #f5f5f5;
}

/* ─── Navbar shell ─── */
.navbar {
  background-color: rgba(33, 150, 196, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
}

/* ─── Logo ─── */
.navbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

/* ─── Desktop nav links ─── */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.navbar__links a:hover {
  opacity: 0.75;
}

/* Facebook circle button */
.navbar__fb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #1877f2;
  transition: background-color 0.2s, opacity 0.2s;
  flex-shrink: 0;
}

.navbar__fb:hover {
  background-color: #1560cc;
}

/* ─── Hamburger (mobile only) ─── */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 28px;
  background: transparent;
  border: 2px solid #ffffff;
  border-radius: 4px;
  padding: 5px 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.navbar__hamburger span {
  display: block;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Hamburger → X animation */
.navbar__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile full-screen overlay ─── */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 64px; /* matches mobile navbar height */
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #87ceeb;
  flex-direction: column;
  align-items: center;
  padding-top: 48px;
  gap: 0;
  z-index: 99;
  overflow-y: auto;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

.mobile-overlay.is-open {
  display: flex;
}

/* Nav links */
.mobile-overlay__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.mobile-overlay__nav a {
  display: block;
  text-align: center;
  color: #111111;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  padding: 14px 0;
  width: 100%;
  transition: opacity 0.15s;
}

.mobile-overlay__nav a:hover {
  opacity: 0.65;
}

/* ─── Facebook old-style search bar ─── */
.fb-bar {
  display: flex;
  align-items: stretch;
  border: 3px solid #2a4b9b;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  margin-top: 36px;
  height: 52px;
  width: 72%;
  max-width: 320px;
}

.fb-bar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #5b7fce 0%, #3b5998 100%);
  padding: 0 8px;
}

.fb-bar__text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0 10px;
}

.fb-bar__search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex-shrink: 0;
  background: #ffffff;
  font-size: 1.3rem;
  border-left: 2px solid #2a4b9b;
}

/* ─── Hero Slider ─── */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.hero__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero__slide {
  min-width: 100%;
  height: 75vh;
  min-height: 420px;
  max-height: 780px;
  position: relative;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: block;
  text-decoration: none;
}

.hero__overlay {
  display: none;
}

/* Text content — horizontally centered, vertically centered */
.hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* Semi-transparent black bg — fits text, no wrap */
.hero__text-bg {
  background: rgba(0, 0, 0, 0.5);
  padding: 20px 28px;
  text-align: left;
  white-space: nowrap;
}

.hero__subtitle {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.hero__title {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55);
  margin-bottom: 28px;
}

.hero__cta {
  display: inline-block;
  background: #e8a020;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 12px 28px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero__slide:hover .hero__cta {
  background: #c98000;
}

/* Arrow buttons */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #2D6A4F;
  border: 3px solid #FFB703;
  box-shadow: 0px 4px 4px 0px #00000040;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.15s;
  z-index: 10;
}

.hero__arrow:hover {
  opacity: 0.85;
  transform: translateY(-50%) scale(1.08);
}

.hero__arrow--prev { left: 20px; }
.hero__arrow--next { right: 20px; }

/* Dot indicators */
.hero__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #FFB703;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}

.hero__dot.is-active {
  background: #ffffff;
  border-color: #FFB703;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .hero__slide {
    height: 55vw;
    min-height: 280px;
    max-height: 480px;
  }

  .hero__content {
    width: 88%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .hero__text-bg {
    padding: 14px 18px;
    white-space: normal;
    width: 100%;
  }

  .hero__subtitle {
    font-size: 0.9rem;
  }

  .hero__arrow {
    display: none;
  }
}

/* ─── Ocean Sections (shared background) ─── */
.ocean-wrapper {
  background-image: url('assets/ocean-bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
}

.ocean-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 25px 24px;
}

.ocean-section__card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 40px 48px;
  max-width: 1000px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.ocean-section__card h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a3a2a;
}

.ocean-section__card p {
  font-size: 1rem;
  color: #333;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .ocean-section {
    padding: 25px 16px;
    min-height: 300px;
  }

  .ocean-section__card {
    padding: 28px 20px;
  }
}

/* ─── Section 1 : Company Mission ─── */
.ocean-section__card.s1 {
  text-align: left;
}

.s1__label {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.s1__title {
  text-align: center;
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  font-weight: 800;
  color: #111;
  line-height: 1.4;
  margin-bottom: 20px;
}

/* Divider: gold bar sits above gray line, bottoms/tops touching, no radius */
.s1__divider {
  position: relative;
  width: 100%;
  height: 6px; /* 4px gold + 2px gray */
  margin: 0 auto 28px;
}

.s1__divider::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #bbb;
}

.s1__divider span {
  position: absolute;
  bottom: 2px; /* sits right on top of the gray line */
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 48px;
  height: 4px;
  background: #FFB703;
  border-radius: 0;
}

/* Quote */
.s1__quote {
  text-align: center;
  color: #2196c4;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.9;
  margin: 0 0 28px;
  padding: 0;
  border: none;
}

.s1__quote cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  margin-top: 6px;
}

/* Body paragraphs */
.s1__body p {
  font-size: 1rem;
  color: #222;
  line-height: 1.85;
  margin-bottom: 20px;
}

.s1__body p:last-child {
  margin-bottom: 0;
}

.highlight {
  color: #2196c4;
  font-weight: 700;
  text-decoration: none;
}

.highlight:hover {
  text-decoration: underline;
}

.bracket {
  color: #111;
  font-weight: 700;
}

@media (max-width: 768px) {
  .s1__quote {
    font-size: 0.95rem;
  }
}

/* ─── Section 2 : Products & Services ─── */
.ocean-section__card.s2 {
}

.s2__label {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.s2__title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #111;
  margin-bottom: 20px;
}

/* Two-column grid */
.s2__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}

/* Individual product card */
.s2__card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.s2__card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.s2__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.s2__card-body {
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.s2__card-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #2D6A4F;
  margin-bottom: 16px;
}

/* Hashtag pills */
.s2__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.s2__tags span {
  border: 1.5px solid #aaa;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.82rem;
  color: #333;
  white-space: nowrap;
}

.s2__more {
  display: block;
  text-align: right;
  color: #2196c4;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
}

.s2__more:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .s2__grid {
    grid-template-columns: 1fr;
  }

  .s2__tags,
  .s2__more {
    display: none;
  }
}

/* ─── Section 3 : Stats (full-width bg) ─── */
.ocean-section.s3 {
  padding: 25px 0;
}

.s3__inner {
  background: rgba(248, 249, 250, 0.7);
  width: 100%;
  padding: 40px 24px;
  text-align: center;
}

.s3__label {
  font-size: 0.9rem;
  color: #888;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.s3__title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #111;
  margin-bottom: 20px;
}

.s3__stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.s3__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.s3__stat img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.s3__stat p {
  font-size: 1.3rem;
  font-weight: 800;
  color: #111;
  white-space: nowrap;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .s3__stats {
    gap: 20px;
    flex-wrap: nowrap;
  }

  .s3__stat {
    gap: 10px;
  }

  .s3__stat img {
    width: 58px;
    height: 58px;
  }

  .s3__stat p {
    font-size: 0.7rem;
    white-space: normal;
    text-align: center;
  }
}

/* ─── Section 4 : Activities & News ─── */
.ocean-section__card.s4 {
  text-align: left;
}

.s4__label {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.s4__title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #111;
  margin-bottom: 20px;
}

.s4__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.s4__card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.s4__card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}

.s4__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.s4__card:hover .s4__card-img img {
  transform: scale(1.04);
}

.s4__card-body {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

.s4__card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.s4__card-body p {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 48px;
}

/* Diagonal corner */
.s4__corner {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 76px;
  height: 62px;
  background: #2196c4;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 10px 8px 0;
  transition: opacity 0.2s;
}

.s4__corner:hover {
  opacity: 0.85;
}

.s4__corner span {
  color: #FFB703;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 900px) {
  .s4__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .s4__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .s4__card-body p {
    display: none;
  }
}

/* ─── Footer ─── */
.site-footer {
  background: rgba(45, 106, 79, 0.9);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 48px;
  gap: 40px;
  flex-wrap: wrap;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer__label {
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.site-footer__link img {
  height: 52px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}

.site-footer__link:hover img {
  opacity: 0.8;
}

.site-footer__shops {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__bar {
  height: 36px;
  background: #111;
}

@media (max-width: 768px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 24px;
  }

  .site-footer__shops {
    justify-content: center;
  }
}

/* ─── Section 5 : Next Steps ─── */
.ocean-section__card.s5 {
  text-align: left;
}

.s5__label {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.s5__title {
  text-align: center;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 900;
  color: #111;
  line-height: 1.4;
  margin-bottom: 20px;
}

.s5__body p {
  font-size: 1rem;
  color: #222;
  line-height: 1.9;
  margin-bottom: 24px;
}

.s5__body p:last-child {
  margin-bottom: 0;
}

/* ─── RWD breakpoint ─── */
@media (max-width: 768px) {
  .navbar__links {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__inner {
    height: 64px;
  }

  .navbar__logo img {
    height: 50px;
  }
}
