/* Jibla Tech company site — rebuilt to match the Squarespace (Pacific) design.
   All values below are taken from computed-style measurements of the original
   production site at a 1440x900 viewport: white body, Raleway everywhere
   (500 body / 600 headings-nav / 200 hero), 1012px content container,
   accent #ff8b38, dark band #1c1513. */

:root {
  --dark: #1c1513;
  --heading: #201713;
  --text: rgba(28, 28, 28, .9);
  --accent: #ff8b38;
  --container: 1012px;
}

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

html { scroll-behavior: smooth; }

/* The page ground is the dark brown — white sections paint themselves.
   (Matches the original: the strip between careers and the footer shows it.) */
body {
  background: var(--dark);
  color: var(--text);
  font-family: "Raleway", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: .4px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Raleway", Arial, sans-serif; }

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

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

/* 24px side padding on top of the 1012px content width, so the content box
   itself measures 1012px at full width, like the original. */
.container { max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 0 24px; }

/* Header / nav.
   Over the hero: centered links with the 200px logo inline, links 14px/600/2px.
   Once scrolled (index page JS): the original's compact fixed dark bar, logo
   hidden. Subpages show the same band statically on the dark background. */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 30px 24px 0;
  transition: background-color .25s ease, padding .25s ease;
}
/* The original centers the LOGO on the page and aligns the link groups to it
   (28px gap left, 36px right) — the row as a whole is not centered. */
.nav-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav-side { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-side.left { justify-content: flex-end; }
.nav-side.right { justify-content: flex-start; }
.nav-row .logo { margin: 0 32px; }
.nav-row .logo img { width: 200px; height: auto; display: block; }
.nav-row a.nav-link {
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 14px;
  text-transform: uppercase;
  padding: 10.5px 13px;
}
.nav-row a.nav-link:hover, .nav-row a.nav-link.active { color: var(--accent); text-decoration: none; }

#header.scrolled {
  background: rgba(28, 21, 19, .95);
  padding: 5px 24px;
}
#header.scrolled .logo { display: none; }

.subpage #header { position: static; background: var(--dark); padding-bottom: 31px; }

/* Hero */
#home-section {
  height: calc(100vh - 40px);
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(16, 10, 8, .55), rgba(16, 10, 8, .65)), url(../img/bg.webp) center / cover no-repeat;
  padding: 0 24px;
}
#home-section h1 {
  color: #fff;
  font-size: min(82px, 5.7vw);
  font-weight: 200;
  letter-spacing: normal;
  line-height: 1.1;
}
@media (max-width: 700px) { #home-section h1 { font-size: 40px; } }
#home-section .tagline {
  margin-top: 25px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* About — white section, heading + paragraph on the left (663px),
   contact details in a narrow right column (228px). */
#restaurant-section { background: #fff; padding: 100px 0 135px; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 663px) 228px;
  justify-content: space-between;
  gap: 48px;
}
.about-main h2 {
  color: var(--heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: normal;
  margin-bottom: 53px;
}
.about-contact h3 {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 1.4;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.about-contact .block + .block { margin-top: 40px; }
.about-contact strong { color: var(--heading); font-weight: 700; }
.about-contact p { margin: 0; }
.about-contact p.mail { margin-top: 13px; margin-bottom: 12px; }

/* Galleries — full-bleed 16:9 carousels; slides cover-cropped, thin white
   chevrons flush to the edges, 10px ringed dots near the bottom. */
.gallery-section { position: relative; }
.gallery-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #111; }
.gallery-frame img.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.gallery-frame img.slide.current { opacity: 1; }

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 60px;
  background: none;
  border: 0;
  cursor: pointer;
  opacity: .85;
}
.gallery-arrow:hover { opacity: 1; }
.gallery-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
}
.gallery-arrow.prev { left: 0; }
.gallery-arrow.prev::before { left: 16px; transform: translateY(-50%) rotate(45deg); }
.gallery-arrow.next { right: 0; }
.gallery-arrow.next::before { right: 16px; transform: translateY(-50%) rotate(225deg); }

.gallery-dots {
  position: absolute;
  bottom: 39px;
  left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 13px;
}
.gallery-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .5);
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, .1);
}
.gallery-dots button.current { background: #fff; border-color: #fff; }

/* Careers — white band, single left-aligned paragraph; the 68px margin below
   shows the dark body strip the original has between careers and the footer. */
#careers-section { background: #fff; padding: 100px 0; margin-bottom: 68px; }

/* Footer */
/* rgb(39,33,31) = the original's rgba(28,21,19,.95) composited over the white
   content wrapper that sits behind its footer. */
footer {
  background: rgb(39, 33, 31);
  padding: 68px 24px 68px;
  text-align: center;
}
footer .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
footer a {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 14px;
  text-transform: uppercase;
  padding: 9.5px 13px;
}
footer a:hover { color: var(--accent); text-decoration: none; }
footer .site-name { color: rgba(255, 255, 255, .3); font-size: 14.25px; }

/* Subpages (terms, privacy, blog, 404): dark header band, white content with
   the page title in a narrow left column and the text in a 751px right column,
   mirroring the original pages. */
.subpage .content-bg { background: #fff; }
.subpage main {
  display: grid;
  grid-template-columns: 261px minmax(0, 751px);
  justify-content: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 100px 24px 120px;
}
.subpage main > * { grid-column: 2; }
.subpage main > h1 {
  grid-column: 1;
  grid-row: 1;
  color: var(--heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  padding-right: 30px;
}
.subpage main h2 { color: var(--heading); font-size: 20px; font-weight: 600; margin: 36px 0 14px; }
.subpage main h3 { color: var(--heading); font-size: 16px; font-weight: 600; margin: 26px 0 10px; }
.subpage main p, .subpage main li { margin-bottom: 24px; }
.subpage main ul, .subpage main ol { padding-left: 24px; margin-bottom: 14px; }
.subpage main strong { color: var(--heading); font-weight: 700; }

@media (max-width: 900px) {
  .nav-row { display: flex; flex-wrap: wrap; justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .subpage main { grid-template-columns: 1fr; }
  .subpage main > h1 { grid-column: 1; margin-bottom: 30px; }
  .subpage main > * { grid-column: 1; }
}
