:root{
  --bg:#0b0b0c;
  --bg-alt:#141417;
  --text:#e9e9ee;
  --muted:#b8b8c2;
  --accent:#ff6a00; /* orange */
  --card:#191a1f;
  --line:#24252b;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica,sans-serif;
  background: var(--bg);
  color:var(--text);
  line-height:1.6;
}

.container{
  width:min(1120px, 92%);
  margin-inline:auto;
}

/* Hero */
.hero{
  background:
    radial-gradient(1200px 400px at 80% -20%, rgba(255,106,0,0.15), transparent 40%),
    linear-gradient(180deg, #0b0b0c 0%, #0b0b0c 60%, #0e0f12 100%);
  padding:72px 0 40px;
  border-bottom:1px solid var(--line);
}
.hero-inner{
  display:grid; grid-template-columns:1.2fr .8fr; gap:28px; align-items:stretch;
}
.hero-copy h1{font-size:40px; line-height:1.1; margin:0 0 12px}
.hero-copy p{color:var(--muted); margin:0 0 18px}
.hero-cta{display:flex; gap:12px; margin:18px 0 8px}
.trust-bullets{list-style:none; padding:0; margin:12px 0 0; display:flex; gap:16px; flex-wrap:wrap}
.trust-bullets li{font-size:14px; color:#d9d9e0; border:1px solid var(--line); padding:6px 10px; border-radius:999px}

.hero-card{
  display:grid; align-items:center;
}
.hero-card-inner{
  background:linear-gradient(180deg, #131318, #0f0f13);
  border:1px solid var(--line);
  border-radius:16px; padding:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
.metric{display:flex; justify-content:space-between; padding:12px 0; border-bottom:1px dashed #2a2b31}
.metric:last-child{border-bottom:0}
.metric-label{color:var(--muted)}
.metric-value{font-weight:700}

/* Sections */
.section{padding:56px 0; border-bottom:1px solid var(--line)}
.section-alt{background:var(--bg-alt)}
.section-title{font-size:28px; margin:0 0 6px}

/* Cards */
.grid.cards{
  display:grid; gap:16px;
  grid-template-columns:repeat(3, minmax(0,1fr));
}
.card{
  background:var(--card); border:1px solid var(--line); border-radius:14px;
  padding:18px;
}
.card h3{margin:4px 0 8px}

/* Notes */
.note{
  margin-top:14px; font-size:14px; color:#d9d9e0; opacity:.85
}

/* About */
.about-grid{
  display:grid; gap:24px;
  grid-template-columns:1.2fr .8fr;
}

.about-card{
  background:var(--card); border:1px solid var(--line); border-radius:14px; padding:18px;
}

/* Animated RGB ring around the embedded map only */
.about-card .map-embed {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

 .about-card .map-embed::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px; /* border thickness */
  border-radius: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0) border-box;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 2;
  box-sizing: border-box;
}

.about-card .map-embed iframe{
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border: 0;
}

/* Map ring: Ambient ON (solid color from widget) */
.about-card .map-embed.with-ambient::before{
  opacity: 1;
  background: rgb(var(--ambient-rgb) / calc(var(--ambient-brightness) + 0.02));
  box-shadow:
    0 0 12px rgb(var(--ambient-rgb) / calc(var(--ambient-brightness) * 0.85)),
    0 0 26px rgb(var(--ambient-rgb) / calc(var(--ambient-brightness) * 0.55));
}

/* Map ring: Ambient FLOW (rainbow animation, synced to widget) */
.about-card .map-embed.with-ambient.ambient-flow::before{
  background: linear-gradient(
    90deg,
    #ff0000, #ff7d00, #ffee00, #72ff00, #00ffee, #0086ff, #db00ff, #ff0000
  );
  background-size: 1000% 100%;
  animation: tm-rgb-flow 15s linear infinite;
  animation-delay: var(--flow-offset, 0s);
  box-shadow: 0 0 12px rgba(255,255,255,0.08);
}


/* Gallery */
.gallery-grid{display:grid; gap:12px; grid-template-columns:repeat(3,1fr)}
.gallery-grid img{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.05);
  aspect-ratio:16/10;
  object-fit:cover;
  background:#12131a;
  box-shadow:0 2px 8px rgba(0,0,0,0.4);
  transition:transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.gallery-grid img:hover{
  transform:scale(1.02);
  box-shadow:0 6px 16px rgba(0,0,0,0.6);
  filter:brightness(1.05);
}

/* FAQ */
.faq{background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px; margin:10px 0}
.faq summary{cursor:pointer; font-weight:600}
.faq p{color:var(--muted); margin:10px 0 0}

/* Form */
.form{background:var(--card); border:1px solid var(--line); border-radius:14px; padding:18px}
.form-row{display:flex; flex-direction:column; gap:6px; margin-bottom:14px}
.form-row label{font-weight:600}
.form-row .req{color:var(--accent)}
.form-row input, .form-row textarea{
  background:#0f1014; color:var(--text); border:1px solid #2a2b31; border-radius:10px; padding:10px;
}
.form-row input:focus, .form-row textarea:focus{outline:none; border-color:var(--accent)}
.form-actions{display:flex; align-items:center; gap:14px; flex-wrap:wrap}
.fineprint{font-size:12px; color:var(--muted); margin:0}

/* Footer */
.site-footer{background:#0a0a0b; padding:26px 0}
.footer-grid{display:grid; gap:16px; grid-template-columns:1.2fr .8fr; align-items:start}
.foot-links{display:grid; gap:8px}
.foot-links a{color:var(--muted); text-decoration:none}
.foot-links a:hover{color:var(--text)}
.foot-note{color:var(--muted); margin:10px 0 0}
.foot-bottom{border-top:1px solid var(--line); margin-top:16px; padding-top:12px; display:flex; justify-content:space-between}

/* Responsive */
@media (max-width: 900px){
  .hero-inner{grid-template-columns:1fr}
  .grid.cards{grid-template-columns:1fr 1fr}
  .about-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
}
@media (max-width: 600px){
  .grid.cards{grid-template-columns:1fr}
  .hero-copy h1{font-size:32px}
  .gallery-grid{grid-template-columns:1fr}
}

/* Enquiry Banner */
.enquiry-banner {
  background: none;
  position: relative;
  overflow: hidden;
}

.enquiry-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('images/wallpaper-3.jpg') center center / cover no-repeat;
  filter: blur(6px) brightness(0.88);
  opacity: 1;
  pointer-events: none;
}

.enquiry-banner .section-banner,
.enquiry-banner > * {
  position: relative;
  z-index: 2;
  background: none;
}

/* Gallery Banner */
.gallery-banner {
  background: none;
  position: relative;
  overflow: hidden;
}

.gallery-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('images/wallpaper-2.jpg') center center / cover no-repeat;
  filter: blur(8px) brightness(0.88);
  opacity: 1;
  pointer-events: none;
}

/* Only apply stacking context to main banner and direct children */
.gallery-banner .section-banner,
.gallery-banner > * {
  position: relative;
  z-index: 2;
  background: none;
}

.services-banner {
  background: none;
  position: relative;
  overflow: hidden;
}

.services-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('images/wallpaper-1.jpg') center center / cover no-repeat;
  filter: blur(8px) brightness(0.88);
  opacity: 1;
  pointer-events: none;
}

/* Ensure content appears above the blur overlay */
.services-banner .section-banner,
.services-banner > * {
  position: relative;
  z-index: 2;
  background: none;
}
/* =============================
   Landing page (index.html)
   ============================= */
body.landing {
  min-height: 100%;
  overflow-x: hidden;
  /* Override a couple of tokens for the landing look */
  --text: #ffffff;
  --muted: #aaaaaa;
  --accent: #ff6a00;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.landing .blobs {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 0;
}

.landing .blob {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at center, rgba(255, 106, 0, 0.8), transparent 60%);
  border-radius: 50%;
  filter: blur(80px) brightness(2);
  animation: bounceBlob 20s infinite linear alternate;
  mix-blend-mode: screen;
}

.landing .blob:nth-child(2) {
  left: 60%;
  top: 20%;
  background: radial-gradient(circle at center, rgba(255, 140, 0, 0.8), transparent 60%);
  animation-delay: 5s;
}

.landing .blob:nth-child(3) {
  left: 30%;
  top: 60%;
  background: radial-gradient(circle at center, rgba(255, 180, 50, 0.8), transparent 60%);
  animation-delay: 10s;
}

@keyframes bounceBlob {
  0% { transform: translate(0, 0); }
  25% { transform: translate(100px, 150px); }
  50% { transform: translate(200px, 0); }
  75% { transform: translate(100px, -150px); }
  100% { transform: translate(0, 0); }
}

.landing .content {
  z-index: 1;
  text-align: center;
  max-width: 90%;
  padding: 80px 20px;
  margin-top: 10vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing h1 {
  font-size: 4rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
  font-weight: 900;
}

.landing h1 span { color: var(--accent); }

.landing h1 .secret-dot,
.landing h2 .secret-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  margin-left: 8px;
  top: 2px;
  box-shadow: 0 0 8px rgba(255, 106, 0, 0.6);
  transition: transform 0.2s ease;
}

.landing h1 .secret-dot:hover,
.landing h2 .secret-dot:hover {
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.9);
  transform: scale(1.2);
}

.landing .countdown {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--muted);
}

.landing form {
  background: #111;
  padding: 20px;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 0 10px rgba(255,106,0,0.2);
}

.landing form input,
.landing form textarea {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  background: #0b0b0c;
  border: 1px solid #333;
  color: #fff;
  border-radius: 5px;
}

.landing form button {
  background: var(--accent);
  border: none;
  color: #000;
  font-weight: bold;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
}
/* Widget styles moved to tm-widget.css (auto-injected component) */

/* === Comfort mode: make accents white across the site === */
body[data-tm-mode="comfort"] {
  --accent: #ffffff;
  --accent-rgb: 255 255 255;
}

/* Buttons & links that may not be fully var-driven */
body[data-tm-mode="comfort"] .btn.btn-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #111111;
}
body[data-tm-mode="comfort"] .btn.btn-outline {
  border-color: #ffffff;
  color: #ffffff;
}
body[data-tm-mode="comfort"] a:not(.btn):hover {
  color: #ffffff;
}

/* === Sport mode: red theme === */
body[data-tm-mode="sport"] {
  --accent: #ff0000;
  --accent-rgb: 255 0 0;
}
body[data-tm-mode="sport"] .btn.btn-primary {
  background: #ff0000;
  border-color: #ff0000;
  color: #ffffff;
}
body[data-tm-mode="sport"] .btn.btn-outline {
  border-color: #ff0000;
  color: #ff0000;
}
body[data-tm-mode="sport"] a:not(.btn):hover {
  color: #ff0000;
}

/* === Electric mode: blue theme === */
body[data-tm-mode="electric"] {
  --accent: #00aaff;
  --accent-rgb: 0 170 255;
}
body[data-tm-mode="electric"] .btn.btn-primary {
  background: #00aaff;
  border-color: #00aaff;
  color: #ffffff;
}
body[data-tm-mode="electric"] .btn.btn-outline {
  border-color: #00aaff;
  color: #00aaff;
}
body[data-tm-mode="electric"] a:not(.btn):hover {
  color: #00aaff;
}

/* Accent styles */
.section-title {
  position: relative;
  padding-bottom: 6px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--accent);
}

:focus-visible {
  outline-offset: 2px;
  outline: 3px solid var(--accent);
  outline-radius: 4px;
}

a {
  position: relative;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

a:hover::after,
a:focus::after {
  transform: scaleX(1);
}

.card {
  position: relative;
  padding-top: 24px;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background-color: var(--accent);
}

.gallery-grid img {
  border-color: transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  border-color: color-mix(in srgb, var(--accent) 80%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 70%, transparent);
}

.trust-bullets li {
  border-color: var(--line);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.trust-bullets li::before {
  content: "•";
  color: var(--accent);
  display: inline-block;
  margin-right: 6px;
  font-weight: 700;
}

.faq summary::-webkit-details-marker {
  color: var(--accent);
}

.faq summary::marker {
  color: var(--accent);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 6px;
  border: 3px solid var(--bg-alt);
}

::selection {
  background-color: var(--accent);
  color: var(--bg);
}