/* ═══════════════════════════════════════════════════════════
   ALBAKOS, pages.css (subpage + detail styles, extends style.css)
   ═══════════════════════════════════════════════════════════ */

/* ---------- Extra buttons ---------- */
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(17,17,17,.22); }
.btn-outline-dark { color: var(--ink); border-color: rgba(17,17,17,.35); padding: 11px 24px; font-size: 14px; }
.btn-outline-dark:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.center-link { text-align: center; margin-top: 48px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background:
    linear-gradient(105deg, rgba(8,47,40,.97) 0%, rgba(8,47,40,.88) 55%, rgba(12,58,49,.82) 100%),
    url('/images/hero.jpg') center 30% / cover no-repeat;
  padding: 88px 0 84px;
  border-bottom: 1px solid rgba(196,154,74,.18);
}
.page-hero-title { color: var(--white); font-size: clamp(34px, 4.4vw, 52px); max-width: 760px; }
.page-hero-lead { color: rgba(255,255,255,.75); font-size: 17.5px; max-width: 620px; margin-top: 18px; }

.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; font-size: 13px; font-weight: 600; }
.breadcrumb a { color: var(--gold-soft); transition: color .2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span:not(:last-child) { color: rgba(255,255,255,.4); }
.breadcrumb span:last-child { color: rgba(255,255,255,.85); }
.breadcrumb-light a { color: #8a6d2f; }
.breadcrumb-light a:hover { color: var(--ink); }
.breadcrumb-light span:not(:last-child) { color: #B4B6B1; }
.breadcrumb-light span:last-child { color: var(--ink); }

/* ---------- Detail pages (projects, services) ---------- */
.detail-page { padding-top: 64px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; margin-bottom: 26px; }
.detail-grid.detail-grid-aside { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.detail-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.detail-media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.detail-badge { position: absolute; top: 18px; left: 18px; }
.detail-title { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 10px; }
.detail-loc { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; color: var(--gold); margin-bottom: 24px; }
.detail-loc svg { width: 17px; height: 17px; stroke: var(--gold); }
.detail-par { font-size: 16.5px; margin-top: 16px; color: var(--body); max-width: 640px; }

.spec-table { width: 100%; border-collapse: collapse; margin: 4px 0 28px; font-size: 14.5px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th { text-align: left; padding: 13px 4px 13px 0; color: #9A9C98; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; width: 42%; vertical-align: top; }
.spec-table td { padding: 13px 0; color: var(--ink); font-weight: 700; }

.detail-body { max-width: 760px; margin: 26px 0 8px; }
.detail-body p { font-size: 16.5px; margin-bottom: 18px; }
.detail-related { margin-top: 84px; padding-top: 60px; border-top: 1px solid var(--line); }
.detail-related .section-title { margin-bottom: 40px; }

/* Service detail layout */
.detail-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.feature-panel { background: var(--green); border-radius: var(--radius); padding: 34px 32px; }
.feature-panel h3 { color: var(--white); font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 22px; }
.check-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.82); font-size: 14.5px; font-weight: 600; }
.check-list svg { width: 19px; height: 19px; flex-shrink: 0; stroke: var(--gold); margin-top: 1px; }
.service-icon-lg { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 26px; }
.service-icon-lg svg { width: 32px; height: 32px; }
.service-icon-lg { background: rgba(196,154,74,.14); }

.service-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13.5px; font-weight: 800; color: var(--gold-soft); }
.service-more .btn-arrow { transition: transform .25s var(--ease); }
.service-card:hover .service-more .btn-arrow { transform: translateX(4px); }

/* ---------- Blog ---------- */
.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--gold); }
.blog-grid-full { grid-template-columns: repeat(3, 1fr); }
.post-wrap { max-width: 760px; }
.post-meta { display: flex; align-items: center; gap: 16px; margin: 18px 0 14px; }
.post-meta .blog-date { display: inline-flex; align-items: center; gap: 7px; }
.post-meta .blog-date svg { width: 15px; height: 15px; stroke: #9A9C98; }
.post-title { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 26px; }
.post-body p { font-size: 16.5px; margin-bottom: 20px; }
.post-back { margin-top: 40px; }

/* ---------- Careers ---------- */
.jobs-list { display: flex; flex-direction: column; gap: 16px; }
.job-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 30px; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.job-card:hover { border-color: rgba(196,154,74,.55); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.job-main h3 { font-size: 20px; margin-bottom: 6px; }
.job-main p { font-size: 14.5px; }
.job-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.job-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--body); background: var(--offwhite); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }
.job-chip svg { width: 14px; height: 14px; stroke: var(--gold); }

/* ---------- Notes ---------- */
.placeholder-note-light { text-align: center; margin-top: 28px; font-size: 12.5px; color: #9A9C98; font-style: italic; }
.placeholder-note-dark { text-align: center; margin-top: 28px; font-size: 12.5px; color: rgba(0,0,0,.4); font-style: italic; }

/* ---------- Gallery page ---------- */
.gallery-home { margin-bottom: 0; }

/* ---------- Machinery ---------- */
.machinery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.machinery-card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .25s var(--ease), box-shadow .25s; }
.machinery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.machinery-card-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--offwhite); }
.machinery-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.machinery-card:hover .machinery-card-media img { transform: scale(1.04); }
.machinery-card-body { padding: 22px; }
.machinery-card-body h2 { font-size: 22px; margin-bottom: 8px; }
.machinery-card-body p { font-size: 14px; color: var(--body); }
.machinery-card-body p span { color: var(--gold); padding: 0 5px; }
.machinery-card-link { display: inline-flex; gap: 8px; margin-top: 17px; color: var(--gold); font-size: 13px; font-weight: 800; }
.machinery-detail-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.machinery-detail-cover { overflow: hidden; border-radius: var(--radius); background: var(--offwhite); box-shadow: var(--shadow-card); }
.machinery-detail-cover img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.machinery-gallery-section { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.machinery-gallery-section .section-title { margin-bottom: 30px; }
.machinery-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.machinery-gallery-item { display: block; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: var(--offwhite); cursor: zoom-in; }
.machinery-gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.machinery-gallery-item:hover img { transform: scale(1.04); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .blog-grid-full { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .machinery-detail-top { grid-template-columns: 1fr; gap: 36px; }
  .machinery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-aside { position: static; }
}

@media (max-width: 900px) {
  .page-hero { padding: 66px 0 62px; }
}

@media (max-width: 640px) {
  .detail-page { padding-top: 44px; }
  .detail-related { margin-top: 60px; padding-top: 44px; }
  .job-card { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .job-card .btn-outline-dark { justify-self: start; }
  .blog-grid-full { grid-template-columns: 1fr; }
  .machinery-grid { grid-template-columns: 1fr; }
  .machinery-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .machinery-gallery-section { margin-top: 52px; padding-top: 42px; }
  .post-body p, .detail-body p { font-size: 15.5px; }
  .detail-body { margin-top: 8px; }
}
