/* ============================================================
   GILBURY LIMITED — Dark Emerald Theme
   Accent #10B981 · Supporting #059669 / #A7F3D0 / #06251C
   Body background #0F1312 · Text #EAF2EF
   ============================================================ */

:root {
  --bg: #0F1312;
  --bg-soft: #121816;
  --surface: #16201D;
  --surface-2: #1B2723;
  --border: #223129;
  --border-soft: #1E2B26;
  --text: #EAF2EF;
  --text-soft: #B8CCC3;
  --text-mute: #8FA79D;
  --accent: #10B981;
  --accent-deep: #059669;
  --accent-light: #A7F3D0;
  --accent-ink: #06251C;
  --wood: #8A6A44;
  --wood-dark: #6B4F30;
  --wood-light: #A58258;
}

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

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

body {
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::selection {
  background-color: var(--accent);
  color: var(--accent-ink);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-light);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   OPEN BOOK NAVIGATION (.book-nav)
   ============================================================ */

.book-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background-color: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
}

.book-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__book {
  position: relative;
  width: 44px;
  height: 32px;
  flex-shrink: 0;
}

.brand__page {
  position: absolute;
  top: 0;
  width: 20px;
  height: 100%;
  background-color: var(--accent-ink);
  border: 1px solid var(--accent);
}

.brand__page--left {
  left: 0;
  border-right: none;
  border-radius: 4px 0 0 4px;
}

.brand__page--right {
  right: 0;
  border-left: none;
  border-radius: 0 4px 4px 0;
}

.brand__page::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 7px;
  height: 2px;
  background-color: var(--accent);
  box-shadow: 0 5px 0 var(--accent-light), 0 10px 0 var(--accent);
}

.brand__spine {
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 2px;
  transform: translateX(-50%);
  background-color: var(--accent-light);
}

.brand__word {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand__word span {
  color: var(--accent);
}

.book-nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.book-nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 6px 2px;
  position: relative;
}

.book-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.25s ease;
}

.book-nav__links a:hover {
  color: var(--text);
}

.book-nav__links a:hover::after {
  width: 100%;
}

.book-nav__cta {
  display: inline-block;
  background-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.book-nav__cta:hover {
  background-color: var(--accent-light);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

.book-nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 44px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.book-nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--accent-light);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ============================================================
   HOURGLASS HERO (.hourglass-hero)
   ============================================================ */

.hourglass-hero {
  position: relative;
  padding: 96px 0 108px;
  background:
    radial-gradient(720px 420px at 82% 20%, #0A2A1F 0%, rgba(10, 42, 31, 0) 68%),
    var(--bg);
  border-bottom: 1px solid var(--border-soft);
}

.hourglass-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hourglass-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hourglass-hero__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background-color: var(--accent);
}

.hourglass-hero h1 {
  font-size: 3rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hourglass-hero h1 .accent {
  color: var(--accent);
}

.hourglass-hero__sub {
  font-size: 1.12rem;
  color: var(--text-soft);
  max-width: 520px;
  margin-bottom: 34px;
}

.hourglass-hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background-color: var(--accent-light);
  color: var(--accent-ink);
  transform: translateY(-2px);
}

.btn--ghost {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* Hourglass illustration */

.hourglass {
  position: relative;
  width: 320px;
  height: 400px;
  margin: 0 auto;
}

.hg-glow {
  position: absolute;
  inset: 40px -30px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(16, 185, 129, 0) 70%);
  filter: blur(14px);
  pointer-events: none;
}

.hg-cap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 210px;
  height: 16px;
  background: linear-gradient(180deg, var(--wood-light), var(--wood-dark));
  border-radius: 4px;
}

.hg-cap--top {
  top: 0;
}

.hg-cap--bottom {
  bottom: 0;
}

.hg-post {
  position: absolute;
  top: 16px;
  width: 10px;
  height: 368px;
  background: linear-gradient(180deg, var(--wood-light), var(--wood-dark));
  border-radius: 3px;
}

.hg-post--left {
  left: calc(50% - 105px);
}

.hg-post--right {
  right: calc(50% - 105px);
}

.hg-bulb {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 168px;
}

.hg-bulb--upper {
  top: 26px;
  height: 158px;
  background: linear-gradient(180deg, #0E5E42 0%, var(--accent-ink) 100%);
  clip-path: polygon(6% 0, 94% 0, 50% 100%);
  border-radius: 2px;
}

.hg-bulb--lower {
  bottom: 26px;
  height: 158px;
  background: linear-gradient(180deg, var(--accent-ink) 0%, #0E5E42 100%);
  clip-path: polygon(50% 0, 94% 100%, 6% 100%);
}

.hg-bulb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(180deg, rgba(167, 243, 208, 0.5), rgba(16, 185, 129, 0.5));
}

.hg-neck {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 26px;
  background: var(--accent-ink);
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

.hg-grain {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent-light);
}

.hg-grain--1 { top: 26px; left: 40px; }
.hg-grain--2 { top: 40px; left: 72px; }
.hg-grain--3 { top: 30px; left: 104px; }
.hg-grain--4 { top: 58px; left: 54px; }
.hg-grain--5 { top: 52px; left: 90px; }
.hg-grain--6 { top: 74px; left: 70px; }
.hg-grain--7 { top: 90px; left: 44px; }
.hg-grain--8 { top: 84px; left: 98px; }
.hg-grain--9 { top: 108px; left: 78px; }
.hg-grain--10 { top: 122px; left: 60px; }
.hg-grain--11 { top: 128px; left: 90px; }
.hg-grain--12 { top: 140px; left: 76px; }

.hg-pile {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: 60px;
  height: 30px;
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* ============================================================
   STATEMENT ROW (full-width)
   ============================================================ */

.statement-section {
  padding: 110px 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-soft);
}

.statement-section__label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.statement-section h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 900px;
}

.statement-section h2 .accent {
  color: var(--accent);
}

/* ============================================================
   STAT COLUMNS (big numerals)
   ============================================================ */

.stats-section {
  padding: 96px 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}

.stats-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  background-color: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 40px 34px;
  text-align: center;
}

.stat-card__num {
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-card__label {
  margin-top: 12px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}

.stat-card__desc {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--text-mute);
}

/* ============================================================
   HORIZONTAL SCROLL SERVICE CARDS
   ============================================================ */

.scroll-services-section {
  padding: 96px 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head__lead {
  max-width: 420px;
  color: var(--text-soft);
  font-size: 1rem;
}

.section-head__kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.scroll-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
}

.scroll-row::-webkit-scrollbar {
  height: 8px;
}

.scroll-row::-webkit-scrollbar-track {
  background: var(--accent-ink);
  border-radius: 6px;
}

.scroll-row::-webkit-scrollbar-thumb {
  background: var(--accent-deep);
  border-radius: 6px;
}

.service-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background-color: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 32px 28px;
}

.service-card__tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  background-color: var(--accent-ink);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-soft);
  font-size: 0.96rem;
}

/* ============================================================
   PROCESS LIST (01–05 with connecting lines)
   ============================================================ */

.process-section {
  padding: 96px 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}

.process-list {
  list-style: none;
  counter-reset: step;
  max-width: 820px;
  margin: 0 auto;
}

.process-item {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 26px;
  padding: 26px 0;
}

.process-item::before {
  content: "";
  position: absolute;
  left: 47px;
  top: 26px;
  bottom: -26px;
  width: 2px;
  background-color: var(--border);
}

.process-item:last-child::before {
  display: none;
}

.process-item__num {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-color: var(--accent-ink);
  border: 1px solid var(--accent-deep);
  color: var(--accent-light);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}

.process-item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-item p {
  color: var(--text-soft);
  max-width: 560px;
}

/* ============================================================
   COMPARISON TABLE (two service lines)
   ============================================================ */

.compare-section {
  padding: 96px 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border-soft);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.97rem;
}

.compare-table thead th {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-light);
}

.compare-table thead th:first-child {
  color: var(--text-mute);
  font-weight: 600;
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--text-soft);
  width: 200px;
}

.compare-table .yes {
  color: var(--accent);
  font-weight: 700;
}

.compare-table .no {
  color: var(--text-mute);
}

.compare-table .note {
  color: var(--text-soft);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about-section {
  padding: 96px 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}

.about-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.about-section__body p {
  color: var(--text-soft);
  margin-bottom: 18px;
  font-size: 1.03rem;
}

.about-section__body p strong {
  color: var(--text);
}

.about-section__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-section__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-soft);
}

.about-section__list li::before {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 2px;
  background-color: var(--accent);
}

/* ============================================================
   SPLIT CTA BAND
   ============================================================ */

.split-cta-section {
  padding: 96px 0;
  background-color: var(--bg);
}

.split-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--surface);
}

.split-cta__panel {
  padding: 52px 46px;
}

.split-cta__panel--accent {
  background: linear-gradient(135deg, var(--accent-deep), #0E5E42);
}

.split-cta__panel h3 {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.split-cta__panel p {
  color: var(--text-soft);
  margin-bottom: 24px;
}

.split-cta__panel--accent p {
  color: var(--accent-light);
}

.split-cta__panel .btn {
  background-color: var(--accent);
  color: var(--accent-ink);
}

.split-cta__panel--accent .btn {
  background-color: var(--accent-light);
  color: var(--accent-ink);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

.contact-section {
  padding: 96px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--border-soft);
}

.contact-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-section h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.contact-section__info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 26px;
}

.contact-section__info li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.contact-section__info .ico {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background-color: var(--accent-ink);
  border: 1px solid var(--accent-deep);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.contact-form {
  background-color: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 32px 30px;
}

.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 18px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  background-color: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-form button:hover {
  background-color: var(--accent-light);
}

.contact-form .form-note {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--accent-light);
  min-height: 1.3em;
}

/* ============================================================
   FOOTER (compact multi-column, emerald top rule)
   ============================================================ */

.site-footer {
  background-color: var(--bg-soft);
  border-top: 3px solid var(--accent);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding: 56px 0 40px;
}

.site-footer h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

.site-footer p {
  color: var(--text-mute);
  font-size: 0.94rem;
  line-height: 1.6;
}

.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer ul a {
  color: var(--text-mute);
  font-size: 0.94rem;
}

.site-footer ul a:hover {
  color: var(--accent-light);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.site-footer__brand .brand__book {
  width: 34px;
  height: 25px;
}

.site-footer__brand .brand__page {
  width: 15px;
}

.site-footer__brand .brand__word {
  font-size: 1.15rem;
}

.site-footer__bottom {
  border-top: 1px solid var(--border-soft);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__bottom p {
  font-size: 0.86rem;
  color: var(--text-mute);
}

.site-footer__legal {
  display: flex;
  gap: 20px;
}

.site-footer__legal a {
  font-size: 0.86rem;
  color: var(--text-mute);
}

.site-footer__legal a:hover {
  color: var(--accent-light);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .hourglass-hero__inner {
    grid-template-columns: 1fr;
  }

  .hourglass {
    margin-top: 20px;
  }

  .about-section__grid,
  .contact-section__grid {
    grid-template-columns: 1fr;
  }

  .split-cta {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .book-nav__toggle {
    display: flex;
  }

  .book-nav__links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background-color: var(--bg-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .book-nav__links.is-open {
    max-height: 420px;
    padding: 12px 24px 20px;
  }

  .book-nav__links li {
    width: 100%;
  }

  .book-nav__links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .book-nav__cta {
    display: none;
  }

  .hourglass-hero {
    padding: 60px 0 72px;
  }

  .hourglass-hero h1 {
    font-size: 2.2rem;
  }

  .stats-section__grid {
    grid-template-columns: 1fr;
  }

  .statement-section h2 {
    font-size: 1.9rem;
  }

  .process-item {
    grid-template-columns: 72px 1fr;
    gap: 18px;
  }

  .process-item__num {
    width: 72px;
    height: 72px;
    font-size: 1.25rem;
  }

  .process-item::before {
    left: 35px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
