:root {
  --ocean: #1565c0;
  --ocean-dark: #0d47a1;
  --teal: #00838f;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ocean);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ocean);
}

.logo-text {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: none;
  gap: 1.5rem;
}

.nav a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ocean);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--ocean), var(--teal));
  color: #fff;
  box-shadow: 0 8px 24px rgba(21, 101, 192, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  margin-top: 0;
  overflow: hidden;
}

.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-carousel .slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    105deg,
    rgba(13, 71, 161, 0.88) 0%,
    rgba(0, 131, 143, 0.55) 55%,
    rgba(15, 23, 42, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 4vw 4rem;
  max-width: 640px;
  color: #fff;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-family: Outfit, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-caption {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

.carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 4vw;
  z-index: 4;
  display: flex;
  gap: 0.5rem;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
}

.carousel-dots button.active {
  background: #fff;
  transform: scale(1.2);
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-title {
  font-family: Outfit, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
  color: var(--text);
}

.section-sub {
  color: var(--muted);
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
}

/* Services */
.services {
  background: var(--surface);
}

.service-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-family: Outfit, sans-serif;
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-car {
  border-top: 4px solid var(--ocean);
}

.service-carpet {
  border-top: 4px solid var(--teal);
}

.service-dine {
  border-top: 4px solid #5d4037;
}

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.about-list {
  padding-left: 1.25rem;
  color: var(--muted);
}

.about-list li {
  margin-bottom: 0.35rem;
}

.about-card {
  background: linear-gradient(145deg, var(--ocean), var(--teal));
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-card h3 {
  font-family: Outfit, sans-serif;
  margin: 0 0 0.75rem;
}

.about-card p {
  margin: 0 0 0.75rem;
  opacity: 0.95;
}

.about-note {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Contact */
.contact-box {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-grid strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-grid a,
.contact-grid span {
  color: var(--text);
  font-weight: 500;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: var(--text);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0;
  text-align: center;
}

/* Auth pages */
.auth-page .site-header {
  position: relative;
}

.auth-main {
  min-height: calc(100vh - var(--header-h));
  padding: 2rem 4vw 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-family: Outfit, sans-serif;
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
}

.auth-sub {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.auth-tab {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: var(--bg);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.auth-tab.active {
  background: var(--ocean);
  color: #fff;
  border-color: var(--ocean);
}

.auth-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.auth-form input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
}

.auth-form input:focus {
  outline: 2px solid var(--ocean);
  outline-offset: 1px;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-foot {
  text-align: center;
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-error {
  background: #fef2f2;
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-auth a {
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
}

.btn-link {
  background: none;
  border: none;
  color: var(--ocean);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}

.nav-user {
  font-size: 0.9rem;
  color: var(--muted);
}

.account-main {
  align-items: flex-start;
  padding-top: calc(var(--header-h) + 2rem);
}

.account-main h1 {
  font-family: Outfit, sans-serif;
}

.orders-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.order-card {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.order-status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.status-new { background: #e3f2fd; color: #1565c0; }
.status-in-progress { background: #fff3e0; color: #e65100; }
.status-ready { background: #e8f5e9; color: #2e7d32; }
.status-completed { background: #f3e5f5; color: #6a1b9a; }
.status-rejected { background: #ffebee; color: #c62828; }

.order-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.empty-orders,
.loading {
  color: var(--muted);
}

/* Admin */
.admin-page .site-header {
  position: relative;
}

.admin-main {
  padding: calc(var(--header-h) + 2rem) 4vw 4rem;
  max-width: 900px;
}

.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-head h1 {
  font-family: Outfit, sans-serif;
  margin: 0;
}

.admin-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.table-wrap {
  overflow-x: auto;
}

.staff-table {
  width: 100%;
  border-collapse: collapse;
}

.staff-table th,
.staff-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.staff-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.staff-actions {
  white-space: nowrap;
}

.staff-actions .btn-link {
  margin-right: 0.75rem;
}

.btn-delete {
  color: #b91c1c !important;
}

.admin-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: 420px;
  width: calc(100% - 2rem);
  box-shadow: var(--shadow);
}

.admin-dialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
}

.admin-dialog form {
  padding: 1.75rem;
}

.admin-dialog h2 {
  font-family: Outfit, sans-serif;
  margin: 0 0 1rem;
}

.dialog-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.btn-ghost-dialog {
  background: var(--bg);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text);
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
