/*
 * Design tokens — lifted verbatim from the Facilities design's :root.
 * Names carry a `karam-` prefix so they cannot collide with the site's own
 * custom properties (the design called them --bg, --gold, ...).
 */
:root {
  --karam-bg: #0a0826;
  --karam-bg2: #100d38;
  --karam-card: #13104177;
  --karam-ink: #f6f2ea;
  --karam-muted: #aaa7cc;
  --karam-gold: #d8b878;
  --karam-line: rgba(170, 167, 204, .22);
  --karam-line2: rgba(216, 184, 120, .45);
  --karam-serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --karam-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  /* The design's own shell: a 1180px column with a 24px gutter. */
  --karam-shell: 1180px;
  --karam-gutter: 24px;
}

/*
 * Theme isolation.
 *
 * Divi's element selectors and any child theme outrank single-class component
 * rules, so everything the design inherits from <body> is re-asserted on the
 * `.karam_module` class that every module wrapper carries.
 */
.karam_module {
  font-family: var(--karam-sans);
  font-size: 16px;
  font-weight: 300;
  font-style: normal;
  line-height: 1.7;
  letter-spacing: normal;
  text-transform: none;
  text-align: left;
  color: var(--karam-ink);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/*
 * Child modules (a table row, a restaurant card) carry `.karam_module` too, but
 * they sit inside a parent that already set the type — they must inherit it, not
 * reset it (a table row at 16px instead of the table's 14px wraps differently).
 */
.karam_module .karam_module {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.karam_module *,
.karam_module *:before,
.karam_module *:after {
  box-sizing: inherit;
}

.karam_module img {
  display: block;
  max-width: 100%;
  height: auto;
}

.karam_module a {
  color: inherit;
  text-decoration: none;
}

/*
 * Divi gives every <p> a bottom padding; the design uses margins only. These are
 * :where() resets — they beat the theme's element selectors but sit below every
 * component class, so a component can still set its own padding.
 */
.karam_module :where(p, figure, ul) {
  padding: 0;
}

.karam_module :where(h1, h2, h3, h4) {
  font-family: var(--karam-serif);
  font-weight: 500;
  margin: 0;
  padding: 0;
  line-height: 1.15;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
}

/*
 * Divi container reset.
 *
 * Every module is a full-width band that carries the design's own shell and
 * vertical rhythm, so it has to be freed from Divi's section / row / column or
 * the row caps every band's width and clips full-bleed backgrounds. `:has()`
 * scopes it to rows that hold one of our modules, so a hand-assembled page
 * behaves exactly like the compiled layout.
 */
.et_pb_section:has(.karam_module) {
  padding: 0 !important;
}

.et_pb_row:has(.karam_module) {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
}

/* Divi always wraps modules in a column — style it too, not just the row. */
.et_pb_row:has(.karam_module) .et_pb_column {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  row-gap: 0 !important;
}

.et_pb_row .et_pb_column .karam_module.et_pb_module {
  margin: 0;
}

/*
 * One block of rules per module, values lifted verbatim from the Facilities
 * design's own stylesheet.
 *
 * Two translations are applied everywhere, and nothing else:
 *   1. The design's page background (<body>) becomes a background on each
 *      module's outer wrapper, so a band reads dark whatever Divi's section
 *      behind it is painted.
 *   2. A margin the design put on a block becomes padding on that outer
 *      wrapper — a margin would let Divi's own section colour show through.
 *
 * Root rules use a single class so Divi's Spacing and Background settings
 * (also single-class rules, emitted later) can still override them.
 */

/* Shared: eyebrow ----------------------------------------------------------- */
.karam_band__eyebrow,
.karam_feature__eyebrow,
.karam_detail__eyebrow,
.karam_outlet__eyebrow {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--karam-muted);
  font-weight: 400;
}

.karam_detail__eyebrow {
  display: block;
  color: var(--karam-gold);
}

/* Section band  (design: .band) -------------------------------------------- */
.karam_band {
  display: flow-root;
  background: var(--karam-bg);
  padding: 70px 0 30px;
}

.karam_band__box {
  position: relative;
  padding: 60px 24px;
  text-align: center;
  background: linear-gradient(180deg, #0d0a30, #100d38);
  border-top: 1px solid var(--karam-line);
  border-bottom: 1px solid var(--karam-line);
  overflow: hidden;
}

.karam_band__box:before,
.karam_band__box:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 120px;
  height: 170px;
  transform: translateY(-50%);
  border: 1px solid var(--karam-line);
  border-radius: 60px 60px 0 0;
  opacity: .7;
}

.karam_band__box:before { left: 2%; }
.karam_band__box:after { right: 2%; }

.karam_band__orn {
  /* Inline, exactly as in the design: it sits on a line box, which is part of the band's height. */
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  color: var(--karam-ink);
}

.karam_band__title {
  font-size: clamp(32px, 4.5vw, 46px);
  margin: 8px 0 12px;
}

.karam_band__body {
  max-width: 600px;
  margin: 0 auto;
  color: var(--karam-muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .karam_band__box:before,
  .karam_band__box:after { display: none; }
}

/* Feature row  (design: .row) ---------------------------------------------- */
.karam_feature {
  display: flow-root;
  background: var(--karam-bg);
}

.karam_feature__box {
  /* A stacking context of its own, so the offset frame (z-index: -1) paints
     above this module's background instead of vanishing behind it. */
  position: relative;
  isolation: isolate;
  max-width: var(--karam-shell);
  margin: 0 auto;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.karam_feature__box--right .karam_feature__media { order: 2; }

.karam_feature__media { position: relative; }

.karam_feature__image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 2px;
}

.karam_feature__media:after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--karam-line2);
  z-index: -1;
}

.karam_feature__box--right .karam_feature__media:after { inset: 14px 14px -14px -14px; }

.karam_feature__title {
  font-size: clamp(30px, 3.6vw, 42px);
  margin: 8px 0 16px;
}

.karam_feature__body {
  color: var(--karam-muted);
  font-size: 14.5px;
  margin: 0 0 18px;
  max-width: 480px;
}

.karam_feature__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
}

.karam_feature__tags span + span:before {
  content: "·";
  margin: 0 10px;
  color: var(--karam-gold);
}

@media (max-width: 820px) {
  .karam_feature__box { grid-template-columns: 1fr; gap: 30px; padding: 30px 24px; }
  .karam_feature__box--right .karam_feature__media { order: 0; }
  .karam_feature__media:after,
  .karam_feature__box--right .karam_feature__media:after { display: none; }
}

/* Detail block  (design: .detail, .gallery, .cols, table, .fac, .pull) ------- */
.karam_detail {
  display: flow-root;
  background: var(--karam-bg);
}

.karam_detail__inner {
  max-width: var(--karam-shell);
  margin: 0 auto;
  padding: 30px 24px 10px;
}

/* Divider lines. */
.karam_detail__sep {
  height: 1px;
  background: var(--karam-line);
}

.karam_detail__sep--inset { margin: 10px 0 40px; }

.karam_detail__sepwrap { padding-top: 56px; }

.karam_detail__sepwrap .karam_detail__sep {
  max-width: var(--karam-shell);
  margin: 0 auto;
}

.karam_detail__inner--meeting { padding-top: 50px; }
.karam_detail__inner--schedule { padding-top: 34px; }

/* Heading. */
.karam_detail__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--karam-line);
  padding-bottom: 14px;
  margin-bottom: 26px;
}

.karam_detail__title { font-size: clamp(30px, 4vw, 42px); }

.karam_detail__intro {
  color: var(--karam-muted);
  max-width: 780px;
  margin: 0 0 28px;
  font-size: 14.5px;
}

/* Gallery. */
.karam_detail__gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

.karam_detail__inner--schedule .karam_detail__gallery { margin-top: 34px; }

.karam_detail__fig {
  margin: 0;
  overflow: hidden;
  position: relative;
  background: var(--karam-bg2);
  cursor: zoom-in;
}

.karam_detail__fig img,
.karam_detail__stack-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.karam_detail__fig:hover img { transform: scale(1.05); }

.karam_detail__fig--half { grid-column: span 3; aspect-ratio: 4/3; }
.karam_detail__fig--third { grid-column: span 2; aspect-ratio: 4/3; }
.karam_detail__fig--tall { grid-column: span 2; aspect-ratio: 3/4; }
.karam_detail__fig--main { grid-column: span 4; aspect-ratio: 16/10; }

/* Large photo that fills the height of the stacked pair beside it. */
.karam_detail__fig--fill { aspect-ratio: auto; min-height: 100%; }

/* Two photos stacked in one cell. */
.karam_detail__fig--stack {
  grid-column: span 2;
  aspect-ratio: auto;
  display: grid;
  gap: 12px;
  background: none;
  cursor: default;
}

.karam_detail__stack-item {
  aspect-ratio: 4/3;
  cursor: zoom-in;
}

/* The design crops its last photo (the juice station) lower. */
.karam_detail__gallery--thirds-halves .karam_detail__img5 img { object-position: center 35%; }

@media (max-width: 640px) {
  .karam_detail__gallery { grid-template-columns: repeat(2, 1fr); }
  .karam_detail__fig--main { grid-column: span 2; aspect-ratio: 16/10; }
  .karam_detail__fig--half,
  .karam_detail__fig--third,
  .karam_detail__fig--tall { grid-column: span 1; }
  .karam_detail__fig--fill { aspect-ratio: auto; min-height: 100%; }
  .karam_detail__fig--stack { grid-column: span 2; }
}

/* Table beside facilities. */
.karam_detail__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 34px;
}

.karam_detail__col { min-width: 0; }

@media (max-width: 900px) {
  .karam_detail__cols { grid-template-columns: minmax(0, 1fr); }
}

.karam_detail__tableTitle,
.karam_detail__facTitle {
  display: block;
  font-size: 13px;
  font-family: var(--karam-sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--karam-gold);
  font-weight: 500;
  margin-bottom: 14px;
}

/*
 * The table: divs displayed as table / row / cell, so column widths size to
 * their content exactly like the design's <table> (see TableRow.php).
 */
.karam_detail__tablewrap {
  overflow-x: auto;
  border: 1px solid var(--karam-line);
}

.karam_detail__table {
  display: table;
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 14px;
}

.karam_detail__thead { display: table-row; }

.karam_detail__th,
.karam_trow__cell {
  display: table-cell;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--karam-line);
  vertical-align: top;
}

.karam_detail__th {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--karam-muted);
  font-weight: 500;
  background: rgba(255, 255, 255, .03);
}

.karam_trow.et_pb_module { display: table-row; }
.karam_trow__row { display: contents; }

.karam_trow__cell { color: #cfcce6; }

.karam_trow__cell--name {
  font-family: var(--karam-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--karam-ink);
}

.karam_trow__cell--num {
  color: var(--karam-gold);
  font-weight: 500;
  white-space: nowrap;
}

.karam_trow:last-child .karam_trow__cell { border-bottom: 0; }

.karam_trow__sub {
  font-family: var(--karam-sans);
  font-size: 11px;
  color: var(--karam-muted);
}

/* Facility boxes. */
.karam_detail__fac { display: grid; gap: 14px; }

.karam_detail__box {
  border: 1px solid var(--karam-line);
  padding: 18px 20px;
  background: rgba(255, 255, 255, .02);
}

.karam_detail__box b {
  display: block;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.karam_detail__box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  color: #cfcce6;
  font-size: 14px;
}

.karam_detail__inner--meeting .karam_detail__box ul { display: block; }

.karam_detail__box li:before {
  content: "◆";
  color: var(--karam-gold);
  font-size: 7px;
  margin-right: 9px;
  vertical-align: 2px;
}

/* Note and closing line. */
.karam_detail__note {
  font-size: 12.5px;
  color: var(--karam-muted);
  /* The design sets only margin-top; the bottom is the browser's default 1em. */
  margin: 14px 0 1em;
  font-style: italic;
}

.karam_detail__inner--schedule .karam_detail__note { text-align: center; }

.karam_detail__pull {
  margin: 34px 0 0;
  padding: 24px 0;
  text-align: center;
  border-top: 1px solid var(--karam-line);
  border-bottom: 1px solid var(--karam-line);
  font-family: var(--karam-serif);
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--karam-gold);
}

/* Dining  (design: .dineintro, .outlets, .outlet, .chip) -------------------- */
.karam_dining {
  display: flow-root;
  background: var(--karam-bg);
}

.karam_dining__intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--karam-muted);
  font-size: 14.5px;
  padding: 10px 24px 10px;
}

.karam_dining__outlets {
  max-width: var(--karam-shell);
  margin: 0 auto;
  padding: 34px 24px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 820px) {
  .karam_dining__outlets { grid-template-columns: 1fr; }
}

.karam_outlet {
  border: 1px solid var(--karam-line);
  background: rgba(255, 255, 255, .02);
}

.karam_outlet__ph {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.karam_outlet__ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.karam_outlet__tx { padding: 26px 28px 30px; }

.karam_outlet__title {
  font-size: 34px;
  margin: 6px 0 12px;
}

.karam_outlet__body {
  color: var(--karam-muted);
  font-size: 14px;
  margin: 0 0 16px;
}

.karam_outlet__chip {
  display: inline-block;
  border: 1px solid var(--karam-line2);
  color: var(--karam-gold);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 12px;
  margin: 0 8px 6px 0;
}

/* Lightbox  (design: .lb) — built by assets/js/karam-interactions.js ----------- */
.karam_lb {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 20, .94);
  display: none;
  align-items: center;
  justify-content: center;
  /* The design uses 50; Divi's fixed header sits at 99999, so this goes above it. */
  z-index: 100000;
  padding: 24px;
  cursor: zoom-out;
}

.karam_lb.open { display: flex; }

.karam_lb img {
  max-height: 90%;
  max-width: 100%;
  object-fit: contain;
}

