/* Self-hosted fonts (no third-party requests, so no visitor IP is sent to Google) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/kanit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/kanit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/kanit-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Kanit'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/kanit-latin-800-normal.woff2') format('woff2'); }

/* ==========================================================================
   RK TECHNOLOGIES - DESIGN SYSTEM & GLOBAL STYLES
   Theme: Dark Premium Industrial (Navy / Logo-Blue Accent / Modern Typography)
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #050A1E;
  --bg-main: #08122E;
  --bg-card: #0E1E48;
  --bg-card-hover: #14295F;
  --bg-glass: rgba(10, 22, 54, 0.75);
  --bg-input: #0A1634;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #3DA5FF;

  --accent-primary: #3DA5FF;
  --accent-hover: #6DBBFF;
  --accent-btn: #0A6FD6;        /* solid button blue (white text passes contrast) */
  --accent-btn-hover: #1A84EE;
  --accent-danger: #E53950;     /* emergency / errors stay red */
  --accent-glow: rgba(61, 165, 255, 0.35);

  --accent-secondary: #00E676;
  --accent-warning: #FFB300;
  --accent-info: #00B0FF;

  --text-main: #FFFFFF;
  --text-muted: #B4B0D0;
  --text-dim: #827E9E;

  /* Typography */
  --font-heading: 'Kanit', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px var(--accent-glow);

  /* Spacing & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1280px;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px; /* anchors land below the sticky header */
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.container-fluid {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

@media (max-width: 768px) {
  .container, .container-fluid {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.section {
  padding: 5rem 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent { color: var(--accent-primary); }
.text-muted { color: var(--text-muted); }

/* Typography Helpers */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(61, 165, 255, 0.12);
  border: 1px solid rgba(61, 165, 255, 0.3);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.section-title span {
  background: linear-gradient(135deg, #FFFFFF 30%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .section-title { font-size: 2rem; }
  .section-desc { font-size: 1rem; }
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all var(--transition-normal);
  white-space: normal;      /* long labels wrap instead of overflowing */
  text-align: center;
  line-height: 1.3;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--accent-btn);
  color: #FFFFFF;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--accent-btn-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-btn);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(5, 10, 30, 0.95);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 95px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  height: 76px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.03);
}

.brand-logo .logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-primary), #0A5BC4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(61, 165, 255, 0.4);
}

.brand-logo .logo-text {
  display: flex;
  flex-direction: column;
}

.brand-logo .logo-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-main);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-logo .logo-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.mobile-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 992px) {
  .mobile-toggle { display: flex; }
  .header-actions .btn-quote { display: none; }
  
  .nav-menu {
    position: fixed;
    top: 95px;
    left: 0;
    width: 100%;
    height: calc(100vh - 95px);
    background: var(--bg-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    border-top: 1px solid var(--border-color);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.2rem;
    width: 100%;
  }

  .mobile-cta {
    width: 100%;
    margin-top: 1rem;
  }
}

/* Floating Action Buttons */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-btn.whatsapp {
  background: #25D366;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.float-btn.call {
  background: var(--accent-danger);
  box-shadow: 0 4px 20px rgba(229, 57, 80, 0.45);
}

.float-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.float-btn .pulse-ring {
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: pulse-ring-anim 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
  opacity: 0.7;
}

@keyframes pulse-ring-anim {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

@media (max-width: 576px) {
  .floating-actions {
    bottom: 1.25rem;
    right: 1.25rem;
    gap: 0.75rem;
  }
  .float-btn {
    width: 48px;
    height: 48px;
  }
  .float-btn svg {
    width: 22px;
    height: 22px;
  }
}

/* Hero Chip (contact info below hero buttons) */
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: background var(--transition-fast);
}

.hero-chip a {
  color: inherit;
}

.hero-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

/* Spin Animation (loading button) */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.spin-anim {
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* Card Styles */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(61, 165, 255, 0.4);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(61, 165, 255, 0.12);
  border: 1px solid rgba(61, 165, 255, 0.25);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-accent {
  background: rgba(61, 165, 255, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(61, 165, 255, 0.3);
}

.badge-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.badge-success {
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-secondary);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

/* Forms & Input Elements */
.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(61, 165, 255, 0.2);
}

.form-control::placeholder {
  color: var(--text-dim);
}

select.form-control option {
  background: var(--bg-card);
  color: var(--text-main);
}

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

/* Honeypot field (hidden from user) */
.hp-field {
  /* Off-screen (NOT display:none) so naive bots still fill it, humans never see it */
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Skeleton Loading Animation */
.skeleton {
  background: linear-gradient(90deg, #0E1E48 25%, #17306A 50%, #0E1E48 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1.2rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.skeleton-text.short { width: 60%; }
.skeleton-card { height: 280px; }

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-primary);
  border-radius: var(--radius-md);
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  animation: toast-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.success { border-left-color: var(--accent-secondary); }
.toast.warning { border-left-color: var(--accent-warning); }
.toast.error { border-left-color: var(--accent-danger); }

@keyframes toast-in {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer Styling */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: var(--accent-primary);
  padding-left: 4px;
}

.contact-chips {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-chip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-chip svg {
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 10, 30, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-main);
}

.modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--accent-primary);
  color: #FFFFFF;
}

.modal-body {
  padding: 2rem;
}


/* ---- Hero tagline ---- */
.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

/* ---- Keyboard focus visibility ---- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

/* ---- Respect users who ask for less motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Privacy notice typography ---- */
.privacy-body h2 { font-family: var(--font-heading); font-size: 1.25rem; color: var(--text-main); margin: 1.75rem 0 0.6rem; }
.privacy-body h2:first-child { margin-top: 0; }
.privacy-body p, .privacy-body li { color: var(--text-muted); line-height: 1.75; font-size: 1rem; }
.privacy-body p { margin-bottom: 0.75rem; }
.privacy-body ul { margin: 0 0 0.75rem 1.25rem; list-style: disc; }
.privacy-body li { margin-bottom: 0.35rem; }
.privacy-body a { color: var(--accent-primary); text-decoration: underline; }
.consent-box { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-input); }
.consent-box input { margin-top: 0.3rem; width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--accent-primary); }
.consent-box label { font-size: 0.9rem; color: var(--text-muted); cursor: pointer; line-height: 1.6; }
.consent-box a { color: var(--accent-primary); text-decoration: underline; }


/* ==========================================================================
   LOGO-BLUE THEME ADDITIONS
   ========================================================================== */
.btn-danger { background: var(--accent-danger); color: #FFFFFF; border: 1px solid transparent; }
.btn-danger:hover { background: #F2566B; box-shadow: 0 0 25px rgba(229, 57, 80, 0.4); transform: translateY(-2px); }

/* Home hero: full-bleed photo (replaceable from Admin > Site Images) */
.hero-section {
  background-color: var(--bg-dark);
  background-image:
    linear-gradient(180deg, rgba(5, 10, 30, 0.80) 0%, rgba(5, 10, 30, 0.68) 45%, rgba(8, 18, 46, 0.97) 100%),
    var(--hero-image, url('../images/hero-bg.jpg'));
  background-size: cover;
  background-position: center;
}

/* Inner-page top banners: same photo, much softer */
.page-banner {
  background-color: var(--bg-dark);
  background-image:
    linear-gradient(180deg, rgba(5, 10, 30, 0.90) 0%, rgba(8, 18, 46, 0.94) 100%),
    var(--hero-image, url('../images/hero-bg.jpg'));
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-color);
}

/* Back button (inner pages) */
.back-link {
  position: absolute;
  top: 1.25rem;
  left: 2.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.back-link:hover { color: #FFFFFF; border-color: var(--accent-primary); background: rgba(61, 165, 255, 0.12); }
@media (max-width: 768px) { .back-link { left: 1.25rem; top: 1rem; } }

/* Admin-managed page images (hidden entirely when no image is set) */
.site-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}
.site-image-frame img { width: 100%; height: 420px; object-fit: cover; }
@media (max-width: 768px) { .site-image-frame img { height: 240px; } }

/* Testimonials */
.testimonial-photo {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--accent-primary);
}


/* ==========================================================================
   MOBILE POLISH - phones & tablets only. Desktop (>992px) is NOT affected.
   ========================================================================== */
@media (max-width: 992px) {
  html, body { overflow-x: clip; }

  /* Closed menu drawer: fully hidden (no off-screen width, not focusable) */
  .nav-menu {
    height: calc(100vh - 95px);
    height: calc(100dvh - 95px);
    visibility: hidden;
    transition: transform var(--transition-normal), visibility 0s linear 0.3s;
  }
  .nav-menu.active {
    visibility: visible;
    transition: transform var(--transition-normal), visibility 0s;
  }
  .nav-link { padding: 0.9rem 0; }
}

@media (max-width: 768px) {
  .btn { min-height: 44px; }

  /* Floating WhatsApp / Call buttons: smaller, never cover the footer text,
     and they hide while someone is typing in a form */
  .floating-actions { bottom: 1rem; right: 0.75rem; gap: 0.6rem; }
  .float-btn { width: 44px; height: 44px; }
  .float-btn svg { width: 20px; height: 20px; }
  body:has(input:focus, select:focus, textarea:focus) .floating-actions { display: none; }
  .footer-bottom { padding-bottom: 4.5rem; }

  /* Bigger tap areas in the footer */
  .footer-col a { display: inline-block; padding: 0.4rem 0; }
  .footer-bottom a { display: inline-block; padding: 0.5rem 0.25rem; }
}

@media (max-width: 640px) {
  /* Enquiry form: roomy single column, no cramped two-column rows */
  #quote-form { padding: 1.5rem 1.15rem !important; }
  #enquiry-form div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; gap: 0 !important; }
  .form-control { font-size: 16px; }   /* stops iPhone auto-zoom when a field is tapped */
}

/* --- Mobile polish, part 2 (still phones/tablets only) --- */
@media (max-width: 992px) {
}
@media (max-width: 768px) {
  .card a[href^="tel:"]:not(.btn), .card a[href^="mailto:"]:not(.btn),
  footer a[href^="tel:"], footer a[href^="mailto:"] { display: inline-block; padding: 0.55rem 0; }
}
@media (max-width: 640px) {
  .card p, .card h4, .card a { overflow-wrap: anywhere; }   /* long emails never push the page wider on small phones */
}
@media (max-width: 992px) {
  .mobile-toggle { position: relative; }
  .mobile-toggle::after { content: ""; position: absolute; inset: -10px -8px; }   /* invisible 44px tap area, layout unchanged */
}
@media (max-width: 768px) { .hero-chip a { display: inline-block; padding: 0.4rem 0; } }


/* FAQ accordion + SEO lists (no JavaScript needed) */
.faq-item { border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-card); margin-bottom: 0.9rem; }
.faq-item summary { cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 600; color: var(--text-main); list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-primary); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 1.4rem 1.2rem; color: var(--text-muted); margin: 0; }
.seo-list { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.seo-list li { padding: 0.9rem 1.2rem; background: var(--bg-card); border: 1px solid var(--border-color); border-left: 3px solid var(--accent-primary); border-radius: var(--radius-md); color: var(--text-muted); }
