/* ==================================================================
   India Property Expo - Dubai
   Written from scratch. No framework, no reference-site CSS.
   Palette: gold accent, deep navy, warm cream surfaces.
================================================================== */

:root {
  --gold:        #c8912a;
  --gold-hi:     #e3a93a;
  --gold-lo:     #a97617;
  --gold-soft:   #f4e3bd;
  --gold-tint:   #fdf6e7;

  --navy:        #121c2b;
  --navy-2:      #1b2838;
  --navy-3:      #27384c;

  --ink:         #3a4657;
  --muted:       #6e7a8a;

  --surface:     #ffffff;
  --cream:       #fcf9f2;
  --line:        #ebe4d6;
  --line-cool:   #e5e8ec;

  --danger:      #b3261e;

  --radius:      16px;
  --radius-sm:   10px;

  --shadow-sm:   0 1px 2px rgba(18, 28, 43, .05), 0 6px 16px -8px rgba(18, 28, 43, .16);
  --shadow:      0 2px 4px rgba(18, 28, 43, .05), 0 18px 40px -16px rgba(18, 28, 43, .28);
  --shadow-gold: 0 10px 26px -10px rgba(200, 145, 42, .55);

  --gutter: 20px;
  --maxw:   1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gold-lo); }
figure { margin: 0; }
p { margin: 0 0 10px; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.section { padding: 78px 0; position: relative; }
.section--alt { background: var(--cream); }
.section--tint { background: linear-gradient(180deg, var(--gold-tint), #fff); }

/* gold hairline that separates cream blocks */
.section--alt + .section,
.section + .section--alt { border-top: 1px solid var(--line); }

/* ---------- headings ---------------------------------------------- */
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.65rem, 3.3vw, 2.4rem); }
.section-head p {
  margin: 12px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 1.06rem;
}
.section-head--left { text-align: left; }
.section-head--left p { margin-inline: 0; }

/* gold diamond rule */
.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
  width: 128px;
}
.rule::before, .rule::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.rule::after { background: linear-gradient(90deg, var(--gold), transparent); }
.rule i {
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  border-radius: 2px;
  flex: none;
}
.section-head--left .rule { margin-inline: 0; justify-content: flex-start; }
.section-head--left .rule::before { display: none; }

/* small gold icon above a heading */
.head-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-lo);
  font-size: 1.3rem;
  background: var(--gold-tint);
  border: 1px solid var(--gold-soft);
}

/* ---------- buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 100px;
  padding: 14px 30px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  color: #201603;
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn--primary:active { transform: none; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; filter: none; }

/* ---------- header -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(200, 145, 42, .18);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 48px; width: auto; }
/* calligraphic city name - needs a larger size than a text face to read well */
.brand-city {
  padding-left: 18px;
  border-left: 2px solid var(--gold-soft);
  font-family: "Great Vibes", "Playfair Display", Georgia, cursive;
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1;
  padding-block: 4px;
  letter-spacing: .01em;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--navy) 35%, var(--gold-lo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- hero ---------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--gold-tint) 0%, var(--cream) 60%, #fff 100%);
  border-bottom: 1px solid var(--line);
  /* no overflow:hidden here - it would clip the Preferred Location dropdown */
}
/* soft gold glow behind the split, painted inside the box so nothing
   overflows and no clipping is needed */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 520px at 86% -12%, rgba(227, 169, 58, .26), transparent 68%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 46px;
  align-items: center;
  padding-block: 60px;
}

.hero-figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
/* the photo is a clean banner; the details sit in a white panel below it,
   on every screen size */
.hero-figure > img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.hero-figure-body {
  position: relative;
  padding: 26px 26px 28px;
  background: #fff;
  color: var(--navy);
  text-align: center;
}
/* gold band where the panel meets the photo */
.hero-figure-body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-hi), var(--gold), var(--gold-lo));
}
/* faint gold frame around the details */
.hero-figure-body::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 18px;
  bottom: 16px;
  border: 1px solid var(--gold);
  opacity: .16;
  border-radius: 10px;
  pointer-events: none;
}
.hero-figure-body > * { position: relative; z-index: 1; }

.hero-logo {
  display: block;
  width: 190px;
  height: auto;
  margin: 0 auto 14px;
}

/* The logo carries the event name, so the heading would only repeat it.
   Hidden visually rather than with display:none, so it still counts as the
   page's H1 for search engines and screen readers. */
.hero-figure-body h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* date as a plain line with a gold hairline either side */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 10px;
  color: var(--gold-lo);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: .65;
  flex: none;
}
.hero-eyebrow sup { margin-left: -2px; }

/* venue in the header script face, in the logo red */
.hero-venue {
  margin: 0;
  font-family: "Great Vibes", "Playfair Display", cursive;
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: .01em;
  color: #c1272d;
  overflow-wrap: break-word;
}
.hero-figure-body .hero-rule { display: flex; margin: 8px auto 14px; }

.hero-address { margin: 0; color: #14181f; font-size: .97rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; justify-content: center; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f3f5f7;
  border: 1px solid #e1e6ea;
  color: var(--navy);
  border-radius: 100px;
  padding: 8px 15px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.hero-chip i { color: var(--gold-lo); }
.hero-chip--solid,
a.hero-chip--solid:hover {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  border-color: transparent;
  color: #201603;
}
.hero-chip--solid i { color: #201603; }
a.hero-chip:hover { background: rgba(255, 255, 255, .24); }
a.hero-chip--solid:hover { filter: brightness(1.07); background: linear-gradient(135deg, var(--gold-hi), var(--gold)); }

/* ---------- stats ---------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 22px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-hi), var(--gold), var(--gold-lo));
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stat-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--gold-lo);
  background: var(--gold-tint);
  border: 1px solid var(--gold-soft);
}
.stat-num {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold-lo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { display: block; margin-top: 10px; color: var(--muted); font-weight: 700; font-size: .96rem; }

/* ---------- feature cards --------------------------------------------- */
.cards { display: grid; gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.feature {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
/* gold corner flourish - a filled quarter plus an outlined ring behind it */
.feature::after {
  content: "";
  position: absolute;
  top: -52px;
  right: -52px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-tint));
  transition: transform .25s ease;
}
.feature::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: .28;
  z-index: 1;
  transition: transform .25s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.feature:hover::after { transform: scale(1.18); }
.feature:hover::before { transform: scale(1.12) rotate(12deg); }
.feature-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-gold);
}
.feature h3 { position: relative; z-index: 1; font-size: 1.14rem; }

/* ---------- property tiles ---------------------------------------------- */
.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  display: block;
  width: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile img { width: 100%; height: 225px; object-fit: cover; transition: transform .4s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile:hover img { transform: scale(1.07); }
.tile-label {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(180deg, transparent, rgba(10, 16, 26, .92));
  color: #fff;
  font-weight: 800;
  letter-spacing: .07em;
  padding: 40px 16px 15px;
  font-size: .95rem;
}
.tile-label::before {
  content: "";
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: var(--gold-hi);
  flex: none;
}
/* The label text is its own flex item so it can shrink. Without this it keeps
   its min-content width and long words like COMMERCIAL get clipped by the
   tile on narrow phones. */
.tile-label > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ---------- dark band with pattern --------------------------------------- */
.band {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%);
  color: #fff;
  text-align: center;
  padding: 66px 0;
  overflow: hidden;
}
/* diagonal gold weave */
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(227, 169, 58, .10) 0 1px,
    transparent 1px 14px
  );
  pointer-events: none;
}
/* gold glow */
.band::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -180px;
  width: 620px;
  height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(227, 169, 58, .24), transparent 70%);
  pointer-events: none;
}
.band .wrap { position: relative; z-index: 1; }
.band h2 { color: #fff; font-size: clamp(1.55rem, 3.1vw, 2.2rem); }
.band p { margin: 14px auto 0; max-width: 720px; color: rgba(255, 255, 255, .84); font-size: 1.1rem; }
.band .rule { margin-top: 20px; }
.band .rule::before { background: linear-gradient(90deg, transparent, var(--gold-hi)); }
.band .rule::after  { background: linear-gradient(90deg, var(--gold-hi), transparent); }
.band .rule i { background: var(--gold-hi); }
.band-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  color: #201603;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  box-shadow: var(--shadow-gold);
}

/* ---------- city strip ---------------------------------------------------- */
.city-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(158px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.city-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.city-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* the source files are 3:4 with the city name printed in the bottom strip,
   so the card must keep that ratio or the label gets cut off */
.city-card img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------- gallery -------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 172px;
  gap: 14px;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gallery img:hover {
  transform: scale(1.02);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
/* 7 photos into a 4-column grid: one large, four small, two wide - no gaps */
.gallery > *:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery > *:nth-child(6),
.gallery > *:nth-child(7) { grid-column: span 2; }

/* ---------- registration card ----------------------------------------------- */
.reg-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  /* no overflow:hidden here either - the dropdown has to escape this card */
}
.reg-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  /* rounded itself instead of relying on the card clipping it */
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--gold-hi), var(--gold), var(--gold-lo));
}
.reg-card h2 { font-size: 1.5rem; }
.reg-card .reg-sub { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
.reg-sub strong { color: var(--gold-lo); }

.reg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > label { font-size: .85rem; font-weight: 800; color: var(--navy); }

.control {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 12px 14px;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.control::placeholder { color: #a6b0ba; }
.control:focus,
.control:focus-within {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 145, 42, .16);
}

.reg-note { margin: 16px 0 0; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.reg-actions { margin-top: 18px; }

/* ---------- phone field ------------------------------------------------------ */
.PhoneInput { display: flex; align-items: center; gap: 4px; }
.PhoneInputCountry { position: relative; display: flex; align-items: center; align-self: stretch; }
.PhoneInputCountrySelect {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; border: 0; cursor: pointer; z-index: 1;
}
.PhoneInputCountryIcon { width: 26px; height: 18px; border-radius: 3px; overflow: hidden; flex: none; }
.PhoneInputCountryIcon--border { box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }
.PhoneInputCountryIcon--globe { box-shadow: none; display: grid; place-items: center; color: var(--muted); }
.PhoneInputCountryIconImg { width: 100%; height: 100%; object-fit: cover; display: block; }
.PhoneInputCountrySelectArrow {
  width: .32em; height: .32em; margin-left: 6px;
  border: solid currentColor; border-width: 0 1px 1px 0;
  transform: rotate(45deg); opacity: .45; flex: none;
}
.phone-dial-code { font-size: .95rem; color: var(--ink); margin-left: 6px; white-space: nowrap; font-weight: 700; }
.phone-dial-code:empty { display: none; }
.PhoneInputInput {
  flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent;
  font: inherit; font-size: .95rem; color: var(--ink); padding: 0 0 0 6px;
}
.PhoneInputInput::placeholder { color: #a6b0ba; }

/* ---------- select ------------------------------------------------------------ */
.ant-select { position: relative; cursor: pointer; user-select: none; display: flex; align-items: center; }
.ant-select-selector { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; width: 100%; padding-right: 18px; }
.ant-select-selection-placeholder { color: #a6b0ba; font-size: .95rem; }
.ant-select-selection-value { color: var(--ink); font-size: .95rem; font-weight: 600; }

.ant-select-selection-item {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gold-tint);
  border: 1px solid var(--gold-soft);
  color: var(--gold-lo);
  border-radius: 6px;
  font-size: .82rem; font-weight: 700;
  padding: 2px 5px 2px 9px; max-width: 100%;
}
.ant-select-selection-item-content { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ant-select-selection-item-remove { cursor: pointer; font-size: 1rem; line-height: 1; opacity: .65; padding: 0 2px; }
.ant-select-selection-item-remove:hover { opacity: 1; }

.ant-select-arrow {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--gold-lo); font-size: .72rem; pointer-events: none; transition: transform .2s ease;
}
.ant-select.is-open .ant-select-arrow { transform: translateY(-50%) rotate(180deg); }
.ant-select.is-open { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 145, 42, .16); }

.ant-select-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 6px; max-height: 264px; overflow-y: auto;
  z-index: 60; display: none; cursor: default;
}
.ant-select.is-open .ant-select-dropdown { display: block; }
.ant-select-search {
  width: 100%; border: 1px solid var(--line-cool); border-radius: 6px;
  padding: 8px 10px; font: inherit; font-size: .9rem; outline: none; margin-bottom: 5px;
}
.ant-select-search:focus { border-color: var(--gold); }
.ant-select-item {
  padding: 9px 11px; border-radius: 6px; font-size: .92rem; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
}
.ant-select-item:hover { background: var(--cream); }
.ant-select-item.is-selected { background: var(--gold-tint); color: var(--gold-lo); font-weight: 800; }
.ant-select-item.is-selected::after { content: "\2713"; }
.ant-select-empty { padding: 14px; text-align: center; color: var(--muted); font-size: .9rem; }

/* ---------- other-city box ------------------------------------------------------ */
.other-city-wrap { margin-top: 8px; }
.other-city-wrap[hidden] { display: none; }
.other-city-hint { display: block; font-size: .72rem; color: var(--muted); margin-top: 4px; }

/* ---------- validation ----------------------------------------------------------- */
.field-error { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(179, 38, 30, .1) !important; }
.form-feedback { margin: 14px 0 0; font-size: .92rem; font-weight: 700; }
.form-feedback.is-error { color: var(--danger); }
.form-feedback.is-success { color: var(--gold-lo); }

/* ---------- thank you ------------------------------------------------------------- */
.thankyou-panel { display: none; text-align: center; padding: 28px 6px; }
.thankyou-panel.is-visible { display: block; }
.thankyou-tick {
  width: 66px; height: 66px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  color: #fff; display: grid; place-items: center; font-size: 30px;
  margin: 0 auto 18px; box-shadow: var(--shadow-gold);
}
.thankyou-panel h3 { font-size: 1.28rem; margin-bottom: 10px; }
.thankyou-panel p { margin: 4px 0; color: var(--muted); }

/* ---------- popup ------------------------------------------------------------------ */
.modal { display: none; position: fixed; inset: 0; z-index: 1100; overflow-y: auto; padding: 24px 16px; }
.modal.show { opacity: 1; }
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 1090;
  background: rgba(10, 16, 26, .68); opacity: 0; transition: opacity .2s ease;
}
.modal-backdrop.show { opacity: 1; }
.modal-dialog { max-width: 720px; margin: auto; min-height: 100%; display: flex; align-items: center; }
.modal-content {
  width: 100%; background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 28px 70px -22px rgba(10, 16, 26, .7);
  overflow: hidden; transform: translateY(12px); transition: transform .2s ease;
}
.modal.show .modal-content { transform: none; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-bottom: 3px solid var(--gold);
}
.modal-title { font-size: 1.06rem; color: #fff; }
.btn-close {
  border: 0; background: rgba(255, 255, 255, .14); color: #fff;
  width: 34px; height: 34px; border-radius: 50%; font-size: 1.1rem; line-height: 1; cursor: pointer;
  flex: none;
}
.btn-close:hover { background: var(--gold); color: #201603; }
.modal-body { padding: 20px; }
.modal-body .reg-card { border: 0; box-shadow: none; padding: 0; }
.modal-body .reg-card::before { display: none; }
body.modal-open { overflow: hidden; }

/* ---------- footer ------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: rgba(255, 255, 255, .78);
  padding: 62px 0 0;
  position: relative;
  border-top: 4px solid var(--gold);
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr 1fr; gap: 32px; }
/* Grid items default to min-width:auto and refuse to shrink below their
   content - that is what pushed the page wider than the phone screen. */
.footer-grid > * { min-width: 0; }
.footer-grid img { max-width: 100%; }
.site-footer h4 {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-hi); margin-bottom: 14px;
}
.site-footer strong { color: #fff; }
.site-footer img.footer-logo { height: 58px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; }
/* two logos stacked - the nri-deals one is a wide banner, so both sit on
   white chips at a shared width rather than being sized individually */
.footer-org { display: grid; gap: 22px; justify-items: start; }
.footer-org img {
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  width: 100%;
  max-width: 215px;
  height: auto;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a {
  display: inline-flex; align-items: center; gap: 10px;
  color: rgba(255, 255, 255, .84); text-decoration: none; font-size: .95rem;
}
.footer-links a:hover { color: var(--gold-hi); }
.footer-links i { color: var(--gold-hi); width: 16px; }
.footer-legal {
  margin-top: 44px; padding: 22px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .78rem; color: rgba(255, 255, 255, .52); line-height: 1.6;
}
.footer-bar { background: rgba(0, 0, 0, .28); color: rgba(255, 255, 255, .8); font-size: .88rem; }
.footer-bar .wrap {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  justify-content: space-between; padding-block: 15px;
}
.footer-bar a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer-bar a:hover { color: var(--gold-hi); }

/* ---------- mobile sticky bar ----------------------------------------------------------- */
.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 800;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: none;
}

/* ==================================================================
   Responsive
================================================================== */
@media (max-width: 1040px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  /* the hero panel design is the same at every width now - only the photo
     height and spacing shrink */
  .hero-figure > img { height: 240px; }
  .hero-figure-body { padding: 22px 20px 26px; }
  .hero-logo { width: 180px; }
}

@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .band { padding: 50px 0; }
  .stats { grid-template-columns: 1fr; }
  .cards--3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 132px; }
  .gallery > *:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery > *:nth-child(6) { grid-column: span 2; }
  .brand img { height: 40px; }
  .brand-city { font-size: 2rem; padding-left: 14px; }
  .site-header .wrap { min-height: 62px; }
  .header-cta { display: none; }
  .sticky-cta { display: block; }
  body { padding-bottom: 74px; }
  .hero .wrap { padding-block: 28px; }
  .hero-figure > img { height: 200px; }
  .hero-figure-body { padding: 22px 18px 24px; }

  .reg-card { padding: 22px; }
  .reg-grid { grid-template-columns: 1fr; }
  /* two tiles across on a phone leaves little room, so the label shrinks
     to fit rather than running off the edge */
  .tile img { height: 200px; }
  .tile-label {
    font-size: .8rem;
    letter-spacing: .02em;
    gap: 7px;
    padding: 34px 12px 12px;
  }
  .tile-label::before { width: 14px; height: 2px; }
  .modal { padding: 12px; }
  .modal-body { padding: 16px; }
  /* one block per line - the two-across footer was cramped on a phone */
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 400px) {
  /* on a 320px phone the two tiles get very narrow - keep RESIDENTIAL and
     COMMERCIAL on a single line */
  .tile-label {
    font-size: .72rem;
    padding: 30px 10px 11px;
    gap: 6px;
  }
  .tile-label::before { width: 11px; }
}

@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .gallery > *:nth-child(1),
  .gallery > *:nth-child(6),
  .gallery > *:nth-child(7) { grid-column: span 1; grid-row: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .tile:hover img, .stat:hover, .feature:hover, .city-card:hover, .gallery img:hover { transform: none; }
}

/* ---------- footer text blocks ---------------------------------------- */
.footer-venue {
  margin: 0 0 6px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.2;
}
.footer-venue strong { font-weight: 700; color: var(--gold-hi); }
.footer-address { margin: 0; font-size: .95rem; color: rgba(255, 255, 255, .72); }
.footer-map { margin: 12px 0 0; }
.footer-map a { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-hi); text-decoration: none; font-weight: 700; }
.footer-map a:hover { text-decoration: underline; }
.site-footer h4.mt-block { margin-top: 26px; }

/* keep the ordinal tight against the number inside the uppercase chip */
.hero-eyebrow sup { text-transform: lowercase; letter-spacing: 0; font-size: .62em; top: -.5em; }
.hero-eyebrow { letter-spacing: .02em; }

/* ==================================================================
   Decorative layer
   Gold ornaments placed in section corners. They sit behind the
   content and never overflow their section, so no ancestor needs
   overflow:hidden (which would clip the form's dropdown).
================================================================== */
.section > .wrap,
.hero > .wrap { position: relative; z-index: 1; }

.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* dot grid */
.deco-dots {
  width: 148px;
  height: 148px;
  background-image: radial-gradient(var(--gold) 1.7px, transparent 1.7px);
  background-size: 17px 17px;
  opacity: .32;
}
.deco-dots--navy {
  background-image: radial-gradient(var(--gold-hi) 1.7px, transparent 1.7px);
  opacity: .22;
}

/* outlined ring */
.deco-ring {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: .22;
}
.deco-ring--sm { width: 108px; height: 108px; border-width: 2px; opacity: .3; }
.deco-ring--navy { border-color: var(--gold-hi); opacity: .25; }

/* soft filled blob */
.deco-blob {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 169, 58, .26), transparent 70%);
}
.deco-blob--sm { width: 170px; height: 170px; }

/* thin gold corner bracket */
.deco-bracket {
  width: 78px;
  height: 78px;
  border: 3px solid var(--gold);
  opacity: .35;
}
.deco-bracket--tl { border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.deco-bracket--br { border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }

/* positions - kept inside the section so nothing overflows */
.deco-tl { top: 30px; left: 16px; }
.deco-tr { top: 30px; right: 16px; }
.deco-bl { bottom: 30px; left: 16px; }
.deco-br { bottom: 30px; right: 16px; }
.deco-ml { top: 50%; left: 12px; transform: translateY(-50%); }
.deco-mr { top: 50%; right: 12px; transform: translateY(-50%); }

@media (max-width: 1100px) {
  /* keep the ornaments clear of the content once the page narrows */
  .deco-ring, .deco-blob { display: none; }
}
@media (max-width: 760px) {
  .deco { display: none; }
}

/* ---------- extra section detailing ---------------------------------- */

/* hairline gold accent at the top of every cream block */
.section--alt { position: relative; }
.section--alt::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft) 22%, var(--gold) 50%, var(--gold-soft) 78%, transparent);
}

/* stat tiles get a faint dot texture in the corner */
.stat { isolation: isolate; }
.stat::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 92px;
  height: 92px;
  background-image: radial-gradient(var(--gold) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: .22;
  z-index: -1;
}

/* gold corner brackets on the gallery's lead photo */
.gallery { position: relative; }
.gallery::before,
.gallery::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  border: 3px solid var(--gold);
  opacity: .5;
  pointer-events: none;
}
.gallery::before { top: -12px; left: -12px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.gallery::after { bottom: -12px; right: -12px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }

/* the city rail gets a soft gold fade at each end */
.city-rail { position: relative; }
.city-rail::before,
.city-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 8px;
  width: 44px;
  pointer-events: none;
  z-index: 2;
}
.city-rail::before { left: 0; background: linear-gradient(90deg, var(--cream), transparent); }
.city-rail::after { right: 0; background: linear-gradient(270deg, var(--cream), transparent); }

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

/* never split a two-word place name across lines */
.nowrap { white-space: nowrap; }

/* ---------- footer "event by" line ------------------------------------- */
.event-by {
  margin: 4px 0 0;
  font-style: italic;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  color: rgba(255, 255, 255, .88);
}
.footer-org .event-by-logo { margin-top: 2px; }

.hero-rule { display: none; }

/* the date must be one flex item, otherwise each <sup> becomes its own item
   and the flex gap pushes "th" away from the number */
.hero-eyebrow-text { white-space: nowrap; }

/* address lines stack on every screen - they replaced a <br> */
.addr-line { display: block; }
.addr-line + .addr-line { margin-top: 3px; }
.addr-line i { color: var(--gold-hi); margin-right: 7px; width: 15px; }
@media (max-width: 1040px) {
  .addr-line i { color: var(--gold-lo); }
}

/* ---------- compact popup on phones ------------------------------------ */
@media (max-width: 760px) {
  .modal { padding: 10px; }
  .modal-header { padding: 12px 16px; }
  .modal-title { font-size: .98rem; }
  .btn-close { width: 30px; height: 30px; font-size: 1rem; }
  .modal-body { padding: 14px; }

  /* the modal header already reads "Free Visitor Registration", so the
     heading inside the form only repeats it and costs two lines */
  .modal-body .reg-card [data-el="heading"] h2 { display: none; }
  .modal-body .reg-card .reg-sub { margin: 0; font-size: .84rem; line-height: 1.45; }

  .modal-body .reg-grid { gap: 10px; margin-top: 14px; }
  .modal-body .field > label { font-size: .78rem; }
  .modal-body .control { min-height: 42px; padding: 9px 12px; font-size: .9rem; }
  .modal-body .ant-select-selection-placeholder,
  .modal-body .ant-select-selection-value { font-size: .9rem; }
  .modal-body .PhoneInputInput,
  .modal-body .phone-dial-code { font-size: .9rem; }
  .modal-body .other-city-hint { font-size: .68rem; }
  .modal-body .reg-note { font-size: .7rem; margin-top: 10px; }
  .modal-body .reg-actions { margin-top: 12px; }
  .modal-body .btn { padding: 12px 24px; font-size: .95rem; }
  .modal-body .form-feedback { font-size: .85rem; margin-top: 10px; }
}

/* ==================================================================
   Leading Developers - static grid, five across
================================================================== */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.dev-logo {
  display: grid;
  place-items: center;
  height: 132px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dev-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold-soft);
}
/* Absolute limits, not percentages. A percentage height cannot resolve here:
   the image sizes the grid row, and the row sizes the image. */
.dev-logo img {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1040px) {
  .dev-grid { gap: 16px; }
  .dev-logo { height: 118px; padding: 14px 16px; }
  .dev-logo img { max-height: 90px; }
}
/* two across on phones - ten logos split evenly, no odd one left over */
@media (max-width: 760px) {
  .dev-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .dev-logo { height: 110px; padding: 14px; }
  .dev-logo img { max-height: 82px; }
}

/* an all-caps heading needs air, not the tight tracking the mixed-case
   headings use */
.heading-caps { letter-spacing: .02em; }

/* ==================================================================
   Countdown card - sits above the registration form
================================================================== */
.hero-col { display: grid; gap: 18px; align-content: center; min-width: 0; }

.countdown {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%);
  border: 1px solid rgba(227, 169, 58, .32);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px 18px;
  color: #fff;
  position: relative;
  overflow: hidden;   /* safe - the form is a sibling, not inside this card */
}
.countdown[hidden] { display: none; }
/* faint gold weave, same texture as the dark bands */
.countdown::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: repeating-linear-gradient(45deg, rgba(227, 169, 58, .10) 0 1px, transparent 1px 14px);
  pointer-events: none;
}
.countdown > * { position: relative; z-index: 1; }

.countdown-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-hi);
}
.countdown-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 4px rgba(61, 220, 132, .18);
  flex: none;
  animation: cd-pulse 2.2s ease-in-out infinite;
}
@keyframes cd-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(61, 220, 132, .18); }
  50%      { box-shadow: 0 0 0 7px rgba(61, 220, 132, .05); }
}

.countdown-tiles { display: flex; align-items: stretch; gap: 8px; }
.cd-tile {
  flex: 1 1 0;
  min-width: 0;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 12px;
  padding: 13px 4px 10px;
  text-align: center;
}
.cd-num {
  display: block;
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  /* fixed-width digits, otherwise the row twitches every second */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.cd-tile:first-child .cd-num { color: var(--gold-hi); }
.cd-unit {
  display: block;
  margin-top: 7px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.cd-sep {
  align-self: center;
  color: rgba(255, 255, 255, .28);
  font-weight: 800;
  font-size: 1.1rem;
  flex: none;
}

.countdown-note {
  margin: 15px 0 0;
  padding-top: 13px;
  border-top: 1px dashed rgba(255, 255, 255, .16);
  font-size: .9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .82);
}
.countdown-note strong { color: var(--gold-hi); font-weight: 800; }

/* while the expo is running the tiles go and the headline does the talking */
.countdown.is-live .countdown-tiles { display: none; }
.countdown.is-live .countdown-note {
  border-top: 0;
  padding-top: 0;
  margin-top: 4px;
  font-size: 1.05rem;
  color: #fff;
}

@media (max-width: 760px) {
  .countdown { padding: 17px 16px 15px; }
  .countdown-tiles { gap: 6px; }
  .cd-tile { padding: 11px 2px 9px; border-radius: 10px; }
  .cd-num { font-size: 1.6rem; }
  .cd-unit { font-size: .57rem; letter-spacing: .08em; }
  .countdown-note { font-size: .85rem; }
}
@media (max-width: 400px) {
  .cd-sep { display: none; }
  .cd-num { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .countdown-dot { animation: none; }
}
