/* ===========================
   BACK2BLUE — Ocean Blue Theme
   =========================== */

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

:root {
  --deep:       #002f45;
  --ocean:      #004f6e;
  --mid:        #006e8a;
  --surf:       #d4eef7;
  --foam:       #eaf6fb;
  --gold:       #c9a96e;
  --gold-d:     #b8945a;
  --accent:     #5bbfda;
  --white:      #ffffff;
  --body:       #2d5060;
  --muted:      #5a8090;
  --border:     rgba(201,169,110,0.2);
  --border-b:   rgba(91,191,218,0.15);
  --transition: 0.35s ease;
  --font-serif: 'Playfair Display', serif;
  --font-sans:  'Noto Sans TC', sans-serif;
}

::selection { background: var(--gold); color: var(--white); }
html { scroll-behavior: smooth; }

/* ── Cursor: hide native on desktop ── */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}

/* ── Custom Cursor Elements ── */
.cursor-dot {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, background 0.2s ease, width 0.2s ease, height 0.2s ease;
  will-change: left, top;
}
.cursor-ring {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 34px; height: 34px;
  border: 1.5px solid rgba(201,169,110,0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
  will-change: left, top;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot  { display: block; }
  .cursor-ring { display: block; }
}
.cursor-ring.is-hovering {
  width: 52px; height: 52px;
  border-color: var(--gold);
  background: rgba(201,169,110,0.05);
}
.cursor-dot.is-clicking  { transform: translate(-50%,-50%) scale(0.6); }
.cursor-ring.is-clicking { transform: translate(-50%,-50%) scale(0.85); }

/* ── Body ── */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--body);
  background: var(--foam);
  overflow-x: hidden;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 5vw; }
.section { padding: 110px 0; }
.section.dark { background: var(--deep); color: var(--white); }
.section.dark p { color: rgba(255,255,255,0.6); }

/* ── Bubbles ── */
.bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  overflow: hidden;
}
.bubble {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle at 32% 28%,
    rgba(255,255,255,0.72) 0%,
    rgba(255,255,255,0.18) 40%,
    rgba(200,238,252,0.06) 70%,
    transparent 100%
  );
  animation: bubbleRise linear infinite;
}
/* Three distinct rise paths for variety */
@keyframes bubbleRise {
  0%   { transform: translateY(0)      translateX(0px);  opacity: 0;   }
  8%   { opacity: 1; }
  30%  { transform: translateY(-30vh)  translateX(7px);  }
  60%  { transform: translateY(-60vh)  translateX(-5px); }
  88%  { opacity: 0.4; }
  100% { transform: translateY(-108vh) translateX(4px);  opacity: 0;   }
}

/* ── Typography ── */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
  display: block;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--deep);
  margin-bottom: 28px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-title.center { text-align: center; }
.dark .section-title { color: var(--white); }

.section-desc {
  font-size: 16px;
  max-width: 560px;
  margin-bottom: 60px;
}
.section-desc.center { margin: 0 auto 60px; text-align: center; }
.dark .section-desc { color: rgba(255,255,255,0.55); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  border: none;
  transition: all var(--transition);
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-d); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,169,110,0.35); }
.btn-gold.full { width: 100%; text-align: center; display: block; }
.btn-outline-light { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.45); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); }

/* ── Header ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  background: rgba(0,47,69,0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(91,191,218,0.1);
}
.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 5vw;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.logo { display: flex; flex-direction: column; line-height: 1.1; margin-right: auto; }
.logo-main { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--white); letter-spacing: 0.02em; }
.logo-sub { font-size: 10px; letter-spacing: 0.18em; color: var(--gold); }

.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { font-size: 12px; padding: 10px 24px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: all var(--transition); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.55) saturate(1.2);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,47,69,0.5) 0%,
    rgba(0,79,110,0.25) 50%,
    rgba(0,47,69,0.7) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 5vw;
  max-width: 900px;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  display: block;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 32px;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.9;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll-hint {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(201,169,110,0.7), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(0.6); }
}

/* ── Marquee ── */
.marquee-wrap { background: var(--ocean); overflow: hidden; padding: 14px 0; }
.marquee-track {
  display: flex;
  gap: 40px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-track span { font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.85); font-weight: 500; }
.marquee-track .dot { color: var(--gold); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── About ── */
.about { background: var(--foam); }
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; }
.about-img-box { position: relative; }
.about-photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 2px; display: block; }
.about-badge {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--gold);
  color: var(--white);
  padding: 20px 24px;
  border-radius: 2px;
  text-align: center;
}
.badge-num { display: block; font-family: var(--font-serif); font-size: 32px; font-weight: 700; line-height: 1; }
.badge-label { font-size: 11px; letter-spacing: 0.1em; opacity: 0.85; }
.about-text { padding-left: 16px; }
.about-text p { margin-bottom: 20px; }
.about-stats { display: flex; margin-top: 48px; border-top: 1px solid var(--border-b); padding-top: 40px; }
.stat { flex: 1; padding-right: 32px; border-right: 1px solid var(--border-b); }
.stat:last-child  { border-right: none; padding-right: 0; padding-left: 32px; }
.stat:nth-child(2){ padding-left: 32px; }
.stat-num { display: block; font-family: var(--font-serif); font-size: 42px; color: var(--ocean); font-weight: 700; line-height: 1; margin-bottom: 8px; }
.stat-num sup { font-size: 22px; vertical-align: super; }
.stat-label { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: 60px;
}
.service-card {
  background: rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover { background: rgba(91,191,218,0.07); }

.service-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.service-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,47,69,0.65) 100%);
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: brightness(0.85) saturate(1.1);
}
.service-card:hover .service-img img { transform: scale(1.07); }

.service-body { padding: 28px 28px 40px; flex: 1; }
.service-num { font-size: 11px; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 14px; }
.service-body h3 { font-family: var(--font-serif); font-size: 20px; color: var(--white); margin-bottom: 12px; font-weight: 600; }
.service-body p { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.5); }

.card-line { position: absolute; bottom: 0; left: 0; height: 2px; width: 0; background: var(--gold); transition: width 0.4s ease; }
.service-card:hover .card-line { width: 100%; }

/* ── Gallery ── */
.gallery { background: var(--surf); padding-bottom: 0; }
.gallery .section-title { color: var(--deep); }
.gallery-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 340px 340px;
  gap: 3px;
  margin-top: 60px;
}
.gallery-item { position: relative; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.65s ease; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,47,69,0.8) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-caption span { font-size: 14px; letter-spacing: 0.1em; color: var(--white); font-weight: 500; }

/* ── Process ── */
.process { background: var(--white); }
.process-steps { display: flex; align-items: flex-start; margin-top: 64px; }
.process-step { flex: 1; padding: 0 32px; border-left: 1px solid var(--border-b); }
.process-step:first-child { padding-left: 0; border-left: none; }
.step-num { font-family: var(--font-serif); font-size: 40px; color: var(--accent); opacity: 0.4; font-weight: 700; line-height: 1; margin-bottom: 20px; }
.step-content h3 { font-family: var(--font-serif); font-size: 20px; color: var(--deep); margin-bottom: 12px; font-weight: 600; }
.step-content p { font-size: 14px; line-height: 1.85; }

/* ── Testimonials ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 64px; }
.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(91,191,218,0.12);
  padding: 48px 36px;
  position: relative;
  transition: background var(--transition);
}
.testimonial-card:hover { background: rgba(91,191,218,0.06); }
.quote-mark { font-family: var(--font-serif); font-size: 72px; color: var(--gold); opacity: 0.35; line-height: 0.8; margin-bottom: 24px; }
.testimonial-card p { font-size: 15px; font-style: italic; line-height: 1.85; margin-bottom: 32px; color: rgba(255,255,255,0.65) !important; }
.reviewer { display: flex; align-items: center; gap: 14px; }
.reviewer-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--white); flex-shrink: 0; }
.reviewer-name { display: block; font-size: 14px; color: var(--white); font-weight: 500; }
.reviewer-tag { display: block; font-size: 12px; color: var(--gold); letter-spacing: 0.05em; }

/* ── Contact ── */
.contact { background: var(--foam); }
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
.contact-info p { margin-bottom: 32px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.contact-icon { font-size: 18px; flex-shrink: 0; }
.contact-list a { color: var(--mid); }
.contact-list a:hover { color: var(--deep); }

.contact-form-wrap { background: var(--white); padding: 48px; border: 1px solid var(--border-b); }
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--deep); font-weight: 500; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid rgba(0,79,110,0.15);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--deep);
  background: transparent;
  outline: none;
  transition: border-color var(--transition);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-bottom-color: var(--gold); }
.contact-form textarea { resize: none; }

/* ── Footer ── */
.footer { background: var(--deep); }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-top: 72px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(91,191,218,0.1);
}
.footer-brand .logo-main { font-size: 22px; }
.footer-brand .logo-sub { display: block; margin-bottom: 20px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.35); }
.footer-links-group { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.footer-links-group a { font-size: 14px; color: rgba(255,255,255,0.45); }
.footer-links-group a:hover { color: var(--white); }
.footer-bottom { text-align: center; padding: 24px 5vw; font-size: 12px; color: rgba(255,255,255,0.2); letter-spacing: 0.05em; }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-badge { right: 0; bottom: -16px; }
  .about-text { padding-left: 0; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; gap: 40px; }
  .process-step { border-left: none; border-top: 1px solid var(--border-b); padding: 32px 0 0; }
  .process-step:first-child { padding-top: 0; border-top: none; }
  .gallery-full { grid-template-columns: repeat(2, 1fr); grid-template-rows: 260px 260px 260px; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px; left: 0; right: 0; bottom: 0;
    background: rgba(0,21,33,0.98);
    padding: 40px 5vw;
    gap: 28px;
    z-index: 199;
    overflow-y: auto;
  }
  .nav-links.open a { font-size: 20px; color: var(--white); }
  .hamburger { display: flex; }
  .hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-full { grid-template-columns: 1fr; grid-template-rows: repeat(6, 240px); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .about-stats { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1px solid var(--border-b); padding: 0 0 24px !important; }
  .stat:last-child { border-bottom: none; }
  .contact-form-wrap { padding: 32px 24px; }
  .section { padding: 72px 0; }
}
