/* =========================
   ROOT VARIABLES
========================= */
:root {
  --bg-main: #f5efe8;
  --bg-card: #f0e7dc;
  --bg-soft: #f7f1ea;

  --text-primary: #1f1f1f;
  --text-secondary: #6e6a66;

  --accent-gold: #c6a96b;
  --accent-dark: #2a2a2a;

  --border-soft: rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.05);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

body {
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.5px;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.2rem; }

p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* =========================
   LAYOUT
========================= */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 30px 24px 0px 24px;
}

/* =========================
   SECTIONS (GLOBAL SPACING)
========================= */
section {
  margin-bottom: 10px;
}

.text-center {
  text-align: center;
  padding: 60px 20px;
}

/* =========================
   CARD
========================= */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1rem;
  text-decoration: none;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--accent-dark);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background: var(--accent-gold);
  color: #1f1f1f;
  border: 1px solid var(--accent-gold);
}

.btn-secondary:hover {
  background: #b99a5f;
  border-color: #b99a5f;
  color: #1f1f1f;
}

/* =========================
   NAVBAR
========================= */
.nav {
  background: var(--bg-main);
  border-bottom: 1px solid rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  margin-left: 24px;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-gold);
}

/* =========================
   NAVBAR - DASHBOARD
========================= */

.dashboard-links a {
  text-decoration: none;
  color: var(--text-primary);
  margin-left: 24px;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.dashboard-links a:hover {
  color: var(--accent-gold);
}

/* =========================
   DASHBOARD NAVBAR
========================= */

.dashboard-nav {
  background: var(--bg-main);
  border-bottom: 1px solid rgba(0,0,0,0.25);
}

.dashboard-nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 24px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.dashboard-links {
  display: flex;
  align-items: center;
}

.dashboard-links a {
  text-decoration: none;
  color: var(--text-primary);
  margin-left: 24px;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.dashboard-links a:hover {
  color: var(--accent-gold);
}

/* NAV CTA */
.nav-cta {
  background: linear-gradient(135deg, #111, #333);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

.nav-cta:hover {
  background: linear-gradient(135deg, #222, #555);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-login {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-login:hover {
    color: #111;
}

/* =========================
   INVENTORY LIST
========================= */

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

.inventory-table th,
.inventory-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.inventory-thumb {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #111;
  color: #ccc;
  padding: 50px 20px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin-bottom: 15px;
  color: #fff;
}

.footer-links {
  margin-bottom: 15px;
}

.footer-links a {
  margin: 0 12px;
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 12px;
  color: #777;
}

/* =========================
   CTA BLOCK (BOTTOM CTA)
========================= */
.cta-block {
  margin-top: 0px;
  margin-bottom: 40px;
  text-align: center;
}

.cta-block h2 {
  margin-bottom: 5px;
}

/* =========================
   Contact Card/Contact Form
========================= */

.contact-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 4px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #d8d0c8;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
}

.response-time {
    text-align: center;
    color: #777;
    font-size: 14px;
    margin: 0;
}

.consent-group {
    margin-top: -5px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    margin-top: 3px;
    width: auto;
    flex-shrink: 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ddd;
    border-top: 5px solid #c6a96b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.payment-select {
    width: 100%;
    min-height: 58px;
    padding: 14px 16px;
    font-size: 20px;
    font-weight: 600;
    border: 2px solid #c6a96b;
    border-radius: 10px;
    background: white;
    color: #1f1f1f;
    cursor: pointer;
}

/* =========================
   Spinner
========================= */

@keyframes spin {

    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }

}

/* =========================
   Metrics Grid
========================= */

.metrics-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.metric-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.metric-card h4 {
    margin: 0;
    font-size: 14px;
    color: #777;
}

.metric-card p {
    margin-top: 10px;
    font-size: 28px;
    font-weight: bold;
}

/* =========================
   RESPONSIVE (DESKTOP → TABLET → SMALL)
========================= */

/* Large Screens (default already looks good, just slight upscale) */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
    padding: 80px 32px;
  }

  .cta-block {
    margin-top: 50px;
  }

  h1 { font-size: 3.2rem; }
  h2 { font-size: 2.1rem; }
  p  { font-size: 1.05rem; }

  .nav-inner {
    padding: 24px 32px;
  }
}

/* Standard Desktop / Laptop (this is your MAIN target) */
@media (max-width: 1200px) {
  .container {
    max-width: 1100px;
    padding: 60px 24px;
  }
  
  .cta-block {
    margin-top: 50px;
  }

  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.7rem; }

  .nav-inner {
    padding: 18px 20px;
  }
}

/* Tight Desktop / Small Laptop (THIS is where your issue is) */
@media (max-width: 1024px) {
  .container {
    padding: 50px 20px;
  }

  section {
    margin-bottom: 50px;
  }

  .card {
    padding: 24px;
  }

  .cta-block {
    margin-top: 50px;
  }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.5rem; }

  .nav-links a {
    margin-left: 16px;
  }
}

/* Tablet (we're not going full mobile yet, just preventing crowding) */
@media (max-width: 768px) {
  .container {
    padding: 40px 16px;
  }

  .cta-block {
    margin-top: 20px;
  }

  .nav-inner {
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    margin: 6px 10px;
  }

  .card {
    padding: 20px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }

  .btn {
    padding: 12px 22px;
    font-size: 0.95rem;
  }
}