/* ----------------------------------------------------
   EASY RECYCLING SOLUTIONS – FULL SITE STYLES
   Modern, animated, responsive, brand-coloured
---------------------------------------------------- */

/* Root variables */

:root {
  --green-main: #19471b;
  --green-light: #2f6b32;
  --green-soft: #e4f3e5;
  --accent: #f6b93b;
  --accent-soft: #fff3d6;
  --bg-main: #f5f7fa;
  --bg-light: #ffffff;
  --text-main: #1f2933;
  --text-muted: #6b7280;
  --border: #d1d5db;
  --footer-bg: #111827;
  --footer-text: #e5e7eb;
  --radius: 10px;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.12);
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --anim-fast: 0.25s;
  --anim-medium: 0.6s;
  --anim-slow: 1s;
  --anim-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Reset / base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 10px;
}

/* Layout */
.hspecial {
  font-size: 40px;	
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section-light {
  background: linear-gradient(180deg, #ffffff 0%, #f7faf7 100%);
}

.section-green {
  background: var(--green-light);
  color: #ffffff;
  padding: 4rem 0;
}

.section-metal {
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.75)),
              url("img/metal4.jpg") center/cover fixed;
  color: #ffffff;
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  margin: 0;
  font-size: 1.8rem;
}

.section-title p {
  margin-top: 0.5rem;
  color: var(--text-muted);
}

/* Header / nav */

.logo-img {
  height: 48px;
  width: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header.glass-nav {
  background: rgba(10, 24, 15, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 30px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #e5fbe7;
}

.brand-sub {
  font-size: 0.8rem;
  color: #a7f3d0;
}

.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  margin-left: 2rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  margin-right: auto;
}

.main-nav a {
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.15rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 3px;
  background: #f6b93b;
  border-radius: 999px;
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: #f6b93b;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #e5e7eb;
  margin: 4px 0;
}


/*Nav Dropdown*/

/* ----------------------------------------------------
   NAVBAR DROPDOWN – ERS STYLE
---------------------------------------------------- */

.nav-dropdown {
  position: relative;
}

.nav-drop-btn {
  background: none;
  border: none;
  color: #e5e7eb;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.nav-drop-btn:hover {
  color: var(--accent);
}

.nav-drop-menu {
  position: absolute;
  right: 0;
  top: 120%;
  background: rgba(10, 24, 15, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.75rem 0;
  min-width: 240px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
}

.nav-dropdown.open .nav-drop-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-drop-menu a {
  display: block;
  padding: 0.55rem 1rem;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-drop-menu a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--accent);
}

.nav-drop-divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 0.5rem 0;
}

.nav-drop-login {
  font-weight: 700;
  color: var(--accent) !important;
}

.top-clock:hover {
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.45);
  transition: box-shadow 0.2s ease-in-out;
}

.top-clock {    
  display: flex; 
  align-items: center; 
  gap: 4px; /* FIXED: proper spacing between time + date */
  padding: 3px 10px; 
  border-radius: 20px; 
  background: rgba(0, 0, 0, 0.55); 
  border: 1px solid rgba(0, 255, 255, 0.35); 
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.25); 
  backdrop-filter: blur(6px); 
  font-family: "Roboto Mono", monospace; 
  font-size: 0.75rem; 
  color: #00eaff;
}

/* TIME BLOCK */
.top-clock-time {
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-right: 6px; /* FIXED: adds clean spacing before the date */
}

/* DATE BLOCK */
.top-clock-date {
  color: rgba(200, 255, 255, 0.8);
  font-size: 0.7rem;
}

/* BLINKING COLON */
.clock-colon {
  padding: 0 0; /* FIXED: reduces colon spacing */
  animation: blink 1s infinite;
}


/* PULSE DOT */
.top-clock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00eaff;
  box-shadow: 0 0 10px #00eaff;
}

/*Time zone*/
.tz-small {
  font-size: 0.75rem; /* or 12px, 0.8rem, etc. */
}
/* Hero */

.hero {
  position: relative;
  min-height: 30vh;
  color: #ffffff;
}

.hero-parallax {
  background-color: var(--green-soft);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  background: radial-gradient(circle at top left, rgba(246,185,59,0.25), rgba(0,0,0,0.8));
  width: 100%;
  height: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 3.5rem;
}

.hero-text-block h1 {
  font-size: clamp(2.6rem, 3.4vw, 3.4rem);
  margin-bottom: 0.4rem;
}

.hero-sub {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a7f3d0;
}

.hero-lead {
  margin-top: 1.2rem;
  font-size: 1.05rem;
  max-width: 32rem;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero image */

.hero-image-block {
  display: flex;
  justify-content: center;
}

.hero-image-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.hero-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.05);
  transition: transform 1.2s ease;
}

.hero-image-frame:hover img {
  transform: scale(1.12);
}

.hero-image-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(246,185,59,0.35), transparent 55%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

.unit-list {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.unit-check {
  background: #ffffff;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 5px solid var(--green-main);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.unit-check:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.unit-check a:first-child {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-main);
  text-decoration: none;
}

.unit-check a:first-child:hover {
  text-decoration: underline;
}

.unit-check .btn {
  margin: 0;
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

.check-list {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.check-list li {
  background: #ffffff;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 5px solid var(--green-main);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.check-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.check-list strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-main);
}

.check-list li a.btn {
  margin: 0;
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

/* PAGE TITLE */
.check-page-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-main);
  margin-bottom: 1.5rem;
}

/* VIDEO WRAPPER */
.video-wrapper {
  background: #ffffff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.video-wrapper video {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.recording-indicator {
  color: #ff3b30;
  font-weight: 700;
  margin-top: 0.5rem;
  text-align: center;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

.btn:active,
.btn.pressed {
  transform: scale(0.96);
  opacity: 0.8;
}

.btn.recording {
  background: #ff3b30;
  border-color: #ff3b30;
  color: white;
}

.btn.paused {
  background: #f6b93b;
  border-color: #f6b93b;
  color: #1f2933;
}

.btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.countdown-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  font-weight: 900;
  color: #ff3b30;
  text-shadow: 0 0 20px rgba(255,0,0,0.6);
  animation: pop 0.4s ease;
}

@keyframes pop {
  0% { transform: scale(0.5) translate(-50%, -50%); opacity: 0; }
  100% { transform: scale(1) translate(-50%, -50%); opacity: 1; }
}

.recording-glow {
  border: 4px solid #ff3b30 !important;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.7);
}

/* DETAILS CARD */
.check-details {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border-left: 5px solid var(--green-main);
  margin-bottom: 2rem;
}

.check-details p {
  margin: 0.4rem 0;
  font-size: 1rem;
}

.check-details strong {
  color: var(--green-main);
}

/* PAGE TITLE */
.machine-page-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-main);
  text-align: center;
  margin-bottom: 2rem;
}

/* GRID LAYOUT */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* ICON CARD */
.icon-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-left: 5px solid var(--green-main);
}

.icon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* ICON IMAGE */
.icon-card img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin: 0.75rem auto;
}

/* LABEL */
.icon-card p {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-main);
  margin: 0;
}

/* BACK BUTTON */
.btn.back {
  display: inline-block;
  margin-top: 1rem;
  border: 1px solid #808080;
}

.btn.back:hover {
  border: 2px solid var(--green-main);
  transition: transform 0.2s ease;
}

/* QUESTIONS LIST */
.questions-list {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.questions-list li {
  background: #ffffff;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border-left: 5px solid var(--green-main);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.questions-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.questions-list strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-main);
}

.fail-note {
  margin-top: 0.4rem;
  background: #fff3d6;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #8a5a00;
  border-left: 3px solid #f6b93b;
}

/* PAGE TITLE */
.camera-page-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--green-main);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* CAMERA CONTAINER */
.camera-container {
  position: relative;
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  max-width: 720px;
  margin: 0 auto 2rem;
}

/* VIDEO */
#preview {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  margin-bottom: 1rem;
}

/* RECORD CONTROLS */
.btn-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.btn.secondary {
  background: #e5e7eb;
  color: #1f2933;
  border-color: #d1d5db;
}

.btn.secondary:hover {
  background: #d1d5db;
}

/* OVERLAY AREA */
.overlay {
  margin-top: 1.5rem;
  text-align: center;
}

/* READY SCREEN */
#readyScreen {
  background: var(--green-soft);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

#overlayText {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-main);
  margin-bottom: 1rem;
}

/* QUESTION FLOW */
#checkFlow {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

#questionText {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-main);
  margin-bottom: 1rem;
}

/* FAIL NOTE */
#failNoteContainer {
  background: #fff3d6;
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  border-left: 4px solid #f6b93b;
  text-align: left;
}

#failNoteContainer label {
  font-weight: 700;
  color: #8a5a00;
}

#failNote {
  width: 100%;
  margin-top: 0.5rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  padding: 0.5rem;
  resize: vertical;
}

/* FINISH CONTROLS */
#finishControls {
  margin-top: 1.5rem;
  text-align: left;
}

#finishControls label {
  font-weight: 700;
  color: var(--green-main);
}

#operatorName {
  width: 100%;
  margin: 0.5rem 0 1rem;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

/* STATUS MESSAGE */
#statusMessage {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--green-main);
  text-align: center;
}

/* BACK BUTTON */
.btn.back {
  display: inline-block;
  margin: 1.5rem auto;
}

/* Tilt card */

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tilt-card:hover {
  box-shadow: 0 28px 60px rgba(0,0,0,0.7);
}

/* Page hero */

.page-hero {
  position: relative;
  color: #ffffff;
}

.page-hero a {
  text-decoration: none;
  color: #fff;  
}

.page-hero a:hover {
	color: var(--accent);
}

.hero-parallax-soft {
  background-image: url("img/nonferrousscrap.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.page-hero-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.25), rgba(25, 71, 27, 0.9));
  width: 100%;
  height: 100%;
  padding: 0 30px;
}

.page-hero .container {
  padding: 3rem 0 2.5rem;
}

/* Parallax band */

.parallax-band {
  position: relative;
  background-image: url("../img/machinery.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.parallax-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.60), rgba(25, 71, 27, 0.99));
  width: 50%;
  margin: 0 auto;
  padding: 3rem 0;
  color: #fff;
}

.contact-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.contact-right {
  display: flex;
  gap: 15px;
}

.contact-right img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.container a img {
  transition: transform 0.2s ease;
}

.container a img:hover {
  transform: scale(1.20);
}

.band-note {
  margin-top: 0.75rem;
  font-size: 1rem;
}

/* Two-column layout */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  margin-top: 1rem;
  transition:
    transform var(--anim-fast) ease,
    box-shadow var(--anim-fast) ease,
    background var(--anim-fast) ease,
    color var(--anim-fast) ease;
}

.btn-primary {
  background: var(--accent);
  color: #1f2933;
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  background: #f39c12;
  border-color: #f39c12;
  transform: translateY(-4px);
  box-shadow: 0 0 18px rgba(25, 71, 27, 0.55);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.55);
}

.btn-do {
  background: var(--accent);
  color: #1f2933;
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.btn-do:hover {
  background: #f39c12;
  border-color: #f39c12;
  transform: translateY(-4px);
  box-shadow: 0 0 18px rgba(25, 71, 27, 0.55);
}

.btn-dont {
  background: var(--accent);
  color: #1f2933;
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.btn-dont:hover {
  background: #f39c12;
  border-color: #f39c12;
  transform: translateY(-4px);
  box-shadow: 0 0 18px rgba(25, 71, 27, 0.55);
}
/* Magnetic button effect */

.magnetic-btn {
  position: relative;
  overflow: hidden;
}

.magnetic-btn::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 60%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.magnetic-btn.magnet-active::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.loc-btn {
  margin-top: 50px;
}

#formSuccess {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  color: #28a745;
  font-weight: bold;
  margin-top: 10px;
}

#formSuccess.success-show {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------
   ERS MODALS – MATCHES EXISTING DESIGN
---------------------------------------------------- */

.ers-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 9999;
}

.ers-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.ers-modal-content {
  background: var(--green-main);
  border-radius: 14px;
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  animation: modalPop 0.45s ease forwards;
}

.ers-modal-content h2 {
  margin-top: 0;
  color: #fff;
  text-align: center;
}

.ers-modal-content ul {
  margin: 1rem 0 1.5rem;
  padding-left: 1.2rem;
  line-height: 1.55;
}

.ers-modal-content li {
  color: #fff;
}

@keyframes modalPop {
  0% { transform: scale(0.85) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Buttons container */
.buy-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.card {
  margin-bottom: 20px;
}

.page-title {
  font-size: 1.6rem;
  margin: 10px 0 15px;
  color: #1f2933;
}

.faults-box {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.fault-badges,
.repair-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  min-width: 40px;
  text-align: center;
}

/* Faults (always amber) */
.badge-amber {
  background: #f59e0b;
}

/* Repairs */
.badge-green {
  background: #22c55e;
}

.badge-red {
  background: #ef4444;
}

.no-faults {
  padding: 20px;
  border-radius: 10px;
  background: #f5f7fa;
  color: #52606d;
  text-align: center;
  margin-bottom: 25px;
}

.fault-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.fault-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.fault-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.5);
}

.fault-title {
  margin: 0;
  font-size: 1.1rem;
  color: #111827;
}

.fault-subtitle {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.fault-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fault-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 2px solid transparent;
  background: #ffffff;
  transition: box-shadow 0.15s ease, transform 0.1s ease, border-color 0.15s ease, background 0.15s ease;
}

.fault-item:last-child {
  margin-bottom: 0;
}

.fault-item:hover {
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

/* OUTSTANDING FAULTS (AMBER) */
.fault-logged {
  border-color: #fbbf24;
  background: #fffbeb;
}

/* BOOKED REPAIRS COLOUR CODE */
/* Green = future bookings (in date) */
.booking-future {
  border-color: #22c55e;
  background: #ecfdf3;
}

/* Amber = bookings for today */
.booking-today {
  border-color: #f59e0b;
  background: #fffbeb;
}

/* Red = missed bookings (past date) */
.booking-missed {
  border-color: #ef4444;
  background: #fef2f2;
}

.fault-main {
  flex: 1 1 260px;
}

.fault-text {
  margin: 0 0 4px;
  color: #111827;
}

.fault-note {
  margin: 0 0 4px;
  font-style: italic;
  color: #4b5563;
}

.fault-meta {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.fault-meta span {
  margin-right: 4px;
}

.fault-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  min-width: 210px;
}

.fault-actions label {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  color: #4b5563;
}

.fault-actions select,
.fault-actions input[type="date"] {
  margin-top: 2px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-size: 0.85rem;
  background: #ffffff;
}

.repair-date-wrapper.hidden {
  display: none;
}

.btn.save-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.btn.save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.5);
}

.btn.save-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
}

.highlight-fault {
  outline: 3px solid #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.35);
}

.status-select,
.repair-date {
  padding: 0.4rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.save-btn {
  margin-top: 0.5rem;
}


/* Image frames */
.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.image-frame img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.image-frame:hover img {
  transform: scale(1.12);
  filter: brightness(1.15) contrast(1.1);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(246,185,59,0.15), rgba(25,71,27,0.25));
  opacity: 0;
  transition: opacity 0.6s ease;
}

.image-frame:hover::after {
  opacity: 1;
}

/* Image placeholder (if used) */

.image-placeholder {
  border-radius: var(--radius);
  border: 2px dashed rgba(25, 71, 27, 0.4);
  background: linear-gradient(135deg, #e4f3e5, #fff3d6);
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.image-placeholder.tall {
  min-height: 260px;
}

.image-placeholder.colorful {
  background: radial-gradient(circle at top left, #f6b93b, #e4f3e5);
}

/* Locations */

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.location-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--green-main);
  font-size: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  opacity: 0;
  animation: popIn 0.45s ease forwards;
}

.location-card:nth-child(1) { animation-delay: 0.1s; }
.location-card:nth-child(2) { animation-delay: 0.2s; }
.location-card:nth-child(3) { animation-delay: 0.3s; }
.location-card:nth-child(4) { animation-delay: 0.4s; }
.location-card:nth-child(5) { animation-delay: 0.5s; }
.location-card:nth-child(6) { animation-delay: 0.6s; }

.location-card:hover {
  background: #f0f8f0;
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(25, 71, 27, 0.25);
}

.location-card h3 {
  margin-top: 0;
  color: var(--green-main);
}

.location-card .note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.location-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  transition: transform 0.4s ease;
}

.location-img:hover {
  transform: scale(1.05);
}

/* Contact form */

.contact-form {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-group {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--green-main);
}

.form-group input,
.form-group textarea {
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-main);
  box-shadow: 0 0 0 1px rgba(25, 71, 27, 0.25);
}

.error-message {
  display: none;
  font-size: 0.8rem;
  color: #b91c1c;
  margin-top: 0.25rem;
}

.required-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0;
}

.form-success {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--green-main);
}

/* Map */

.map {
  width: 100%;
  height: 50px;
  border-radius: var(--radius);
  border: 5px solid var(--border);
  color: var(--green-main);
  background-color: #fff;
  padding-top: 8px;
  text-align: center;
  font-weight: 600;
}

.map:hover {
  border: 5px solid var(--green-main);
}

hr {
  width: 75%;
  color: #808080;
  margin: 20px auto;
} 

.map a {
  text-decoration: none;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-logo .brand-title {
  color: var(--footer-text);
}

.footer-logo .brand-sub {
  color: #9ca3af;
}

.footer-links h4 {
  margin-top: 0;
  font-size: 0.95rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Utilities */

.center {
  text-align: center;
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: var(--green-main);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
}

.cookie-content h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #fff;
}

.cookie-content p {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 12px;
}

.cookie-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.cookie-btn.accept {
  background: #2563eb;
  color: #fff;
}

.cookie-btn.decline {
  background: #e5e7eb;
  color: #111827;
}

/* ----------------------------------------------------
   ANIMATIONS – SCROLL, HERO, PARALLAX
---------------------------------------------------- */

/* Cinematic scroll reveal */

[data-animate] {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(4px);
  transition:
    opacity 0.9s var(--anim-ease),
    transform 0.9s var(--anim-ease),
    filter 0.9s var(--anim-ease);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Hero text sequence */

.hero h1,
.hero p,
.hero-actions {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFade 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.hero h1 { animation-delay: 0.15s; }
.hero p { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.45s; }

@keyframes heroFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Location card pop-in */

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* Parallax easing */

[data-parallax] {
  will-change: background-position;
  transition: background-position 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ----------------------------------------------------
   RESPONSIVE
---------------------------------------------------- */
/* Desktop: always 3 columns */
@media (min-width: 1024px) {
  .location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* EXACTLY 3 columns */
    gap: 1.5rem;
    justify-items: stretch;
  }
}

@media (max-width: 1200px) {  
  .hero-overlay {
	  padding: 0 30px 0 !important;
  }
}

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(10, 24, 15, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.35s var(--anim-ease),
      opacity 0.35s var(--anim-ease);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0.75rem 1.25rem 1rem;
  }

  .nav-toggle {
    display: block;
  }
  
  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 3.5rem;
  }

  .hero-image-block {
    order: -1;
  }
  
  .hero-overlay {
	  padding: 0 30px 0 !important;
  }
}

@media (max-width: 768px) {
  .hero-overlay {
	  padding: 0 30px 0 !important;
  }
}

@media (max-width: 480px) {
  .hero-overlay {
	  padding: 0 30px 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form {
    padding: 1.1rem;
  }
  
  .btn-bottom {
	  margin-bottom: 30px !important;
  }
}
