/* Tuwaiq Crete family accents + "What is Tuwaiq Crete" overview page.
   Palette sampled from the Tuwaiq Product Profile PDF (portfolio chips p5,
   hero p3, commitments p4). Loaded after main/main-rtl so it wins ties. */

body.tuwaiq-page { --tc: #007254; --tc-soft: rgba(25, 171, 112, 0.09); --tc-chip: rgba(25, 171, 112, 0.15); --tc-bright: #19AB70; --tc-marker: #FAA918; }
body.tuwaiq-base   { --tc: #574937; --tc-soft: rgba(87, 73, 55, 0.08);  --tc-chip: rgba(87, 73, 55, 0.14);  --tc-bright: #8A6F52; --tc-marker: #574937; }
body.tuwaiq-struct { --tc: #5A5E66; --tc-soft: rgba(90, 94, 102, 0.08); --tc-chip: rgba(90, 94, 102, 0.14); --tc-bright: #7C818A; --tc-marker: #5A5E66; }
body.tuwaiq-form   { --tc: #7A5210; --tc-soft: rgba(250, 169, 24, 0.10); --tc-chip: rgba(250, 169, 24, 0.18); --tc-bright: #FAA918; --tc-marker: #FAA918; }
body.tuwaiq-inno   { --tc: #6E4577; --tc-soft: rgba(183, 138, 190, 0.10); --tc-chip: rgba(183, 138, 190, 0.18); --tc-bright: #B78ABE; --tc-marker: #B78ABE; }

/* Tabs: the active tab's underline carries the family colour. */
body.tuwaiq-page #secondary-nav ul li.active a { border-bottom-color: var(--tc-marker); }

/* Five tabs. The nav is absolute inside #banner, so width:100% is the banner,
   not the container: cap it to the banner .container's content box (max-width
   1458px minus 2x12px gutter) so the row ends where the page content ends. Tabs
   share the row and shrink; font/padding step down so all five fit from 768px up. */
body.tuwaiq-page #banner #secondary-nav { width: min(calc(100% - 24px), 1434px); }
body.tuwaiq-page #secondary-nav ul li { min-width: 0; flex: 1 1 auto; }
@media (max-width: 1399px) {
  body.tuwaiq-page #secondary-nav ul li { font-size: 19px; }
  body.tuwaiq-page #secondary-nav ul li a { padding: 22px 16px; }
  body.tuwaiq-page #secondary-nav ul li.active { font-size: 22px; padding: 28px 16px 18px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  body.tuwaiq-page #secondary-nav ul { column-gap: 4px; }
  body.tuwaiq-page #secondary-nav ul li { flex: 1 1 0; display: flex; align-items: center; justify-content: center; font-size: 16px; }
  body.tuwaiq-page #secondary-nav ul li a { display: block; padding: 16px 8px; text-wrap-mode: wrap; text-wrap: balance; }
  body.tuwaiq-page #secondary-nav ul li.active { font-size: 17px; padding: 20px 8px 12px; margin-top: -10px; }
  body.tuwaiq-page #secondary-nav ul li.active a { display: inline-block; padding: 0 0 8px; }
}

/* Section headings, key-product cards, application markers, glance rules. */
body.tuwaiq-page .color1 { color: var(--tc); }
body.tuwaiq-page .highlight1::before { background-color: var(--tc-marker); }
body.tuwaiq-page .n-card2 { border-color: var(--tc); background-color: var(--tc-soft); }
body.tuwaiq-page .n-card2 .h4,
body.tuwaiq-page .n-card2 h4 { color: var(--tc); }
body.tuwaiq-page .n-card2 .icon { background-color: var(--tc-chip); }
body.tuwaiq-page .n-card2::after { background-color: var(--tc-marker); }
body.tuwaiq-page .card4 .content::before { background-color: var(--tc-marker); }
body.tuwaiq-page .n-card1.alt .n-divider { background-color: var(--tc-marker); }

/* Buttons + quotation box follow the family. */
body.tuwaiq-page .btn.btn-green { background-color: var(--tc); border-color: var(--tc); }
body.tuwaiq-page .btn.btn-green:hover { background-color: var(--white); border-color: var(--tc); color: var(--tc); }
body.tuwaiq-page .cta-buttons .btn-custom-padding { background-color: var(--tc); border-color: var(--tc); }
body.tuwaiq-page .cta-buttons .btn-custom-padding:hover { background-color: var(--white); color: var(--tc); }
body.tuwaiq-page .box-bg-color { background-color: var(--tc-soft); }
body.tuwaiq-page .indicator::before { background-color: var(--tc-marker); }

/* ---- What is Tuwaiq Crete (PDF p3): Jabal Tuwaiq photo + lockup beside the
   green intro panel; outcomes reuse Our Story's .list1.list1-icon cards. ---- */
.tc-split { background-color: var(--primary-dark); }
.tc-split__media { position: relative; min-height: 460px; overflow: hidden; background-color: #C8875A; }
.tc-split__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 75%; }
.tc-split__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.4) 100%); }
.tc-split__lockup { position: absolute; left: 50%; top: 50%; z-index: 1; width: min(56%, 250px); transform: translate(-50%, -50%); filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.35)); }
.tc-split__panel { position: relative; padding: 56px 72px 56px 64px; color: var(--white); }
.tc-split__panel::after { content: ""; position: absolute; right: 32px; top: 32px; width: 64px; height: 183px; background: url("../images/n-pattern1.svg") no-repeat; background-size: 100% 100%; opacity: 0.13; pointer-events: none; }
.tc-split .tc-split__title { color: var(--white); margin-bottom: 28px; }
.tc-split__panel p { color: rgba(255, 255, 255, 0.9); font-size: 16px; line-height: 1.6; margin-bottom: 18px; }
.tc-split__panel p:last-child { margin-bottom: 0; }
/* Lead-in sits on white with its cards, so the colon visibly introduces them. */
.tc-outcomes-lead { max-width: 960px; margin-top: 48px; }
.tc-outcomes-lead p { margin-bottom: 0; font-size: 20px; line-height: 1.5; color: var(--gray-dark); }
.tc-outcomes { margin-top: 20px; }
.tc-answer { max-width: 960px; margin: 40px 0 0; padding-left: 20px; border-left: 3px solid var(--warning-dark); font-size: 20px; line-height: 1.5; color: var(--gray-dark); }

/* ---- Why Tuwaiq Crete (PDF p4): photo + four numbered commitments ---- */
.tc-why { background-color: #F4F1EC; }
.tc-why__heading { color: var(--gray-dark); }
.tc-why__photo img { aspect-ratio: 2 / 1; object-fit: cover; }
.tc-commit { border-top: 2px solid var(--primary); padding-top: 20px; height: 100%; }
.tc-commit__num { display: block; position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--primary-dark); font-size: 28px; font-weight: 600; }
.tc-commit__num::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 12px; height: 12px; background-color: var(--warning); }
.tc-commit .h4 { color: var(--primary-dark); }
.tc-commit p { margin-bottom: 0; }

/* ---- RTL mirrors ---- */
.rtl .tc-split__panel { padding: 56px 64px 56px 72px; }
.rtl .tc-split__panel::after { right: auto; left: 32px; }
.rtl .tc-answer { padding-left: 0; padding-right: 20px; border-left: 0; border-right: 3px solid var(--warning-dark); }
.rtl .tc-commit__num { padding-left: 0; padding-right: 26px; }
.rtl .tc-commit__num::before { left: auto; right: 0; }

@media (max-width: 991px) {
  .tc-split__media { min-height: 0; aspect-ratio: 4 / 3; }
  .tc-split__panel, .rtl .tc-split__panel { padding: 44px 28px 40px; }
}
@media (max-width: 767px) {
  .tc-answer { font-size: 18px; }
}
