/* =============================================================
   TASTE IPOH — GLOBAL STYLESHEET
   Static-first build, structured for WordPress theme conversion.

   WORDPRESS MAPPING GUIDE
   -----------------------------------------------------------
   :root tokens .............. theme.json + :root (style.css)
   .site-header block ........ header.php   (wp_nav_menu)
   .site-footer block ........ footer.php   (widget areas / ACF)
   .btn, .btn--dark .......... reusable button classes
   .hero, .hero-slider ....... reusable hero (front-page + inner)
   .deco-strip ............... reusable decorative band
   .promo-card ............... repeater / CPT "Promotion"
   .dish ..................... repeater / CPT "Dish"
   .media-card ............... CPT "Media" (CMS-managed)
   .ti-form .................. Contact Form 7 target wrapper
   -----------------------------------------------------------
   BREAKPOINTS: desktop (default) > 767px tablet > 599px mobile
   ============================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
/* ---------- APIS (body) ---------- */
@font-face {
  font-family: "Apis";
  src: url("../fonts/Apis-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Apis";
  src: url("../fonts/Apis-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Apis";
  src: url("../fonts/Apis-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Apis";
  src: url("../fonts/Apis-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Apis";
  src: url("../fonts/Apis-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Apis";
  src: url("../fonts/Apis-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- ITC AVANT GARDE GOTHIC STD (headings) ---------- */
/* Note: you only have the Oblique (slanted) cuts, so headings will be oblique. */
@font-face {
  font-family: "Avant Garde";
  src: url("../fonts/ITC Avant Garde Gothic Std Medium Oblique.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Avant Garde";
  src: url("../fonts/ITC Avant Garde Gothic Std Demi Oblique.otf") format("opentype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand palette */
  --ti-red: #c12331; /*verified*/
  --ti-red-dark: #9c1a22;
  --ti-charcoal: #58585a; /*verified*/
  --ti-charcoal-2: #2c2c2c; /*verified*/
  --ti-text: #000; /*verified*/
  --ti-muted: #6b6b6b;
  --ti-cream: #efe6d7;
  --ti-band: #e6e7e8; /*verified*/
  /* light grey section band */
  --ti-gold: #f68b1e; /*verified*/
  --ti-orange: #fed69d; /*verified*/
  --ti-line: #e2e2e2;
  --ti-white: #ffffff; /*verified*/
  --panel-pink: #ddc4c9;
  /* signature panel A */
  --panel-peach: #f8e3cf; /*verified*/
  /* signature panel B */

  /* Type */
  --font-serif: "Avant Garde", Georgia, serif;
  /* headings */
  --font-sans: "Apis", "Segoe UI", sans-serif;
  /* body / UI */

  /* Layout */
  --container: 1180px;
  --gutter: 24px;
  --radius: 8px;
  --header-h: 150px;
  --sp-section: 74px;
}

/* ---------- 2. RESET / BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ti-text);
  background: var(--ti-white);
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Accessibility helpers */
:focus-visible {
  outline: 3px solid var(--ti-red);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 3. TYPOGRAPHY HELPERS ---------- */
.section-heading {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--ti-text);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.section-sub {
  text-align: center;
  color: var(--ti-text);
  font-size: 1.1rem;
  max-width: 640px;
  margin: .7rem auto 0;
  line-height: 1.5;
}

/* ---------- 4. BUTTONS (reusable) ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: .85em 2.4em;
  border: none;
  text-align: center;
  transition: background .2s ease, transform .15s ease;
  width: 250px;
  z-index: 1;
}

.btn--dark {
  background: var(--ti-charcoal);
  color: #fff;
}

.btn--dark:hover {
  background: var(--ti-charcoal-2);
}

.btn--dark:active {
  transform: translateY(1px);
}

/* ======================================================
   5. SITE HEADER  ->  header.php
   Transparent bar overlaid on the hero.
   ====================================================== */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
}

/* Orange underline beneath the menu bar */
.site-header .container::after {
  content: "";
  position: absolute;
  bottom: 50px;
  right: 20px;
  width: min(1000px, 100% - 200px);
  height: 2px;
  background: var(--ti-gold);
  z-index: 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
	position: relative;
}

.site-logo img {
  height: 100px;
  width: auto;
}

/* Primary nav (wp_nav_menu) */
.main-nav{
	z-index:1;
}

.main-nav>ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .02em;
  padding: .4rem 0;
  position: relative;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--ti-orange);
}

.main-nav .is-active>a {
  color: var(--ti-orange);
}

.main-nav .no-active>a {
  color: var(--ti-white);
}

.main-nav .no-active>a:hover {
  color: var(--ti-orange);
}

/* Dropdown (Contact -> Franchise / Career) */
.has-dropdown {
  position: relative;
}

.has-dropdown>a::after {
  content: "";
}

.sub-menu {
  position: absolute;
  top: 150%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 150px;
  background: rgba(30, 30, 30, .95);
  padding: .35rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease;
}

.has-dropdown:hover .sub-menu,
.has-dropdown.is-open .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

/* invisible bridge that fills the gap so hover doesn't break */
.has-dropdown .sub-menu::before {
  content: "";
  position: absolute;
  top: -50%;              /* stretch upward to cover the gap back to the parent */
  left: 0;
  right: 0;
  height: 100%;           /* the size of your gap (the 50% you pushed down) */
  background: transparent;
}

.sub-menu a {
  display: block;
  padding: .5rem 1.1rem;
  color: #fff;
  font-size: 1rem;
  text-align: center;
}

.sub-menu a:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--ti-orange);
}

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ======================================================
   6. HERO  (reusable)
   .hero--home  = 6-banner slider with caption
   .hero--inner = single static image
   ====================================================== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
}

/* Top-down black gradient so nav/logo stay readable over the banner */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  /* how far down the fade reaches */
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, .55) 0%,
      rgba(0, 0, 0, 0) 100%);
  z-index: 20;
  /* above the slide image, below header(40) */
  pointer-events: none;
  /* clicks pass through to the slider */
}

.hero--home {
  height: 100vh;
}

.hero--inner {
  height: 100vh;
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity .8s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* inner hero single image */
.hero--inner .hero-slide {
  position: relative;
  opacity: 1;
  height: 100%;
}

/* Hero captions removed — banner text is baked into the exported images. */

/* dots */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 5;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .55);
  padding: 0;
}

.hero-dots button.is-active {
  background: #fff;
}

/* ---------- 7. DECO STRIP (reusable band) ---------- */
.deco-strip {
  height: 46px;
  background: url("../images/deco-tile-strip.png") repeat-x center/auto 100%;
}

/* ======================================================
   8. ABOUT — "Bringing Heritage to the Modern Table"
   ====================================================== */
.about {
  padding: var(--sp-section) 0;
  background: #fff;
  position: relative;
}

.about .container {
  max-width: 860px;
}

.about__mark {
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 150px;
  height: auto;
}

.about__body {
  text-align: center;
}

.about__body p {
  color: var(--ti-text);
  font-size: 1rem;
  line-height: 1.75;
  margin-top: 1.1rem;
  margin-inline: auto;
}

/* ======================================================
   9. PROMOTIONS — grey band + carousel
   ====================================================== */
.promotions {
  padding: var(--sp-section) 0;
  background: var(--ti-band);
}

.promo-carousel {
  position: relative;
  margin: 2.4rem auto 0;
  padding: 0 44px;
}

.promo-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 per view */
  gap: 22px;
  align-items: stretch;
  /* both cards match row height */
}

.promo-card {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  /* stack image + body ... */
  flex-direction: column;
  height: 100%;
  /* ... and fill the stretched row */
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .13);
}

.promo-card__img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
}

.promo-card__body {
  background: var(--ti-charcoal);
  /* grey, not red */
  color: #fff;
  text-align: center;
  padding: 1.1rem 1.2rem 1.3rem;
  flex: 1 1 auto;
  /* fills remaining height -> equal cards */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-card__title {
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: .4rem;
}

.promo-card__desc {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

/* full content kept in the DOM for the pop-up; hidden in the card */
.promo-card__full {
  display: none;
}

/* carousel arrows (shared) — bare solid triangles, no circle */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: auto;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  color: var(--ti-charcoal);
  font-size: 1.7rem;
  line-height: 1;
  z-index: 6;
  transition: color .15s ease;
}

.carousel-arrow:hover {
  color: var(--ti-red);
  background: none;
}

.carousel-arrow--prev {
  left: 0px;
}

.carousel-arrow--next {
  right: 0px;
}

/* ======================================================
   10. SIGNATURE / MUST TRY DISHES — split carousel
   ====================================================== */
.signature {
  padding: var(--sp-section) 0 0;
  background: #fff;
}

.signature__stage {
  position: relative;
  margin-top: 2.2rem;
}

.dish{
  position: absolute;          /* stack them like hero slides */
  inset: 0;
  display: grid;               /* always grid now (was display:none) */
  grid-template-columns: 1.62fr 1fr;
  min-height: 340px;
  opacity: 0;                  /* hidden = faded out */
  pointer-events: none;
  transition: opacity .8s ease;   /* the soft fade, same as hero */
}
.dish.is-active{
  position: relative;          /* the visible one sits in flow → gives the stage its height */
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.dish__media {
  position: relative;
  overflow: hidden;
  background: #eee;
}

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

/* badges over image — exported PNG blurbs (dish-signature / dish-must-try).
   Scoped under .dish__media so they override the `.dish__media img` sizing. */
.dish__media .dish__badge {
  position: absolute;
  right: 16px;
  width: auto;
  height: auto;
  z-index: 3;
  pointer-events: none;
}

.dish__media .dish__badge--signature {
  top: 16px;
  width: 120px;
}

.dish__media .dish__badge--musttry {
  top: 50%;
  transform: translateY(-50%);
  width: 84px;
}

.dish__panel {
  position: relative;
  padding: 4rem;
  background: var(--panel-peach);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dish__panel--peach {
  background: var(--panel-peach);
}

.dish__name {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ti-charcoal-2);
  margin-bottom: .5rem;
}

.dish__desc {
  font-size: 1.2rem;
  color: var(--ti-charcoal-2);
  line-height: 1.6;
}

/* decorative window art, bottom-right corner of the panel (exported image) */
.dish__arch {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 160px;
  height: auto;
  pointer-events: none;
  /* window art is a white-bg JPG; multiply drops the white onto the panel.
     If you re-export as a transparent PNG, this still works fine. */
  mix-blend-mode: multiply;
}

/* dish nav — solid triangles, bottom-left of the panel (to the left of the window art) */
.signature__nav{
  position: absolute;
  left: 0; right: 0;          /* was right:500px — now spans the full stage */
  bottom: 30px;
  display: grid;
  grid-template-columns: 1.62fr 1fr;   /* mirror .dish */
  z-index: 6;
}
.signature__nav__btns{
  grid-column: 2;             /* land in the text column, col 1 stays empty */
  padding-left: 4rem;         /* match .dish__panel padding → aligns with the text */
  display: flex;
  gap: 14px;
  align-items: center;
}

.signature__nav button {
  width: 15px;
  height: auto;
  padding: 0;
  border: none;
  background: none;
  color: var(--ti-charcoal);
  font-size: 1.3rem;
  line-height: 1;
  transition: color .15s ease;
}

.signature__nav button:hover {
  color: var(--ti-red);
}

/* ======================================================
   11. INSTAGRAM — static grid (feed added later in WP)
   ====================================================== */
.instagram {
  padding: var(--sp-section) 0;
  background: #fff;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 1.8rem auto 0;
}

.ig-cell {
  aspect-ratio: 479.2/599;
  background: #f1f1f1;
  border: 1px solid var(--ti-line);
  overflow: hidden;
}

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

/* ======================================================
   12. MAP
   ====================================================== */
.map-section {
  line-height: 0;
}

.map-section iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
}

.map-placeholder {
  width: 100%;
  height: 340px;
  background: #e9e9e9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1rem;
}

/* ======================================================
   13. SITE FOOTER  ->  footer.php
   ====================================================== */
.site-footer {
  background-color: var(--ti-cream);
  /* CSS path is relative to /css/, so step up one level to /images/ */
  background-image: url('../images/footer-pattern-blocks.png');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  /* tweak to taste */
  color: var(--ti-text);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-info {
  flex: 1;
}

.footer-cols {
  display: flex;
  gap: 4rem;
	width:750px;
}

.footer-visit, .footer-contact{
	flex:1;
}

.footer-cols h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: .4rem;
}

.footer-cols p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ti-text);
}

.footer-social {
  display: flex;
  gap: .6rem;
  margin-top: .7rem;
}

.footer-social a {
  width: 32px;
  height: 32px;
}

.footer-social svg {
  fill: currentColor;
}

.footer-social a:hover {
  color: var(--ti-orange);
}

.footer-copy {
  font-size: .8rem;
  color: var(--ti-text);
  margin-top: 1.4rem;
}

.footer-order{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:14px; }
.footer-order__label{ font-weight:600; }
.footer-order img{ height:28px; width:auto; display:block; }

/* ======================================================
   14. MEMBERSHIP PAGE
   ====================================================== */
.mem-hero-copy {
  padding: 200px 0;
  background: #fff;
  position: relative;
  background-image: url(../images/membership-app-phone.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 50vw;
}

.mem-hero-copy .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1140px;
}

.mem-hero-copy__mark {
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 150px;
}

.mem-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 800;
  color: var(--ti-red);
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: .6rem;
}

.mem-sub {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--ti-text);
  margin-bottom: 1rem;
}

.mem-body {
  font-size: 1.1rem;
  color: var(--ti-charcoal-2)
}

.mem-hero-copy__visual {
  display: none;
  justify-content: center;
  margin-left:-120px;
}

.mem-hero-copy__visual img {
  max-width: 500px;
}

.mem-benefits {
  padding: var(--sp-section) 0;
  background: var(--ti-band);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.4rem auto 0;
  text-align: center;
}

.benefit__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--ti-gold);
}

.benefit__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.benefit h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ti-charcoal-2);
  margin-bottom: .4rem;
}

.benefit p {
  font-size: 1rem;
  color: var(--ti-charcoal-2);
  line-height: 1.55;
}

.benefit p em {
  color: var(--ti-charcoal-2);
  font-style: italic;
  display: block;
  margin-top: .35rem;
  font-size: .8rem;
}

.mem-cta {
  text-align: center;
  margin-top: 2.6rem;
}

.mem-cta .fineprint {
  font-size: .8rem;
  color: var(--ti-charcoal-2);
  font-style: italic;
  margin-top: 1rem;
  line-height: 1.5;
}

/* ======================================================
   15. MEDIA PAGE
   ====================================================== */

.page-template-page-media-php .hero-slide__img{
	object-position: left;
}

.media {
  padding: var(--sp-section) 0;
  background: #fff;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 2.4rem auto 0;
}

.media-card {
  overflow: hidden;
  background: var(--ti-charcoal);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
  transition: transform .2s ease, box-shadow .2s ease;
  display: block;
  color: #fff;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .16);
}

.media-card__img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

.media-card__body {
  padding: 1rem 1rem 1.2rem;
}

.media-card__meta {
  font-size: .8rem;
  color: #cfcfcf;
  margin-bottom: .4rem;
}

.media-card__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ======================================================
   16. CONTACT PAGES (Franchise + Career) — shared
   .ti-form = Contact Form 7 target wrapper later
   ====================================================== */
.contact-page {
  padding: var(--sp-section) 0;
  background: #fff;
  position: relative;
}

.contact-page .container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
  
}

.contact-intro__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--ti-charcoal-2);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-intro p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.contact-intro__phone {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--ti-charcoal-2);
  font-weight: 500;
}

.contact-intro__phone svg {
  width: 32px;
  height: 32px;
  fill: var(--ti-charcoal-2);
}

.contact-intro__mark {
  position: absolute;
  left: 0;
  bottom: 74px;
  width: 150px;
  height: auto;
}

/* career perks list */
.perks {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.perk {
  display: flex;
  gap: .7rem;
  align-items: center;
}

.perk__icon {
  width: 32px;
  height: 32px;
  flex: none;
  color: var(--ti-charcoal-2);
}

.perk__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.perk p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ti-charcoal-2);
  line-height: 1.3;
	margin:0;
}

/* Form card */
.ti-form {
  background: var(--ti-band);
  padding: 1.8rem;
}

.ti-form__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ti-charcoal-2);
  margin-bottom: 1.1rem;
}

.ti-form .row {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.ti-form .row>* {
  flex: 1 1 0;
  min-width: 0;
}

.ti-form input[type=text],
.ti-form input[type=email],
.ti-form input[type=tel],
.ti-form input[type=file],
.ti-form textarea,
.ti-form .ms-select__toggle {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ti-text);
  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 5px;
  padding: 1rem .85rem;
}

.ti-form input::placeholder,
.ti-form textarea::placeholder {
  color: #9a9a9a;
  font-style: italic;
}

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

.ti-form input:focus,
.ti-form textarea:focus,
.ti-form .ms-select__toggle:focus {
  outline: none;
  border-color: var(--ti-red);
  box-shadow: 0 0 0 2px rgba(192, 32, 44, .12);
}

.ti-form .form-submit {
  margin-top: 4px;
}

/* file upload block (career) */
.ti-form .file-field {
  border: 1px dashed #c4c4c4;
  background: #fff;
  border-radius: 5px;
  padding: 1.4rem;
  text-align: center;
  color: #9a9a9a;
  font-size: 1rem;
  font-style: italic;
  position: relative;
  margin-bottom: 14px;
}

.ti-form .file-field input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
	width:100%;height:100%
}

.ti-form .row > .wpcf7-form-control-wrap{flex:1 1 0;min-width:0;display:block}
.ti-form .file-field .wpcf7-form-control-wrap{position:absolute;inset:0;display:block;margin:0}

/* multi-select dropdown (franchise "Interested Model") */
.ms-select {
  position: relative;
  margin-bottom: 14px;
}

.ms-select__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: #9a9a9a;
  font-style: italic;
}

.ms-select__toggle .caret {
  transition: transform .2s ease;
  font-style: normal;
  color: #666;
}

.ms-select.is-open .ms-select__toggle .caret {
  transform: rotate(180deg);
}

.ms-select__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  padding: .4rem;
  z-index: 20;
  display: none;
}

.ms-select.is-open .ms-select__panel {
  display: block;
}

.ms-select__option {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .6rem;
  font-size: 1rem;
  color: var(--ti-text);
  border-radius: 4px;
  cursor: pointer;
  font-style: normal;
}

.ms-select__option:hover {
  background: #f4f4f4;
}

.ms-select__option input {
  accent-color: var(--ti-red);
  width: 16px;
  height: 16px;
}

/* "Available roles" note (career) */
.roles-note {
  margin-bottom: 1.4rem;
}

.roles-note h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ti-charcoal-2);
  margin-bottom: .3rem;
}

.roles-note p {
  font-size: .78rem;
  color: #666;
  line-height: 1.5;
}

/* ======================================================
   17. MEMBERSHIP POP-UP (Home) — swapped for plugin later
   ====================================================== */
.ti-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
}

.ti-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.ti-modal__card {
  position: relative;
  background: #fff;
  padding: 2.2rem 1.8rem 1.8rem;
  text-align: center;
  transform: translateY(12px);
  transition: transform .3s ease;
  height: 450px;
  width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ti-modal.is-open .ti-modal__card {
  transform: translateY(0);
}

.ti-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: #333;
}

.ti-modal__mark {
  position: absolute;
  left: 0;
  top: 0;
  width: 80px;
  height: auto;
  opacity: 0.5;
}

.ti-modal__window {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 150px;
  height: auto;
  opacity: 0.5;
}

.ti-modal__head {
  font-weight: 700;
  font-size: 1.5rem;
  font-family: var(--font-serif);
  color: var(--ti-text);
  line-height: 1.35;
	z-index:1;
}

.ti-modal__big {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 800;
  color: var(--ti-red);
  font-size: 4.5rem;
  line-height: 1;
  margin: .35rem 0 .1rem;
}

.ti-modal__instantly {
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  font-family: var(--font-serif);
  color: var(--ti-text);
  margin-bottom: 1.1rem;
}

.ti-modal__fine {
  font-size: .8rem;
  color: var(--ti-charcoal-2);
  margin-top: 1rem;
  z-index: 1;
}

/* ---------- PROMOTION POP-UP (home) ----------
   Reuses .ti-modal overlay. In WP this is the single "promotion content"
   template, populated from the clicked Promotion post. -->  */
.promo-modal__card {
  max-width: 620px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  transform: translateY(12px);
	height: unset;
}

.promo-modal.is-open .promo-modal__card {
  transform: translateY(0);
}

.promo-modal__img {
  width: 100%;
  display: block;
}

.promo-modal__body {
  background: #58595b;
  color: #fff;
  text-align: center;
  padding: 1.8rem 2rem 2.1rem;
}

.promo-modal__title {
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: .7rem;
}

.promo-modal__desc {
  font-size: 1rem;
  line-height: 1.6;
}

.promo-modal__desc p {
  margin-bottom: .8rem;
}

.promo-modal__desc p:last-child {
  margin-bottom: 0;
}

.promo-modal .ti-modal__close {
  background: rgba(255, 255, 255, .9);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  top: 12px;
  right: 12px;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* mobile nav backdrop (used < 767) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  z-index: 35;
}

.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1367px){
	.mem-hero-copy__mark{
		display:none;
	}
}

@media (max-width:1024px) {
	/* smaller footer art so it doesn't crowd the stacked text */
  .site-footer {
    background-image: none;
  }
}

/* =============================================================
   18. RESPONSIVE — TABLET  (<= 767px)
   ============================================================= */
@media (max-width:767px) {
  :root {
    --sp-section: 52px;
    --header-h: 100px;
  }
	
	.site-header{
		position: sticky;
	}
	
	.site-header::before{
		content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
	}
	
	.site-header .container::after{
		display: none;
	}
	
	.site-logo img{
		height: 80px;
	}

  /* header -> hamburger + slide-in panel */
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 82vw;
    height: 100vh;
    background: #1e1e1e;
    padding: calc(var(--header-h) + 12px) 26px 26px;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 36;
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav>ul {
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
  }

  .main-nav>ul>li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .main-nav a {
    display: block;
    padding: .85rem 0;
    font-size: .95rem;
  }

  /* dropdown becomes inline accordion */
  .sub-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    background: transparent;
    padding: 0 0 .4rem .8rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }

	.has-dropdown .sub-menu::before{
		display:none;
	}
	
  .has-dropdown.is-open .sub-menu {
    max-height: 200px;
  }

  .sub-menu a {
    padding: .5rem;
    font-size: .85rem;
	  text-align: left;
  }

  /* hero */
		.hero{
    margin-top: calc(-1 * var(--header-h));   /* pull hero up under the header */
  }
	
  .hero--home {
    height: min(60vh, 460px);
  }

  /* about */
  .about__mark {
    display: none;
  }

  /* promotions -> single column */
  .promo-carousel {
    padding: 0 34px;
    max-width: 520px;
  }

  .promo-track {
    grid-template-columns: 1fr;
  }

  /* signature -> stack */
  .dish {
    grid-template-columns: 1fr;
  }

  .dish__media {
    aspect-ratio: 16/10;
  }

  .dish__panel {
    padding: 1.6rem 8rem 3.4rem 1.4rem;
  }

  .dish__arch {
    width: 110px;
  }

  .signature__nav {
    right: 128px;
    /* left of the 110px window art */
    bottom: 18px;
  }

	.dish__media .dish__badge--musttry{
		width: 50px;
	}
	
  .dish__media .dish__badge--signature {
    width: 60px;
  }
	
	.dish__desc{
		font-size: 1.1rem;
	}

  /* instagram 2x2 */
  .ig-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 460px;
  }

  /* membership */
	.mem-hero-copy{
		background-image: none;
		padding: var(--sp-section) 0;
	}
	
  .mem-hero-copy .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mem-sub,
  .mem-copy p {
    max-width: none;
  }

  .mem-hero-copy__visual {
    order: -1;
	  display: flex;
	  margin-left: 0;
  }
	
	.mem-hero-copy__visual img{
		max-width:80%;
	}

  .benefit-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    max-width: 360px;
  }

  /* media 1 col */
  .media-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* contact stack */
  .contact-page .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-intro__mark {
    display: none;
  }

  /* footer stack */
  .site-footer .container {
    flex-direction: column;
  }
	.footer-cols{
		width:unset;
	}
}

/* =============================================================
   19. RESPONSIVE — MOBILE  (<= 599px)
   ============================================================= */
@media (max-width:599px) {
  body {
    font-size: 16px;
  }

  :root {
	  --header-h: 80px;
    --sp-section: 44px;
    --gutter: 18px;
  }

	.site-header::before{
		height: 130px;
	}
	
	.site-logo img{
		height: 50px;
	}
	
  .section-heading {
    font-size: 1.8rem;
  }

  .hero--home, .hero--inner {
    height: min(56vh, 400px);
  }

  .promo-carousel {
    padding: 0 26px;
  }

	.promo-card__title {
		font-size: 1.2rem;
	}
	
	.dish__name{
		font-size: 1.3rem;
	}
	
	.dish__desc{
		font-size: 1rem;
	}
	
  .carousel-arrow {
    font-size: 1.4rem;
  }

  .mem-title {
    font-size: 3rem;
  }

  .mem-sub {
    font-size: 1.3rem;
  }
	
	.mem-body{
		font-size: 1rem;
	}

	.media-grid{
		grid-template-columns: 1fr;
	}
	
	.contact-intro__title{
		font-size: 1.8rem;
	}
	
  .ti-form {
    padding: 1.3rem;
  }

  .ti-form .row {
    flex-direction: column;
    gap: 14px;
  }

  .footer-cols {
    gap: 2rem;
	  flex-direction: column;
  }

  .site-footer {
    background-size: 150px auto;
  }

  .ti-modal__big {
    font-size: 2.1rem;
  }
}