/* global.css */
:root {
  --primary: #0A3C26; --gold: #B89343; --slate-dark: #111A15;
  --bg-clean: #FAF9F5; --text-main: #2D3A34; --text-muted: #5C6B63;
  --container-max: 1280px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', system-ui, sans-serif; background-color: var(--bg-clean); color: var(--text-main); line-height: 1.6; }

/* Navbar & Footer (These are now shared) */
.navbar { position: sticky; top: 0; z-index: 1000; background: rgba(250, 249, 245, 0.95); border-bottom: 1px solid #E3E8E5; padding: 20px 0; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: min(var(--container-max), 90%); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo-circle { width: 44px; height: 44px; background: var(--primary); color: white; display: grid; place-items: center; font-weight: 700; border-radius: 4px; }
nav { display: flex; gap: 30px; }
nav a { font-weight: 600; color: var(--text-main); text-decoration: none; }
.quote-btn { background: var(--primary); color: white; padding: 10px 20px; border-radius: 4px; }

/* ==========================================================================
   SHARED SITE NAVIGATION (Add this to global.css)
   ========================================================================== */
.top-bar {
  background-color: var(--slate-dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-container {
  width: min(var(--container-max), 90%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-left { display: flex; gap: 30px; }
.top-right a:hover { color: var(--gold); }

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(250, 249, 245, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 20px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--container-max), 90%);
  margin: 0 auto;
}

.logo { display: flex; align-items: center; gap: 14px; }
.logo-circle {
  width: 44px; height: 44px; border-radius: 4px;
  background-color: var(--primary);
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 700;
}

.logo-text h3 { font-size: 1.15rem; color: var(--primary); font-family: var(--font-sans); }
.logo-text span { font-size: 0.72rem; text-transform: uppercase; color: var(--text-muted); }

nav { display: flex; gap: 40px; align-items: center; }
nav a { font-size: 0.88rem; font-weight: 500; color: var(--text-main); }
nav a:hover { color: var(--gold); }

/* Add this to global.css */
a {
    text-decoration: none; /* Removes the underline */
    color: inherit;        /* Forces the text to use the color of its parent element */
}

/* If you want to keep the email as a link but change the color: */
.top-right a {
    color: rgba(255, 255, 255, 0.8); /* Matches your top-bar text */
}

.top-right a:hover {
    color: var(--gold); /* Adds a nice hover effect */
}

/* Update these in global.css */

/* This controls the black bar at the very top */
.top-bar {
  background-color: var(--slate-dark); /* Ensure this is your dark brand color */
  color: rgba(255, 255, 255, 0.8);
}

/* This controls the main navigation bar */
.navbar {
  /* Change this to match your page background if you want them to blend */
  background-color: var(--bg-clean);
  /* Or if you want it to remain distinct but consistent */
  border-bottom: 1px solid var(--border-light);
}

/* This ensures the body background matches your design */
body {
  background-color: var(--bg-clean); /* Use your Ivory Chalk Canvas background */
}

/* Modal Container */
.inquiry-modal {
  border: none;
  border-radius: 12px;
  padding: 0;
  width: 95%;
  max-width: 600px;
  background: #FAF9F5;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.inquiry-modal::backdrop {
  background: rgba(10, 60, 38, 0.85); /* Deep Forest backdrop */
  backdrop-filter: blur(5px);
}

.modal-content {
  padding: 30px;
  position: relative;
}

.close-modal-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-muted);
}

/* Ensure the form fits inside the modal on mobile */
@media screen and (max-width: 768px) {
  .inquiry-modal { width: 90% !important; margin-top: 50px; }
  .modal-content { padding: 20px; }
  .form-row { flex-direction: column !important; gap: 10px !important; }
}

/* Explicit style to force the form submit button to be visible */
.form-submit-btn {
    display: block !important;
    width: 100% !important;
    background-color: #1b4d3e !important; /* Matches your primary dark green */
    color: #ffffff !important; /* Crisp white text */
    padding: 14px 20px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    margin-top: 20px !important;
    text-align: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}


/* Structural layout override to prevent clipping elements */
.intake-form-wrapper, 
#intake-form-wrapper {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 24px !important;
}

.premium-form, 
#dynamicSourcingForm {
    height: auto !important;
    overflow: visible !important;
    display: block !important;
}

/* Fallback element targeting */
#dynamicSourcingForm button,
.form-submit-btn {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 48px !important;
    background: #1b4d3e !important;
    color: #ffffff !important;
}