/* ============================================================
   DRAGONSCOPE MEDIA — style.css
   ============================================================ */

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #DB0F01;
  --red-dark: #a80c00;
  --red-glow: rgba(218, 15, 0, 0.35);
  --white: #ffffff;
  --off-white: #e8e8e8;
  --muted: rgba(255, 255, 255, 0.55);
  --glass-bg: rgba(8, 8, 12, 0.78);
  --glass-border: rgba(255, 255, 255, 0.10);
  --overlay: rgba(0, 0, 0, 0.55);
  --font: 'Poppins', sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  color: var(--white);
  background: #000;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: #ff3a2a;
  opacity: 1;
}

/* === VIDEO BACKGROUND === */
.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Fallback gradient shown when no video is present */
.video-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a0500 40%, #0d0d0d 100%);
  z-index: 0;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.30) 0%,
      rgba(0, 0, 0, 0.50) 50%,
      rgba(0, 0, 0, 0.75) 100%);
  z-index: 1;
}

/* === SITE WRAPPER === */
.site-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "header"
    "hero";
}

.logo-img {
  height: 200px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

/* === HERO CONTENT === */
.hero-content {
  grid-area: hero;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
}

.hero-inner {
  text-align: center;
  max-width: 900px;
}

.tagline {
  font-size: clamp(3rem, 9vw, 3.8rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-top: 28px;
  margin-bottom: 32px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  color: #fffcf4;
}

.tagline-desc {
  font-size: clamp(1rem, 4.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 42px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  color: #E7DECB;
}

/* Desktop headline */

.service-word {
  display: inline-block;
  color: #C6BFAC;
  /*background: linear-gradient(135deg, #ffffff 0%, #C6BFAC 100%);*/
  /*background: #C6BFAC;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;*/
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp 0.7s ease forwards;
  animation-delay: calc(var(--i) * 120ms + 300ms);
}

.divider {
  color: var(--red);
  font-weight: 300;
  font-size: 0.9em;
  display: inline-block;
  opacity: 0;
  vertical-align: middle;
  letter-spacing: 0;
  animation: fadeInDivider 0.5s ease forwards;
  animation-delay: calc(0.6s);
}

@keyframes fadeInDivider {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.4;
  }
}

/* Mobile stacked headline */
.services-headline-mobile {
  display: none;
  font-size: clamp(2.4rem, 10vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 28px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
  color: #C6BFAC;
  /*background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
  background: #C6BFAC;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;*/
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.3s forwards;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--off-white);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 0.9s forwards;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

/* Enquire Button */
.btn-enquire {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 16px 38px;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 24px var(--red-glow), 0 1px 4px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 1.1s forwards;
  position: relative;
  overflow: hidden;
}

.btn-enquire::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  pointer-events: none;
}

.btn-enquire svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.btn-enquire:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--red-glow), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.btn-enquire:hover svg {
  transform: translateX(4px);
}

.btn-enquire:active {
  transform: translateY(0);
}

/* === SOCIAL BAR === */
.social-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  padding: 0;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 1.1s forwards;
}

.social-link {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  padding: 2px 5px;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.social-link svg,
.social-link img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

@media (max-width: 600px) {

  .social-link svg,
  .social-link img {
    width: 32px;
    height: 32px;
  }
}

.social-link:hover svg,
.social-link:hover img {
  transform: scale(1.15);
}

/* === FOOTER BAR === */
.site-footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  text-align: center;
  padding: 12px 24px 18px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  animation: fadeIn 0.7s ease 1.5s forwards;
  pointer-events: none;
}

.site-footer-bar a {
  color: rgba(255, 255, 255, 0.5);
  margin-left: 12px;
  pointer-events: auto;
}

.site-footer-bar a:hover {
  color: var(--white);
}

.footer-credit {
  margin-top: 4px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.28);
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.35);
  margin-left: 0;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-credit a:hover {
  color: rgba(255, 255, 255, 0.65);
}

/* ============================================================
   MODAL — shared styles
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 44px 44px 36px;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}

.modal-overlay.is-open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-box--wide {
  max-width: 720px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--off-white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-logo {
  height: 56px;
  width: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.modal-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

/* === LANG SWITCHER HEADER === */
.site-header {
  grid-area: header;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 30px 40px 10px;
  overflow: hidden;
  z-index: 100;
}

/* === GENERAL LANG SWITCHER STYLES === */
.lang-switcher {
  position: relative;
  display: inline-flex;
  isolation: isolate;
}

.lang-btn {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
}

.switcher-indicator {
  position: absolute;
  z-index: 1;
  top: 2px;
  left: 2px;
  bottom: 2px;
  border-radius: 26px;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* === STYLE 1: PILL (Original) === */
.lang-switcher.style-pill {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px;
  border-radius: 30px;
}

.lang-switcher.style-pill .lang-btn {
  width: 44px;
  padding: 4px 0;
}

.lang-switcher.style-pill .lang-btn .flag {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-switcher.style-pill .lang-btn img {
  width: 20px;
  height: auto;
  border-radius: 2px;
  transition: transform var(--transition), filter var(--transition);
  opacity: 0.6;
}

.lang-switcher.style-pill .lang-btn.active img {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.lang-switcher.style-pill .lang-btn:hover img {
  transform: scale(1.1);
  opacity: 1;
}

.lang-switcher.style-pill .switcher-indicator {
  width: 44px;
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.15);
}

.lang-switcher.style-pill[data-active-lang="cy"] .switcher-indicator {
  transform: translateX(44px);
}

/* === SINGLE WELSH FLAG TOGGLE === */
.flagContainer {
  position: absolute;
  top: 15px;
  right: 15px;
  left: auto;
  z-index: 100;
  display: block;
}

.lang-btn-single {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.lang-btn-single:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--red);
  transform: scale(1.05);
}

.lang-btn-single .flag-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn-single .welsh-flag-img,
.lang-btn-single .english-flag-img {
  position: absolute;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* In English mode: show Welsh flag, hide English flag */
body.lang-en .lang-btn-single .welsh-flag-img {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.lang-en .lang-btn-single .english-flag-img {
  opacity: 0;
  transform: translateY(-30px) scale(0.8);
}

/* In Welsh mode: show English flag, hide Welsh flag */
body.lang-cy .lang-btn-single .welsh-flag-img {
  opacity: 0;
  transform: translateY(30px) scale(0.8);
}

body.lang-cy .lang-btn-single .english-flag-img {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* === STYLE 3: TEXT-ONLY PILL === */
.lang-switcher.style-text {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-switcher.style-text .lang-btn {
  width: 48px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font);
  letter-spacing: 0.04em;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.lang-switcher.style-text .lang-btn.active {
  color: var(--white);
}

.lang-switcher.style-text .switcher-indicator {
  width: 48px;
  background-color: var(--red);
  box-shadow: 0px 2px 10px var(--red-glow);
}

.lang-switcher.style-text[data-active-lang="cy"] .switcher-indicator {
  transform: translateX(48px);
}

/* === STYLE 4: HYBRID WELSH FLAG + TEXT === */
.lang-btn-hybrid {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  height: 34px;
}

.lang-btn-hybrid:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--red);
  transform: translateY(-1px);
}

.lang-btn-hybrid .hybrid-flag {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: 18px;
  height: 12px;
}

.lang-btn-hybrid .welsh-flag-img,
.lang-btn-hybrid .english-flag-img {
  position: absolute;
  width: 100%;
  height: auto;
  border-radius: 2px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.lang-btn-hybrid .hybrid-text {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* State changes for Hybrid toggle */
body.lang-en .lang-btn-hybrid .welsh-flag-img {
  opacity: 1;
}

body.lang-en .lang-btn-hybrid .english-flag-img {
  opacity: 0;
}

body.lang-cy .lang-btn-hybrid .welsh-flag-img {
  opacity: 0;
}

body.lang-cy .lang-btn-hybrid .english-flag-img {
  opacity: 1;
}

/* === STYLE 5: iOS-STYLE TOGGLE SWITCH === */
.switch-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.switch-flag,
.onoff-flag {
  display: flex;
  align-items: center;
  justify-content: center;
}

.switch-flag img,
.onoff-flag img {
  width: 18px;
  height: auto;
  border-radius: 2px;
  object-fit: contain;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.12);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--white);
  background-image: url('assets/img/icons/welsh1.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Toggle state via body class or checkbox state */
body.lang-cy #welshModeToggle:checked+.slider-round {
  background-color: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
}

body.lang-cy #welshModeToggle:checked+.slider-round:before {
  transform: translateX(20px);
}

.switch-text-label {
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* === STYLE 6: PILL BUTTON WITH ON/OFF TEXT === */
.lang-btn-onoff {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 4px 10px 4px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  height: 28px;
}

.lang-btn-onoff:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--red);
  transform: translateY(-1px);
}

.onoff-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.onoff-text {
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* State changes for Option 6 */
body.lang-cy .lang-btn-onoff .onoff-indicator {
  background-color: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

/* Responsive updates for showcase */
@media (max-width: 768px) {
  .switcher-showcase {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    border-radius: 18px;
    padding: 8px 12px;
  }
}

/* === CONTACT FORM === */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group label span {
  color: var(--red);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group select option {
  background: #111;
  color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: rgba(218, 15, 0, 0.07);
  box-shadow: 0 0 0 3px var(--red-glow);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not([value=""]),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(218, 15, 0, 0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Privacy Checkbox */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--red);
  cursor: pointer;
  margin-top: 2px;
}

.form-check label {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}

.form-check label a {
  color: var(--red);
}

/* Submit Button */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 15px 36px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px var(--red-glow);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

.btn-submit:hover:not(:disabled) {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px var(--red-glow);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Form success */
.form-success[hidden] { display: none; }
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  background: rgba(0, 180, 60, 0.08);
  border: 1px solid rgba(0, 200, 70, 0.25);
  border-radius: var(--radius);
  animation: fadeSlideUp 0.5s ease;
}

.form-success svg {
  width: 40px;
  height: 40px;
  color: #22c55e;
  stroke-width: 3;
}

.form-success p {
  color: var(--off-white);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Form error */
.form-error-msg {
  padding: 12px 16px;
  background: rgba(218, 15, 0, 0.12);
  border: 1px solid rgba(218, 15, 0, 0.3);
  border-radius: 10px;
  font-size: 0.875rem;
  color: #ff8a80;
  line-height: 1.5;
}

/* ============================================================
   PRIVACY POLICY MODAL
   ============================================================ */
.policy-content {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
}

.policy-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 24px;
  margin-bottom: 10px;
}

.policy-content p {
  margin-bottom: 12px;
}

.policy-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}

.policy-content ul li {
  margin-bottom: 6px;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.82rem;
}

.cookie-table th,
.cookie-table td {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  vertical-align: top;
}

.cookie-table th {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-weight: 600;
  text-align: left;
}

.cookie-table td {
  color: rgba(255, 255, 255, 0.7);
}

.btn-close-policy {
  display: block;
  margin: 28px auto 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--off-white);
  border-radius: 50px;
  padding: 10px 32px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.btn-close-policy:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(8, 8, 12, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 20px;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 200px;
}

.cookie-banner__text p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

.cookie-banner__text p:first-child {
  font-size: 0.82rem;
  color: var(--white);
  margin-bottom: 3px;
}

.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: nowrap;
  align-items: center;
}

.btn-cookie {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 50px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-cookie--decline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--off-white);
}

.btn-cookie--decline:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-cookie--accept {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 2px 12px var(--red-glow);
}

.btn-cookie--accept:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px var(--red-glow);
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 900px) {
  .site-header {
    padding: 16px 20px;
    justify-content: center;
  }

  .logo-img {
    height: 160px;
  }

  .hero-content {
    padding: 16px 24px;
  }

  .services-headline {
    gap: 6px 2px;
  }

  .social-link span {
    display: none;
  }

  .social-link {
    padding: 10px 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .modal-box {
    padding: 32px 28px 28px;
  }

  /* Showcase: wrap to 2 rows on tablet */
  .switcher-showcase {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 20px;
    padding: 10px 16px;
    border-radius: 20px;
  }

  .showcase-title {
    width: 100%;
    text-align: center;
    margin-right: 0;
    margin-bottom: 4px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 600px) {

  html,
  body {
    overflow: hidden;
  }

  .site-header {
    padding: 10px 12px;
    justify-content: center;
  }

  .logo-img {
    height: 120px;
  }

  /* Switch to stacked headline on mobile */
  .services-headline {
    display: none;
  }

  .services-headline-mobile {
    display: block;
  }

  .hero-content {
    padding: 8px 16px;
  }

  .hero-inner {
    text-align: center;
  }

  .btn-enquire {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .social-bar {
    gap: 8px;
    padding: 10px 12px;
    margin-top: 20px;
  }

  .social-link {
    padding: 8px 10px;
  }

  .social-link svg,
  .social-link img {
    width: 32px;
    height: 32px;
  }

  .site-footer-bar {
    padding: 10px 16px 16px;
  }

  /* On mobile, anchor the overlay to the top so the keyboard pushes the
     modal upward rather than obscuring the bottom of the form. */
  .modal-overlay {
    align-items: flex-start;
    padding: 12px 12px 0;
    overflow-y: auto;
  }

  .modal-box {
    padding: 28px 20px 24px;
    /* Use a CSS custom property so JS can override this when the keyboard
       is detected via the visualViewport API. Falls back to 92dvh. */
    max-height: var(--modal-max-h, 92dvh);
    margin-bottom: 12px;
  }

  .modal-header h2 {
    font-size: 1.4rem;
  }

  /* Showcase: 2-column grid on mobile */
  .switcher-showcase {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 10px 16px;
    padding: 8px 12px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .showcase-title {
    grid-column: 1 / -1;
    text-align: center;
    margin-right: 0;
    margin-bottom: 2px;
    font-size: 0.6rem;
  }

  .switcher-option {
    gap: 4px;
  }

  .option-label {
    font-size: 0.52rem;
  }

  .switch-text-label {
    font-size: 0.52rem;
  }

  .cookie-banner {
    padding: 7px 14px;
  }

  .cookie-banner__inner {
    gap: 10px;
  }

  .cookie-banner__actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .btn-cookie {
    flex: 1;
    text-align: center;
    padding: 7px 10px;
    font-size: 0.75rem;
  }

  .cookie-table {
    font-size: 0.75rem;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 7px 8px;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (< 400px)
   ============================================================ */
@media (max-width: 400px) {
  .site-header {
    padding: 8px 10px;
  }

  /* Stack all switcher options in a single column */
  .switcher-showcase {
    grid-template-columns: repeat(2, auto);
    gap: 8px 12px;
    padding: 8px 10px;
  }

  .tagline {
    font-size: clamp(2.2rem, 8vw, 3rem);
    margin-top: 16px;
    margin-bottom: 20px;
  }

  .tagline-desc {
    font-size: clamp(0.9rem, 4vw, 1.4rem);
    margin-bottom: 28px;
  }

  .btn-enquire {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

/* Scrollbar styling for modal */
.modal-box::-webkit-scrollbar {
  width: 4px;
}

.modal-box::-webkit-scrollbar-track {
  background: transparent;
}

.modal-box::-webkit-scrollbar-thumb {
  background: var(--red);
  border-radius: 4px;
}