/* =========================================================
Gemslinks Service Pages Stylesheet
File: /css/service-detail.css

Purpose:

* Standalone CSS for service detail pages.
* Do not depend on /css/style.css.
* Top page, knowledge pages, and service pages can be separated.
  ========================================================= */

/* =========================================================
0. CSS Variables
========================================================= */

:root {
  --gl-black: #1f1f1f;
  --gl-orange: #f39800;
  --gl-white: #ffffff;

  --service-navy: #102a43;
  --service-blue: #1769aa;
  --service-blue-dark: #0f4f86;
  --service-sky: #eef7ff;
  --service-sky-2: #f7fbff;
  --service-text: #243b53;
  --service-muted: #627d98;
  --service-border: #d9e2ec;
  --service-card: #ffffff;
  --service-bg: #f8fbfe;

  --service-caution-bg: #fff8e6;
  --service-caution-border: #e6a821;

  --service-radius-lg: 22px;
  --service-radius-md: 16px;
  --service-radius-sm: 10px;

  --service-shadow-soft: 0 14px 38px rgba(16, 42, 67, 0.08);
  --service-shadow-card: 0 8px 22px rgba(16, 42, 67, 0.07);

  --service-content-width: 1320px;
}

/* =========================================================

1. Reset / Base
   ========================================================= */

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

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  color: var(--service-text);
  background: linear-gradient(180deg, #ffffff 0%, var(--service-bg) 100%);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

body.sub-page,
body.service-detail-page {
  min-width: 0;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: var(--service-blue);
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

a:hover {
  color: var(--service-blue-dark);
  text-decoration: underline;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin-top: 0;
}

section {
  scroll-margin-top: 96px;
}

/* =========================================================
2. Header
========================================================= */

header {
  width: 100%;
  background: var(--gl-black);
  border-bottom: 4px solid var(--gl-orange);
}

.sub-header-inner {
  width: min(calc(100% - 48px), var(--service-content-width));
  min-height: 118px;
  margin: 0 auto;
  padding: 16px 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

#logo {
  margin: 0;
  padding: 0;
}

#logo a {
  display: inline-block;
}

#logo img {
  width: 112px;
  max-width: 100%;
  height: auto;
}

#menubar {
  display: block;
}

#menubar ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#menubar li {
  margin: 0;
  padding: 0;
}

#menubar a {
  display: inline-block;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-decoration: none;
}

#menubar a:hover {
  color: var(--gl-orange);
  text-decoration: none;
}

#language-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.language-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* =========================================================
3. Layout
========================================================= */

#container {
  width: 100%;
  margin: 0;
  padding: 0;
}

#contents {
  width: min(calc(100% - 48px), var(--service-content-width));
  max-width: var(--service-content-width);
  margin: 0 auto;
  padding: 3.4rem 0 4.5rem;
}

.breadcrumb,
.service-breadcrumb {
  margin: 0 0 1.35rem;
  color: var(--service-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.breadcrumb a,
.service-breadcrumb a {
  color: var(--service-muted);
  text-decoration: none;
}

.breadcrumb a:hover,
.service-breadcrumb a:hover {
  color: var(--service-blue);
  text-decoration: underline;
}

/* =========================================================
4. Buttons
========================================================= */

.btn-primary,
.btn-secondary,
.service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary,
.service-btn-primary {
  border: 1px solid var(--service-blue);
  background: var(--service-blue);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(23, 105, 170, 0.22);
}

.btn-secondary,
.service-btn-secondary {
  border: 1px solid rgba(23, 105, 170, 0.22);
  background: #ffffff;
  color: var(--service-navy);
}

.btn-primary:hover,
.service-btn-primary:hover {
  background: var(--service-blue-dark);
  border-color: var(--service-blue-dark);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary:hover,
.service-btn-secondary:hover {
  background: var(--service-sky);
  color: var(--service-blue);
  text-decoration: none;
  transform: translateY(-1px);
}

/* =========================================================
5. Hero
========================================================= */

.sub-hero,
.service-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 3rem;
  padding: clamp(2.4rem, 5vw, 4.8rem);
  border: 1px solid rgba(23, 105, 170, 0.16);
  border-radius: var(--service-radius-lg);
  background:
    radial-gradient(
      circle at 88% 18%,
      rgba(23, 105, 170, 0.16) 0,
      rgba(23, 105, 170, 0.08) 22%,
      transparent 45%
    ),
    linear-gradient(135deg, #ffffff 0%, #f0f8ff 56%, #e9f5ff 100%);
  box-shadow: var(--service-shadow-soft);
}

.sub-hero::before,
.service-hero::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 44px solid rgba(23, 105, 170, 0.06);
  pointer-events: none;
}

.service-hero-content {
  position: relative;
  z-index: 1;
  max-width: none;
}

.sub-label,
.service-label,
.service-kicker,
.section-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--service-blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.sub-hero h1,
.service-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 0 1.25rem;
  color: var(--service-navy);
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.sub-lead,
.service-lead {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 0 1rem;
  color: var(--service-text);
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  line-height: 1.85;
  font-weight: 600;
}

.sub-note,
.service-note {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0;
  color: var(--service-muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.stat-highlight {
  color: var(--service-blue);
  font-weight: 800;
}

/* Hero section anchor buttons */
.hero-links,
.service-hero-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  max-width: 1180px;
  margin: 2rem auto 0;
}

.hero-links a,
.service-hero-links a,
.service-hero-links .service-btn {
  min-width: 132px;
  text-align: center;
  flex: 0 1 auto;
}

/* =========================================================
6. Sections
========================================================= */

.service-section,
#contents > section:not(.service-hero):not(.sub-hero) {
  margin: 0 0 3rem;
  padding: clamp(2rem, 4vw, 3.2rem);
  border: 1px solid rgba(217, 226, 236, 0.92);
  border-radius: var(--service-radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 26px rgba(16, 42, 67, 0.045);
}

.service-section h2,
#contents > section h2 {
  margin: 0 0 1.1rem;
  color: var(--service-navy);
  font-size: clamp(1.65rem, 2.7vw, 2.45rem);
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.service-section h3,
#contents > section h3 {
  margin: 0 0 0.65rem;
  color: var(--service-navy);
  font-size: 1.18rem;
  line-height: 1.42;
}

.service-section h4,
#contents > section h4 {
  margin: 0 0 1rem;
  color: var(--service-navy);
  font-size: 1.05rem;
  line-height: 1.75;
}

.service-section p,
#contents > section p {
  line-height: 1.85;
}

.service-section-lead {
  max-width: 980px;
  margin: 0 0 1.55rem;
  color: var(--service-text);
  font-size: 1.03rem;
  line-height: 1.85;
}

/* =========================================================
7. Content Panels / Lists
========================================================= */

.list,
.service-panel {
  padding: clamp(1.35rem, 2.8vw, 2rem);
  border: 1px solid var(--service-border);
  border-radius: var(--service-radius-md);
  background: #ffffff;
}

.list + .list {
  margin-top: 1.1rem;
}

.list p:last-child,
.service-panel p:last-child {
  margin-bottom: 0;
}

.service-panel-highlight {
  border-left: 6px solid var(--service-blue);
  background: linear-gradient(90deg, var(--service-sky) 0%, #ffffff 58%);
}

.service-panel-caution {
  margin-top: 1.4rem;
  border-left: 6px solid var(--service-caution-border);
  background: linear-gradient(90deg, var(--service-caution-bg) 0%, #ffffff 70%);
}

ul.disc,
.service-list {
  margin: 0.8rem 0 0;
  padding-left: 1.35rem;
}

ul.disc li,
.service-list li {
  margin-bottom: 0.55rem;
  line-height: 1.75;
}

ul.disc li:last-child,
.service-list li:last-child {
  margin-bottom: 0;
}

/* =========================================================
8. Cards
========================================================= */

.mini-card-grid,
.service-card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.55rem;
}

.mini-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card,
.service-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 1.55rem;
  border: 1px solid rgba(217, 226, 236, 0.95);
  border-radius: var(--service-radius-md);
  background: var(--service-card);
  box-shadow: var(--service-shadow-card);
}

.mini-card::before,
.service-card::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--service-blue) 0%, #83c5f7 100%);
}

.mini-card h4,
.service-card h3 {
  margin-top: 0;
}

.mini-card p:last-child,
.mini-card ul:last-child,
.service-card p:last-child,
.service-card ul:last-child {
  margin-bottom: 0;
}

/* =========================================================
9. Tables
========================================================= */

.table-wrap,
.service-table-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
  border: 1px solid var(--service-border);
  border-radius: var(--service-radius-md);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(16, 42, 67, 0.045);
}

.ta1,
.service-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.ta1 caption,
.service-table caption {
  padding: 1rem 1.1rem;
  color: var(--service-navy);
  font-weight: 800;
  text-align: left;
  background: var(--service-sky-2);
  border-bottom: 1px solid var(--service-border);
}

.ta1 th,
.ta1 td,
.service-table th,
.service-table td {
  padding: 0.95rem 1.05rem;
  border-bottom: 1px solid var(--service-border);
  text-align: left;
  vertical-align: top;
  line-height: 1.72;
}

.ta1 th,
.service-table th {
  color: var(--service-navy);
  font-weight: 800;
  white-space: nowrap;
  background: #f4f8fb;
}

.ta1 tr:last-child td,
.service-table tr:last-child td {
  border-bottom: none;
}

.service-table td:first-child {
  width: 29%;
  color: var(--service-navy);
  font-weight: 800;
}

/* =========================================================
10. Flow
========================================================= */

.service-flow-list {
  counter-reset: service-flow;
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.service-flow-list li {
  counter-increment: service-flow;
  position: relative;
  min-height: 84px;
  padding: 1.25rem 1.25rem 1.25rem 4.35rem;
  border: 1px solid var(--service-border);
  border-radius: var(--service-radius-md);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(16, 42, 67, 0.045);
}

.service-flow-list li::before {
  content: counter(service-flow);
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--service-blue);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 2.25rem;
  text-align: center;
  box-shadow: 0 8px 16px rgba(23, 105, 170, 0.22);
}

.service-flow-list h3 {
  margin: 0 0 0.35rem;
}

.service-flow-list p {
  margin: 0;
  color: var(--service-muted);
}

/* =========================================================
11. FAQ
========================================================= */

.service-faq {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.45rem;
}

.service-faq details {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--service-border);
  border-radius: var(--service-radius-md);
  background: #ffffff;
  box-shadow: 0 5px 16px rgba(16, 42, 67, 0.04);
}

.service-faq summary {
  cursor: pointer;
  color: var(--service-navy);
  font-weight: 800;
  line-height: 1.65;
}

.service-faq summary:hover {
  color: var(--service-blue);
}

.service-faq p {
  margin: 0.75rem 0 0;
  color: var(--service-text);
}

/* =========================================================
12. Contact Form
========================================================= */

.contact-card,
.service-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: clamp(1.4rem, 4vw, 2.4rem);
  align-items: start;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(23, 105, 170, 0.16);
  border-radius: var(--service-radius-lg);
  background: #ffffff;
  box-shadow: var(--service-shadow-soft);
}

.service-contact-section {
  background:
    radial-gradient(
      circle at 92% 14%,
      rgba(23, 105, 170, 0.12) 0,
      transparent 36%
    ),
    linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%);
}

.service-contact-heading {
  max-width: 980px;
  margin-bottom: 1.5rem;
}

.contact-card img,
.service-contact-intro img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: var(--service-radius-md);
}

.contact-form,
.service-contact-form {
  padding: 1.2rem;
  border: 1px solid var(--service-border);
  border-radius: var(--service-radius-md);
  background: var(--service-sky-2);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--service-navy);
  font-size: 0.94rem;
  font-weight: 800;
}

.form-row label span {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: var(--gl-orange);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: middle;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.service-contact-form input,
.service-contact-form select,
.service-contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--service-border);
  border-radius: var(--service-radius-sm);
  background: #ffffff;
  color: var(--service-text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-form textarea,
.service-contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.service-contact-form input:focus,
.service-contact-form select:focus,
.service-contact-form textarea:focus {
  outline: none;
  border-color: var(--service-blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.14);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.35rem;
  border: 1px solid var(--service-blue);
  border-radius: 999px;
  background: var(--service-blue);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(23, 105, 170, 0.22);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.form-submit:hover {
  background: var(--service-blue-dark);
  border-color: var(--service-blue-dark);
  transform: translateY(-1px);
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.contact-direct-email {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--service-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* =========================================================
13. Footer
========================================================= */

footer {
  padding: 2rem 1.5rem;
  background: var(--gl-black);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  border-top: 4px solid var(--gl-orange);
}

footer a {
  color: #ffffff;
  text-decoration: none;
}

footer a:hover {
  color: var(--gl-orange);
  text-decoration: none;
}

footer small {
  display: block;
  font-size: 0.85rem;
  line-height: 1.6;
}

footer .pr {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  opacity: 0.75;
}

/* =========================================================
14. Floating Navigation
========================================================= */

.floating-nav {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.floating-nav p {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
}

.floating-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: var(--service-blue);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(16, 42, 67, 0.18);
}

.floating-nav a:hover {
  background: var(--service-blue-dark);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.floating-nav .floating-contact a {
  min-width: 86px;
}

.floating-nav .scroll a {
  width: 46px;
  min-width: 46px;
  padding: 0;
  font-size: 1.1rem;
}

/* =========================================================
15. Responsive
========================================================= */

@media screen and (max-width: 1100px) {
  .sub-header-inner {
    grid-template-columns: 160px 1fr;
    gap: 18px;
  }

  #language-switch {
    grid-column: 2;
    justify-content: center;
  }

  #menubar ul {
    justify-content: flex-end;
    gap: 10px 18px;
  }

  .mini-card-grid,
  .service-card-grid-3 {
    grid-template-columns: 1fr;
  }

  .service-card-grid-2 {
    grid-template-columns: 1fr;
  }

  .contact-card,
  .service-contact-card {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 800px) {
  .sub-header-inner {
    width: min(calc(100% - 32px), var(--service-content-width));
    min-height: auto;
    padding: 18px 0;
    grid-template-columns: 1fr;
    text-align: center;
  }

  #logo {
    text-align: center;
  }

  #logo img {
    width: 100px;
    margin: 0 auto;
  }

  #menubar ul {
    justify-content: center;
    gap: 10px 16px;
  }

  #menubar a {
    font-size: 0.9rem;
  }

  #language-switch {
    grid-column: auto;
    justify-content: center;
  }

  #contents {
    width: min(calc(100% - 32px), var(--service-content-width));
    padding-top: 2.4rem;
  }

  .hero-links,
  .service-hero-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-links a,
  .service-hero-links a,
  .service-hero-links .service-btn {
    width: 100%;
    min-width: 0;
  }

  .btn-primary,
  .btn-secondary,
  .service-btn {
    width: 100%;
  }

  .sub-hero,
  .service-hero,
  .service-section,
  #contents > section:not(.service-hero):not(.sub-hero) {
    border-radius: 18px;
  }

  .ta1,
  .service-table {
    min-width: 720px;
  }

  .service-flow-list li {
    padding: 1.15rem 1.1rem 1.15rem 3.95rem;
  }

  .service-flow-list li::before {
    left: 1.05rem;
  }
}

@media screen and (max-width: 520px) {
  #contents {
    width: min(calc(100% - 24px), var(--service-content-width));
  }

  .sub-hero,
  .service-hero {
    padding: 2rem 1.35rem;
  }

  .service-section,
  #contents > section:not(.service-hero):not(.sub-hero) {
    padding: 1.65rem 1.25rem;
  }

  .mini-card,
  .service-card,
  .list,
  .service-panel,
  .contact-card,
  .service-contact-card {
    padding: 1.25rem;
  }

  .contact-form,
  .service-contact-form {
    padding: 1rem;
  }

  .hero-links,
  .service-hero-links {
    grid-template-columns: 1fr;
  }

  .floating-nav {
    right: 12px;
    bottom: 12px;
  }

  .floating-nav a {
    min-width: 42px;
    height: 42px;
    font-size: 0.8rem;
  }

  .floating-nav .floating-contact a {
    min-width: 82px;
  }

  .floating-nav .scroll a {
    width: 42px;
    min-width: 42px;
  }
}
