/*
  USS Brand Theme
  Matches the client look and feel: deep blue + warm accent on a subtle gradient backdrop.
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Cinzel:wght@600;700&display=swap');

:root {
  /* Brand palette pulled from the logo/business card */
  --color-bg: #f6efe6;
  --color-surface: rgba(255, 255, 255, 0.92);
  --color-primary: #24306f;         /* deep roof blue */
  --color-primary-dark: #171f4d;
  --color-secondary: #151824;       /* text */
  --color-accent: #d77952;          /* warm accent */
  --color-accent-2: #e4c58e;        /* warm sand */
  --color-muted: #5a6073;
  --color-border: rgba(20, 24, 36, 0.12);
  --color-success: #0ea36a;
  --color-danger: #d7263d;

  --shadow-soft: 0 14px 38px rgba(16, 20, 32, 0.14);
  --shadow-hard: 0 18px 48px rgba(16, 20, 32, 0.22);
  --radius-lg: 1.75rem;
  --radius-md: 1.15rem;
  --radius-sm: 0.65rem;

  --font-sans: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Cinzel', 'Georgia', serif;

  --spacing-xxs: 0.25rem;
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1.25rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4.5rem;

  --transition-fast: 160ms ease;
  --transition-medium: 220ms ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(1200px 520px at 18% 8%, rgba(215, 121, 82, 0.28) 0%, rgba(215, 121, 82, 0) 58%),
              radial-gradient(1200px 560px at 82% 10%, rgba(89, 103, 178, 0.22) 0%, rgba(89, 103, 178, 0) 62%),
              linear-gradient(135deg, #f2d7bf 0%, #f6efe6 42%, #d7cbe4 100%);
  color: var(--color-secondary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page {
  min-height: 100vh;
  background: transparent;
}

.container {
  width: min(1200px, 100% - var(--spacing-lg));
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

.card-media {
  margin: calc(var(--spacing-lg) * -1);
  margin-bottom: var(--spacing-md);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.03);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.card-media img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  display: block;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.button-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2f3d93 50%, var(--color-primary) 100%);
  color: #fff;
}

.button-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #202b6b 55%, var(--color-primary-dark) 100%);
  transform: translateY(-1px);
}

.button-secondary {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-secondary);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(20, 24, 36, 0.10);
  color: var(--color-secondary);
}

.button-ghost:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.78);
}

.badge {
  display: inline-flex;
  padding: var(--spacing-xxs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  background: rgba(36, 48, 111, 0.10);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
}

.muted {
  color: var(--color-muted);
}


.hero {
  padding-block: var(--spacing-xxl) var(--spacing-xl);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: var(--spacing-md);
}

.hero p {
  font-size: 1rem;
  color: var(--color-muted);
  margin-bottom: var(--spacing-lg);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-list {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.nav-link {
  padding-bottom: var(--spacing-xxs);
  border-bottom: 2px solid transparent;
}

.nav-link.active,
.nav-link:hover {
  border-color: var(--color-accent);
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary);
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  height: 34px;
  width: auto;
  display: block;
}

.logo .logo-text {
  display: inline-flex;
  align-items: baseline;
  line-height: 1.1;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.chip {
  padding: var(--spacing-xxs) var(--spacing-sm);
  border-radius: var(--radius-lg);
  background: rgba(215, 121, 82, 0.14);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
}

.quote-band {
  margin-block: var(--spacing-xl);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--color-primary) 0%, #2f3d93 30%, var(--color-accent) 100%);
  color: #fff;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.quote-band p {
  margin-bottom: var(--spacing-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
}

.footer-social {
  list-style: none;
  display: flex;
  gap: var(--spacing-md);
  padding: 0;
  flex-wrap: wrap;
}

.footer-social li {
  font-weight: 600;
  color: var(--color-muted);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
}

.section-header p {
  color: var(--color-muted);
}

.form,
.form * {
  font: inherit;
}

.form {
  display: grid;
  gap: var(--spacing-md);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #fefefe;
}

.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(36, 48, 111, 0.16), rgba(215, 121, 82, 0.22));
  min-height: 320px;
}

.hero-media::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
}



.hero-media--photo {
  position: relative;
  background: #0b1220;
}

.hero-media--photo::after {
  display: none;
}

.hero-media-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.35));
  pointer-events: none;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.section {
  padding-block: var(--spacing-xxl);
}

.section + .section {
  border-top: 1px solid var(--color-border);
}

.modal {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-soft);
}

footer {
  padding-block: var(--spacing-xl);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
}

/* Admin header/footer (uses the same CSS file) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, rgba(36, 48, 111, 0.92) 0%, rgba(89, 103, 178, 0.78) 35%, rgba(215, 121, 82, 0.70) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px 0;
}

.admin-main {
  padding: 28px 0;
}

.site-header .logo {
  color: #fff;
  font-family: var(--font-heading);
  letter-spacing: 0.3px;
}

/* Admin nav uses the same mobile toggle JS via data-nav-toggle/data-nav-list */
.site-header .nav-toggle {
  display: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 800;
}

.site-header .nav-list {
  display: flex;
  gap: 10px;
  list-style: none;
  align-items: center;
}

.site-header .nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.site-footer {
  padding-block: 22px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
}

/* Tables used in admin */
.table-wrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(20, 24, 36, 0.10);
  vertical-align: top;
}

.table thead th {
  text-align: left;
  font-family: var(--font-heading);
  letter-spacing: 0.2px;
  color: var(--color-primary);
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.55);
}

.card-body {
  display: block;
}

/* Admin mobile behavior */
@media (max-width: 768px) {
  .admin-main { padding: 18px 0; }
  .site-header .nav-toggle { display: inline-flex; }

  .site-header .nav-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    margin: 0 14px;
    padding: 12px;
    border-radius: var(--radius-md);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: rgba(16, 22, 38, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow-soft);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition-medium);
  }

  .site-header .nav-list.open { transform: scaleY(1); }

  .site-header .nav-link {
    width: 100%;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 420px) {
  .site-header .logo { font-size: 1.05rem; }
  .site-header .nav-toggle { padding: 9px 11px; }
  .table th, .table td { padding: 10px 10px; }
}

/* Public site mobile nav */
@media (max-width: 768px) {
  .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    width: 220px;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition-medium);
  }

  .nav-list.open {
    transform: scaleY(1);
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .container {
    width: 100%;
    margin-inline: 0;
  }

  .nav-list {
    width: 100%;
    right: 0;
  }
}


/* WhatsApp floating button */
.uss-wa-float{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(16, 22, 38, .92);
  color:#fff;
  cursor:pointer;
  box-shadow:0 10px 28px rgba(0,0,0,.35);
}
.uss-wa-float:hover{ transform: translateY(-1px); }
.uss-wa-label{ font-size:14px; font-weight:700; letter-spacing:.2px; }
@media (max-width: 520px){
  .uss-wa-label{ display:none; }
  .uss-wa-float{ padding:12px; }
}


/* Responsive hardening: supports 340px+ */

@media (max-width: 640px) {
  .container { width: 100%; padding-inline: 14px; }
  .section { padding-block: var(--spacing-xl); }
  .grid { gap: var(--spacing-md); }
  .hero-media { min-height: 240px; }
  .footer-social { flex-wrap: wrap; }
  .quote-band { padding: var(--spacing-lg); }
}

@media (max-width: 420px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .logo { font-size: 1.1rem; line-height: 1.1; }
  .nav { padding: var(--spacing-sm) 0; }
  .nav-toggle { padding: 0.55rem 0.9rem; }
  .button { padding: 0.7rem 1.2rem; }
  .hero-media { min-height: 210px; border-radius: var(--radius-md); }
  .hero-cta .button { width: 100%; }
  .card { padding: var(--spacing-md); }
  .badge { font-size: 0.8rem; }
}

@media (max-width: 360px) {
  .container { padding-inline: 12px; }
  .nav-list { padding: var(--spacing-sm); }
  .nav-link { padding: 0.4rem 0; }
  .quote-band { padding: var(--spacing-md); }
}

/* Horizontal scroll safety for wide tables on small screens */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 640px) {
  table { max-width: 100%; }
}

/* ============================================================
   Admin SaaS Refresh
   Applies only inside <body class="admin-page">
   ============================================================ */

.admin-page {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(47, 61, 147, 0.12), transparent 55%),
              radial-gradient(900px 500px at 100% 0%, rgba(215, 121, 82, 0.14), transparent 55%),
              #f5f7fb;
  color: var(--color-secondary);
}

.admin-page .site-header {
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.admin-page .nav-wrap {
  padding: 14px 0;
}

.admin-page .site-header .logo {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.2px;
}

.admin-page .site-header .logo img {
  height: 28px;
}

.admin-page .site-header .nav-list {
  gap: 8px;
}

.admin-page .site-header .nav-link {
  color: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.admin-page .site-header .nav-link:hover {
  color: var(--color-primary);
  background: rgba(36, 48, 111, 0.06);
  border-color: rgba(36, 48, 111, 0.22);
  transform: translateY(-1px);
}

.admin-page .site-header .nav-link.active {
  color: #fff;
  border-color: rgba(36, 48, 111, 0.25);
  background: linear-gradient(135deg, var(--color-primary) 0%, #2f3d93 55%, var(--color-primary) 100%);
}

.admin-page .admin-main {
  padding: 24px 18px 42px;
}

/* New admin shell (sidebar layout) */
.admin-shell {
  min-height: 100vh;
  display: flex;
}

.admin-sidebar {
  width: 264px;
  flex: 0 0 264px;
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 12px 0 30px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  overflow: auto;
}

.admin-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-sidebar .logo img {
  height: 26px;
}

.admin-nav {
  padding: 12px;
}

.admin-sidebar .nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.admin-sidebar .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  color: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.75);
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.admin-sidebar .nav-link:hover {
  color: var(--color-primary);
  background: rgba(36, 48, 111, 0.06);
  border-color: rgba(36, 48, 111, 0.22);
  transform: translateY(-1px);
}

.admin-sidebar .nav-link.active {
  color: #fff;
  border-color: rgba(36, 48, 111, 0.25);
  background: linear-gradient(135deg, var(--color-primary) 0%, #2f3d93 55%, var(--color-primary) 100%);
}

.admin-content {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(245, 247, 251, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}

.admin-title {
  font-family: var(--font-heading);
  font-weight: 800;
  color: rgba(15, 23, 42, 0.88);
}

.admin-footer {
  padding: 18px;
}

@media (max-width: 980px) {
  .admin-shell { display: block; }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
  }
  .admin-sidebar .nav-list {
    display: none;
    padding: 10px 2px 2px;
  }
  .admin-sidebar .nav-list.open {
    display: flex;
  }
}

/* Cards */
.admin-page .card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: none;
}

.admin-page .card:hover {
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.10);
}

/* Typography helpers */
.admin-page h1, .admin-page h2, .admin-page h3 {
  letter-spacing: -0.02em;
}

.admin-page .muted {
  color: rgba(15, 23, 42, 0.62);
}

/* Form system (admin pages use these classnames) */
.form-field {
  display: grid;
  gap: 8px;
}

.form-field .muted {
  font-size: 0.92rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  outline: none;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(36, 48, 111, 0.35);
  box-shadow: 0 0 0 4px rgba(36, 48, 111, 0.12);
}

.form-input::placeholder {
  color: rgba(15, 23, 42, 0.40);
}

/* Safety net: if an admin page forgets to use form-* classes, still look premium */
.admin-page input[type="text"],
.admin-page input[type="email"],
.admin-page input[type="password"],
.admin-page input[type="url"],
.admin-page input[type="number"],
.admin-page select,
.admin-page textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  outline: none;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.admin-page input[type="text"]:focus,
.admin-page input[type="email"]:focus,
.admin-page input[type="password"]:focus,
.admin-page input[type="url"]:focus,
.admin-page input[type="number"]:focus,
.admin-page select:focus,
.admin-page textarea:focus {
  border-color: rgba(36, 48, 111, 0.35);
  box-shadow: 0 0 0 4px rgba(36, 48, 111, 0.12);
}

.admin-page textarea {
  min-height: 140px;
  resize: vertical;
}

.admin-page form label {
  display: block;
}

/* Buttons */
.admin-page .button {
  border-radius: 12px;
  font-weight: 800;
}

.admin-page .button-danger {
  background: linear-gradient(135deg, #d7263d 0%, #b51f31 55%, #d7263d 100%);
  color: #fff;
}

.admin-page .button-danger:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #b51f31 0%, #991b2a 55%, #b51f31 100%);
}

.admin-page .button.button-danger,
.admin-page .button-danger {
  background: rgba(215, 38, 61, 0.12);
  border: 1px solid rgba(215, 38, 61, 0.30);
  color: rgba(145, 18, 33, 0.98);
}

.admin-page .button.button-danger:hover,
.admin-page .button-danger:hover {
  background: rgba(215, 38, 61, 0.16);
  border-color: rgba(215, 38, 61, 0.40);
  transform: translateY(-1px);
}

.admin-page .button-secondary {
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.7);
}

.admin-page .button-secondary:hover {
  background: rgba(36, 48, 111, 0.06);
  border-color: rgba(36, 48, 111, 0.22);
}

/* Tables */
.admin-page .table th,
.admin-page .table td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-page .table thead th {
  color: rgba(15, 23, 42, 0.78);
}

.admin-page .table tbody tr:hover {
  background: rgba(36, 48, 111, 0.04);
}

/* Mobile admin nav */
@media (max-width: 860px) {
  .admin-page .site-header .nav-toggle {
    display: inline-flex;
    color: rgba(15, 23, 42, 0.78);
    border-color: rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.75);
  }

  .admin-page .site-header .nav-list {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
  }

  .admin-page .site-header .nav-link {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ============================================================
   Mobile premium pass (targets 340px reality)
   Put this at the VERY BOTTOM of styles.css
   ============================================================ */

@media (max-width: 420px) {
  /* Layout */
  .container { width: 100%; padding-inline: 14px; }
  .grid { gap: 14px; }

  /* Nav */
  .nav { padding: 10px 0; }
  .logo { font-size: 1.05rem; }
  .logo .logo-text { display: none; } /* tiny screens: keep it clean */

  /* Hero: force single column and reduce bloat */
  .hero { padding-block: 26px 16px; }
  .hero .grid-2 { grid-template-columns: 1fr; gap: 14px; }

  .badge { font-size: 0.78rem; padding: 6px 10px; }

  /* Hero typography: override clamp properly */
  .hero h1 {
    font-size: 1.65rem;
    line-height: 1.08;
    margin-bottom: 10px;
  }
  .hero p { margin-bottom: 14px; }

  /* CTA: make it look intentional */
  .hero-cta,
  .hero-quick-contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-cta .button,
  .hero-quick-contact .button {
    width: 100%;
    justify-content: center;
  }

  /* Hero image: stop it from becoming page 2 */
  .hero-media--photo { border-radius: 18px; }
  .hero-media-img {
    min-height: 210px;
    height: 210px;
    object-fit: cover;
    object-position: center;
  }

  /* Sections */
  .section { padding-block: 26px; }

  /* Cards */
  .card { padding: 14px; border-radius: 16px; }
  .card-media img { height: 160px; }

  /* Featured products grid: one column on tiny screens */
  .grid-3 { grid-template-columns: 1fr; }

  /* Make card buttons consistent */
  .card .button { width: 100%; justify-content: center; }

  /* WhatsApp button: don't bully the UI */
  .uss-wa-float { right: 12px; bottom: 12px; }
}

/* 340px hard clamp */
@media (max-width: 360px) {
  .container { padding-inline: 12px; }
  .hero h1 { font-size: 1.55rem; }
  .hero-media-img { height: 190px; min-height: 190px; }
}



/* ============================================================
   Public site polish (home page)
   ============================================================ */

.hero .grid-2 {
  align-items: center;
}

.lead {
  font-size: 1.05rem;
  color: rgba(15, 23, 42, 0.72);
  max-width: 58ch;
}

.hero-quick-contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: var(--spacing-md);
}

.hero-trust .trust-item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.70);
  color: rgba(15, 23, 42, 0.72);
  font-weight: 600;
  font-size: .88rem;
}

.hero-trust .dot {
  width: .5rem;
  height: .5rem;
  border-radius: 999px;
  background: rgba(215, 121, 82, 0.9);
  box-shadow: 0 0 0 3px rgba(215, 121, 82, 0.18);
}

.hero-media--photo {
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: var(--shadow-soft);
}

.hero-media-img {
  object-position: center;
}

.feature-card h3 {
  margin-bottom: .35rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 240px at 15% 15%, rgba(36, 48, 111, 0.08), transparent 60%);
  pointer-events: none;
}

.product-card {
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hard);
}

.button-block {
  width: 100%;
}

.section-header {
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.section-header p {
  max-width: 62ch;
  text-align: right;
}

@media (max-width: 768px) {
  .section-header {
    align-items: flex-start;
  }
  .section-header p {
    text-align: left;
  }
}

/* Extra-tight mobile (340px target) */
@media (max-width: 360px) {
  .hero-trust .trust-item {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   Admin: Coming Soon premium UI
   Append at very bottom of styles.css
   ============================================================ */

.admin-page .page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin: 8px 0 18px;
}
.admin-page .page-head h1{
  margin:0;
  font-size: clamp(1.65rem, 2.2vw, 2.2rem);
}
.admin-page .page-head__title p{ margin-top: 8px; }
.admin-page .page-head__meta{ display:flex; align-items:center; gap:10px; }

.admin-page .pill{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .85rem;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(15, 23, 42, 0.72);
}

.admin-page .card-admin{
  padding: 18px;
}

.admin-page .admin-section{
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.70);
}
.admin-page .admin-section + .admin-section{
  margin-top: 14px;
}

.admin-page .notice{
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  margin: 10px 0 14px;
}
.admin-page .notice ul{ margin: 8px 0 0 18px; }
.admin-page .notice-success{
  border-color: rgba(14, 163, 106, 0.25);
  background: rgba(14, 163, 106, 0.10);
}
.admin-page .notice-danger{
  border-color: rgba(215, 38, 61, 0.25);
  background: rgba(215, 38, 61, 0.10);
}

.admin-page .switch-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.admin-page .switch-row__copy{ display:flex; flex-direction:column; gap:6px; }
.admin-page .switch-row__title{ font-weight: 900; letter-spacing: -0.01em; }

.admin-page .switch{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  cursor:pointer;
  user-select:none;
}
.admin-page .switch input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.admin-page .switch__track{
  width: 54px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(15, 23, 42, 0.10);
  position: relative;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.admin-page .switch__thumb{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  position:absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
  transition: transform var(--transition-fast);
}
.admin-page .switch input:checked + .switch__track{
  background: rgba(36, 48, 111, 0.90);
  border-color: rgba(36, 48, 111, 0.35);
}
.admin-page .switch input:checked + .switch__track .switch__thumb{
  transform: translateX(22px);
}

.admin-page .form-actions{
  display:flex;
  gap: 10px;
  margin-top: 14px;
}
.admin-page .form-actions .button{
  padding: 12px 16px;
}
.admin-page .form-actions .button-primary{
  min-width: 180px;
}

/* 340px reality check */
@media (max-width: 420px){
  .admin-page .page-head{ flex-direction:column; align-items:flex-start; }
  .admin-page .switch-row{ align-items:flex-start; }
  .admin-page .form-actions{ flex-direction:column; }
  .admin-page .form-actions .button{ width:100%; justify-content:center; }
  .admin-page .admin-section{ padding: 14px; }
}

/* ============================================================
   Coming Soon page polish
   ============================================================ */
.cs-page{
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(36,48,111,0.10), transparent 60%),
    radial-gradient(900px 420px at 85% 10%, rgba(245,130,32,0.10), transparent 60%),
    var(--bg, #f6f7fb);
}

.cs-badge{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .85rem;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.75);
  color: rgba(15,23,42,0.72);
}

.cs-shell{
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.cs-hero{
  padding: 10px 2px 0;
}

.cs-title{
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.02em;
}

.cs-subtitle{
  margin-top: 10px;
  font-size: 1.05rem;
  max-width: 70ch;
}

.cs-actions{
  margin-top: 14px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cs-stats{
  margin-top: 16px;
  display:grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cs-stat{
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.70);
}

.cs-stat__label{
  font-weight: 800;
  font-size: .9rem;
  color: rgba(15,23,42,0.78);
}

.cs-stat__value{
  margin-top: 4px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cs-card{
  padding: 18px;
}

.cs-grid{
  display:grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.cs-block h3{ margin: 0 0 8px; }
.cs-block p{ margin: 0; }

.field-wide{
  grid-column: 1 / -1;
}

.cs-form-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-top: 12px;
}

.cs-form-hint{
  font-size: .95rem;
}

/* Mobile */
@media (max-width: 720px){
  .cs-stats{ grid-template-columns: 1fr; }
  .cs-grid{ grid-template-columns: 1fr; }
  .cs-form-actions{ flex-direction: column; align-items:flex-start; }
}

/* 340px */
@media (max-width: 420px){
  .cs-actions .button{ width: 100%; justify-content:center; }
}

.admin-page .admin-shell { min-height: 100vh; }
.admin-page .admin-content { width: 100%; }

