/* style.css */
:root{
  --topbar-h: 40px;
  --bg-layer: none;
  --bg-color: #0b0b0b;
  --bg-gradient: linear-gradient(135deg, #111827, #0b0b0b);

  --text-color: #e9e9e9;

  --hero-main-color: #ff2a2a;
  --hero-sub-color: #e9e9e9;
  --hero-h1-color: #d7d7d7;
  --hero-h2-color: #d7d7d7;

  --mid-box-opacity: 0.42;
  --mid-title-color: #e9e9e9;
  --mid-title-size: 24px;
  --mid-title-align: center;

  --mid-para-color: #d7d7d7;
  --mid-para-size: 14px;
  --mid-para-align: center;

  --mid-btn-color: #e9e9e9;
  --mid-btn-size: 14px;
  --mid-btn-align: center;

  --btn-text-size: 20px;
  --tile-text: #e9e9e9;
}

@font-face{
  font-family: "ExocetHeavy";
  src: url("Exocet Heavy.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "ExocetLight";
  src: url("Exocet Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  color: var(--text-color);
  font-family: ExocetHeavy, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Sticky footer layout */
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* Background: cover + fixed (no overlay) */
  background-color: var(--bg-color);
  background-image: var(--bg-layer);
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
}

body.bg-gradient{
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  background-size: cover;
}

.topbar{
  height: var(--topbar-h);
  display:flex;
  align-items:center;
  overflow:hidden;
  background: rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.08);

  /* Always visible (stuck to top) */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

.marquee{ width:100%; overflow:hidden; }
.marquee-track{
  white-space:nowrap;
  display:inline-block;
  padding-left: 100%;
  animation: marquee 20s linear infinite;
  letter-spacing:0.14em;
  font-size: var(--marquee-size, 12px);
}
@keyframes marquee{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-100%); }
}

.wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(18px + var(--topbar-h)) 14px 0;

  /* Sticky footer: pushes footer to the bottom when content is short */
  flex: 1 0 auto;
}

.hero{
  margin-top: 12px;
  background: rgba(0,0,0,0.38);
  border:1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 18px 16px;
  text-align:center;
  position: relative;
}
body.align-left .hero{ text-align:left; }

.heroTitle{
  color: var(--hero-main-color);
  letter-spacing: 0.12em;
  line-height:1.0;
  font-size: clamp(44px, 6vw, 86px);
}
.heroSub{
  margin-top: 8px;
  color: var(--hero-sub-color);
  letter-spacing:0.18em;
  font-size: clamp(18px, 2.6vw, 34px);
}
.heroLine{
  margin-top: 10px;
  color: var(--hero-h1-color);
  letter-spacing:0.12em;
  font-size: clamp(12px, 1.6vw, 18px);
}
.heroLine2{
  margin-top: 10px;
  color: var(--hero-h2-color);
  letter-spacing:0.12em;
  font-size: clamp(12px, 1.6vw, 18px);
}

/* Mobile overflow safety: prevent text from spilling outside boxes */
.heroTitle, .heroSub, .heroLine, .heroLine2, .midTitle, .tileTitle, .testimonialItem{
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mid{
  margin-top: 14px;
  background: rgba(0,0,0,var(--mid-box-opacity));
  border:1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 14px 14px 14px;
}

.midTitle{
  color: var(--mid-title-color);
  font-size: var(--mid-title-size);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-align: var(--mid-title-align);
}
.midPara{
  color: var(--mid-para-color);
  font-size: var(--mid-para-size);
  letter-spacing: 0.06em;
  line-height: 1.5;

  /* preserve spaces + newlines exactly as entered */
  white-space: pre-wrap;

  text-align: var(--mid-para-align);
  overflow-wrap: break-word;
}

.midBtnWrap{
  width: 100%;
  margin-top: 12px;
  text-align: var(--mid-btn-align);
}

.midBtn{
  display:inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.35);
  color: var(--mid-btn-color);
  text-decoration:none;
  letter-spacing:0.10em;
  font-size: var(--mid-btn-size);

  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
  will-change: transform;
}
.midBtn:hover{
  transform: scale(1.05);
  border-color: rgba(255,255,255,0.26);
  box-shadow:
    0 0 18px rgba(255,255,255,0.18),
    0 0 42px rgba(255,255,255,0.10);
}

.grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
@media (max-width: 780px){
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* Tiles (5% smaller + hover 5% + glow) */
.tile{
  position: relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;

  text-decoration:none;
  background: rgba(0,0,0,0.60);
  border:1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 17px 15px;
  min-height: 342px;

  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
  will-change: transform;
}
.tile:hover{
  transform: scale(1.05);
  z-index: 2;
  border-color: rgba(255,255,255,0.26);
  box-shadow:
    0 0 22px rgba(255,255,255,0.18),
    0 0 48px rgba(255,255,255,0.10);
}

body.align-left .tile{
  align-items:flex-start;
  text-align:left;
}

.tileTitle{
  width: 100%;
  letter-spacing:0.14em;
  font-size: var(--btn-text-size);
  color: var(--tile-text, var(--text-color));
}

.tile.span-3{ grid-column: span 3; }
@media (max-width: 780px){
  .tile.span-3{ grid-column: span 2; }
}

/* Testimonials */
.testimonials{ margin-top: 18px; }
.testimonialsBox{
  background: rgba(0,0,0,0.42);
  border:1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 12px;
}
.testimonialsViewport{ height: 120px; overflow: hidden; }
.testimonialsTrack{
  transform: translateY(0);
  transition: transform 600ms ease;
  will-change: transform;
}
.testimonialItem{
  height: 120px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 0 16px;
  text-align:center;
  letter-spacing:0.08em;
  line-height: 1.35;
  color: rgba(233,233,233,0.90);
}
body.align-left .testimonialItem{
  justify-content:flex-start;
  text-align:left;
}

.footer{
  padding: 14px 12px 18px;
  background: rgba(0,0,0,0.35);

  /* Sticky footer */
  margin-top: auto;
}
.footerGrid{
  max-width: 1100px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
}
.footerText{
  text-align:center;
  letter-spacing:0.10em;
  color: rgba(233,233,233,0.70);
  user-select:none;
  cursor:pointer;
}

/* Modal */
.modal{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.70);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
  z-index: 100;
}
.modal[hidden]{ display:none !important; }

.modalCard{
  width: 80vw;
  height: 80vh;
  overflow-y: auto;

  background: rgba(15,15,15,0.92);
  border:1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 14px 14px 18px;
}

/* Admin modal: Poppins everywhere */
.modalCard, .modalCard *{
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
}

.modalHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 6px 4px 10px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(15,15,15,0.92);
}

.modalTitle{ letter-spacing:0.12em; }
.xBtn{
  background:transparent;
  border:1px solid rgba(255,255,255,0.18);
  color: var(--text-color);
  border-radius: 12px;
  padding: 8px 10px;
  cursor:pointer;
}
.note{ color: rgba(233,233,233,0.75); margin: 6px 0 12px; line-height:1.35; }

.sectionTitle{
  margin-top: 6px;
  letter-spacing:0.12em;
  color: rgba(233,233,233,0.80);
}

.field{ display:flex; flex-direction:column; gap:6px; margin:10px 0; }
.field span{ font-size:12px; letter-spacing:0.10em; color: rgba(233,233,233,0.75); }
.field input:not([type="color"]), .field select, .field textarea{
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.30);
  color: rgba(233,233,233,0.95);
  outline: none;
  font-family: ExocetLight, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.field textarea{
  resize: vertical;
  min-height: 92px;
}

.row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.btn{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.35);
  color: var(--text-color);
  cursor:pointer;
}
.btn.primary{ border-color: rgba(255,60,60,0.55); }
.btn.danger{ border-color: rgba(255,120,120,0.60); }
.btn:disabled{ opacity: 0.45; cursor: default; }
.msg{ margin-top: 10px; color: #ffb0b0; }

.twoCol{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px 12px;
}
.twoColSpan{ grid-column: 1 / -1; }
@media (max-width: 780px){
  .twoCol{ grid-template-columns: 1fr; }
  .twoColSpan{ grid-column: auto; }
}

.divider{ height:1px; background: rgba(255,255,255,0.10); margin:12px 0; }

/* Tabs */
.tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin: 6px 0 10px;
}
.tabBtn{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.25);
  color: rgba(233,233,233,0.85);
  cursor:pointer;
  letter-spacing:0.08em;
  font-size: 12px;
}
.tabBtn.active{
  border-color: rgba(255,255,255,0.30);
  background: rgba(0,0,0,0.38);
  color: rgba(233,233,233,0.95);
}
.tabPanel[hidden]{ display:none !important; }

/* Button editor */
.btnEditor{
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.btnItem{
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 10px;
}
.btnItemHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.btnItemTitle{
  letter-spacing:0.10em;
  color: rgba(233,233,233,0.85);
}
.btnTextRow{
  margin-top: 10px;
  display:grid;
  grid-template-columns: 110px 1fr 54px;
  gap: 10px;
}
.btnUrlRow{ margin-top: 10px; }

.btnSizeSelect, .btnTextInput, .btnUrlInput{
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.30);
  color: rgba(233,233,233,0.95);
  outline: none;
  font-family: ExocetLight, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.btnColorPick{
  width: 54px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.30);
  padding: 0;
}

/* Swatches */
.colorRow{
  display:flex;
  gap: 10px;
  align-items:center;
}
.colorPick{
  width: 54px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.30);
  padding: 0;
}

.swatches{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.swatch{
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.14);
  cursor:pointer;
  background: #111;
}
.swatch.active{
  border-color: rgba(255,255,255,0.42);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.12);
}

/* Testimonials editor */
.testimonialItemEdit{
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 10px;
}
.testimonialEditHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.testimonialCount{
  letter-spacing:0.10em;
  color: rgba(233,233,233,0.85);
}