@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --orange: #ff7200;
  --orange-dark: #e06200;
  --orange-light: #fff3e8;
  --dark: #111111;
  --mid: #444444;
  --light: #f7f7f5;
  --white: #ffffff;
  --border: #e8e8e4;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 40px rgba(255,114,0,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

p, span, h1, h2, h3, h4, h5, h6, li, div { cursor: default; }

/* ════════════════════════════════════════
   HOMEPAGE HERO (dark overlay + image)
════════════════════════════════════════ */

.main {
  width: 100%;
  min-height: 85vh;
  background:
    linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.55)),
    url(images/1.jpg);
  background-size: cover;
  background-position: center;
}

/* Navbar ON hero = white text */
.main .navbar {
  max-width: 1200px;
  width: 90%;
  height: 80px;
  margin: auto;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: none;
  position: static;
}

.main .navbar .logo {
  color: var(--orange);
  font-family: 'Syne', sans-serif;
  font-size: 30px;
  font-weight: 800;
}

.main .navbar .menu ul {
  display: flex;
  list-style: none;
  margin-left: 40px;
  gap: 0;
}

.main .navbar .menu ul li { margin-left: 30px; }

.main .navbar .menu ul li a {
  color: #fff;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.main .navbar .menu ul li a:hover,
.main .navbar .menu ul li a.cn { color: var(--orange); }

.main .navbar .auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.main .navbar .auth a {
  color: #fff;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}

.main .navbar .auth a:hover { color: var(--orange); }

.main .navbar .auth .register {
  background: var(--orange);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}

.main .navbar .auth .register:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

/* Hero content */
.content {
  text-align: center;
  color: #fff;
  margin-top: 120px;
  padding: 0 24px;
}

.content h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
}

.content h1 span { color: var(--orange); }

.hero-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 32px;
  font-size: 15px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s;
  display: inline-block;
}

.btn.primary { background: var(--orange); color: #fff; }
.btn.primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn.secondary { border: 2px solid rgba(255,255,255,0.6); color: #fff; }
.btn.secondary:hover { border-color: var(--orange); background: var(--orange); color: #fff; transform: translateY(-2px); }

/* ════════════════════════════════════════
   SHARED SECTIONS (homepage)
════════════════════════════════════════ */

section { padding: 70px 80px; }

section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
  color: var(--dark);
}

/* Reviews */
.reviews { background: var(--light); }

.review-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.review {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
  width: 280px;
  border-radius: var(--radius);
  text-align: left;
  transition: box-shadow 0.2s;
}

.review:hover { box-shadow: var(--shadow); }
.review p { color: var(--mid); margin: 12px 0 8px; font-size: 15px; }
.review span { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 13px; }

/* Services */
.services { background: var(--white); }

.service-list {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.service {
  background: var(--orange-light);
  color: var(--orange-dark);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid rgba(255,114,0,0.2);
}

/* Why us */
.why-us { background: var(--dark); }
.why-us h2 { color: var(--white); }

.why-us ul {
  list-style: none;
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.why-us li { font-size: 16px; color: rgba(255,255,255,0.85); }

/* FAQ */
.faq { background: var(--light); max-width: 700px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--orange);
  margin-bottom: 8px;
}

.faq-item p { color: var(--mid); font-size: 15px; }

/* Footer */
.footer {
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 32px 80px;
}

.footer p { font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-links { display: flex; gap: 20px; }

.footer-links a {
  color: var(--orange);
  text-decoration: none;
  font-size: 13px;
  transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 0.75; }

/* ════════════════════════════════════════
   STANDALONE NAVBAR (oglasi, dashboards)
════════════════════════════════════════ */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 70px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--orange);
  letter-spacing: -0.5px;
}

.menu ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

.menu ul li a {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}

.menu ul li a:hover { color: var(--dark); }

.auth { display: flex; align-items: center; gap: 12px; }

.auth .login {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}

.auth .login:hover { color: var(--dark); }

.auth .register {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  background: var(--orange);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.auth .register:hover { background: var(--orange-dark); transform: translateY(-1px); }

/* ════════════════════════════════════════
   OGLASI PAGE
════════════════════════════════════════ */

.oglasi-header {
  text-align: center;
  padding: 70px 48px 50px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.oglasi-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
}

.oglasi-header p { color: var(--mid); margin-top: 8px; font-size: 16px; }

.oglasi-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.cleaner-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.cleaner-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.cleaner-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}

.cleaner-card p { font-size: 14px; color: var(--mid); margin: 5px 0; }

.cleaner-btn {
  margin-top: 18px;
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}

.cleaner-btn:hover { background: var(--orange-dark); }

/* ════════════════════════════════════════
   AUTH PAGES (login / register)
════════════════════════════════════════ */

/* Auth topbar — home icon + profile icon */
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.auth-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.auth-home-btn:hover { color: var(--orange); }

.auth-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange-light);
  color: var(--orange);
  text-decoration: none;
  border: 1.5px solid rgba(255,114,0,0.2);
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}

.auth-profile-btn:hover {
  background: var(--orange);
  color: #fff;
  transform: scale(1.08);
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  padding: 40px 20px;
}

.auth-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.auth-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--orange);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.auth-box h2 {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.auth-box .subtitle {
  text-align: center;
  color: var(--mid);
  font-size: 14px;
  margin-bottom: 32px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--mid);
  margin-bottom: 6px;
  text-transform: uppercase;
  cursor: default;
}

.field input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  cursor: text;
}

.field input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,114,0,0.12);
}

.auth-btn {
  width: 100%;
  padding: 14px;
  background: var(--orange);
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.15s;
}

.auth-btn:hover { background: var(--orange-dark); transform: translateY(-1px); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--mid);
}

.auth-link a { color: var(--orange); text-decoration: none; font-weight: 500; }
.auth-link a:hover { text-decoration: underline; }

.msg {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.msg.error  { background: #fff0f0; color: #cc0000; border: 1px solid #ffd0d0; display: block; }
.msg.success { background: #f0fff4; color: #006b2a; border: 1px solid #c3e6cb; display: block; }

/* Role switch */
.role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--light);
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1.5px solid var(--border);
}

.role-row span { font-size: 14px; color: var(--dark); font-weight: 500; }

.switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ddd; border-radius: 34px; transition: .3s;
}

.slider:before {
  position: absolute; content: "";
  height: 20px; width: 20px; left: 3px; bottom: 3px;
  background: white; border-radius: 50%; transition: .3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

input:checked + .slider { background: var(--orange); }
input:checked + .slider:before { transform: translateX(22px); }

/* ════════════════════════════════════════
   DASHBOARD PAGES
════════════════════════════════════════ */

.dashboard-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 40px 48px;
}

.dashboard-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.dashboard-header p { color: var(--mid); margin-top: 6px; }

.dashboard-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px;
}

.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.dash-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.dash-card .num {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--orange);
}

.dash-card .label { font-size: 13px; color: var(--mid); margin-top: 4px; }

.dash-section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.logout-btn {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--mid);
  border: 1.5px solid var(--border);
  padding: 8px 18px;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.logout-btn:hover { color: var(--dark); border-color: var(--dark); }

/* ════════════════════════════════════════
   HAMBURGER MENU
════════════════════════════════════════ */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  z-index: 200;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero navbar hamburger = white */
.main .navbar .hamburger { color: #fff; }
/* Standalone navbar hamburger = dark */
.navbar .hamburger { color: var(--dark); }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile dropdown */
.mobile-menu {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 150;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.mobile-menu.hero-mobile {
  top: 80px;
  background: rgba(10,10,10,0.96);
  border-bottom: none;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu ul li a {
  display: block;
  padding: 13px 0;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-menu.hero-mobile ul li a {
  color: rgba(255,255,255,0.85);
  border-bottom-color: rgba(255,255,255,0.1);
}

.mobile-menu ul li a:hover { color: var(--orange); }
.mobile-menu.hero-mobile ul li a:hover { color: var(--orange); }

.mobile-menu ul li:last-child a { border-bottom: none; }

.mobile-menu.open { display: block; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */

@media (max-width: 768px) {
  .main .navbar .menu,
  .menu { display: none; }
  
   .main .navbar .auth { display: none; }


  .hamburger { display: flex; }

  /* On hero, push hamburger to right after auth hides */
  .main .navbar .auth { margin-left: 0; }
  .main .navbar { position: relative; }
  .navbar { position: relative; }

  section { padding: 50px 24px; }
  .faq { padding: 50px 24px; }

  .content { margin-top: 80px; }
  .content h1 { font-size: 28px; }

  .hero-buttons { flex-direction: column; align-items: center; }

  .review { width: 100%; }

  .footer { flex-direction: column; text-align: center; padding: 24px; }

  .navbar { padding: 0 20px; }

  .oglasi-container { padding: 32px 16px; }
  .oglasi-header { padding: 50px 24px 36px; }

  .dashboard-header,
  .dashboard-body { padding: 24px 20px; }

  .auth-box { padding: 36px 24px; }
}