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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f7f7f9;
}

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

.container {
  width: min(11000px, 100% - 2rem);
  margin: 0 auto;
}

/* Header */

.site-header {
  background: #111827;
  color: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
}

.main-nav {
  display: flex;
  gap: 1rem;
}

.main-nav a {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.main-nav a:hover {
  background: rgba(249, 250, 251, 0.12);
}

.auth-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
}

.welcome-text {
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #f9fafb;
  color: #f9fafb;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 1.1rem;
}

/* Sub navigation for logged-in users */

.sub-nav {
  background: #1f2937;
}

.sub-nav-inner {
  display: flex;
  gap: 1.25rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.sub-nav a {
  color: #e5e7eb;
}

.sub-nav a:hover {
  text-decoration: underline;
}

/* Hero */

.hero {
  background: radial-gradient(circle at top left, #4f46e5, #111827);
  color: #f9fafb;
  padding: 4rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-placeholder {
  border-radius: 1.5rem;
  border: 2px dashed rgba(249, 250, 251, 0.4);
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.95rem;
  max-width: 320px;
}

/* Sections */

.page-header {
  padding: 2.5rem 0 1.5rem;
  background: #e5e7eb;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  max-width: 45rem;
}

.page-section {
  padding: 2.5rem 0;
}

.home-highlights {
  padding: 2.5rem 0;
}

.home-cta {
  padding: 3rem 0 3.5rem;
  text-align: center;
}

.home-cta h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.home-cta p {
  margin-bottom: 1.5rem;
}

/* Layout helpers */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
}

.card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.card h2,
.card h3 {
  margin-bottom: 0.5rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn.primary {
  background: #4f46e5;
  color: #f9fafb;
}

.btn.primary:hover {
  background: #4338ca;
}

.btn.secondary {
  background: rgba(249, 250, 251, 0.1);
  border-color: #f9fafb;
  color: #f9fafb;
}

.btn.secondary:hover {
  background: rgba(249, 250, 251, 0.2);
}

.btn.small {
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
}

/* Contact form */

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 1px;
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Map placeholder */

.map-placeholder {
  background: #e5e7eb;
  border-radius: 0.75rem;
  padding: 3rem 1rem;
  text-align: center;
  color: #4b5563;
}

/* FAQ */

.faq-list {
  max-width: 48rem;
}

.faq-item + .faq-item {
  margin-top: 0.75rem;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  border: none;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  font-weight: 500;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0.75rem 1rem 0.5rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Testimonials */

.testimonial p {
  margin-bottom: 0.5rem;
}

.testimonial-name {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Gallery */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.gallery-item {
  background: #e5e7eb;
  border-radius: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #4b5563;
}

.gallery-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Blog */

.blog-post {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  margin-bottom: 1.25rem;
}

.blog-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

/* Legal pages */

.legal h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Auth forms */

.auth-container {
  max-width: 26rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.95rem;
}

.auth-form input {
  padding: 0.6rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid #d1d5db;
  font: inherit;
}

.auth-form input:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 1px;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert.error {
  background: #fee2e2;
  color: #991b1b;
}

.alert.success {
  background: #dcfce7;
  color: #166534;
}

.auth-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Footer */

.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: #e5e7eb;
}

/* Responsive */

@media (max-width: 768px) {
  .hero-inner,
  .two-column,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3rem;
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #111827;
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

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

  .header-inner {
    align-items: flex-start;
  }

  .auth-links {
    display: none;
  }
}




/* ----------------------------------------------------
   TWO-COLUMN LAYOUT FOR DOCUMENTS PAGE
----------------------------------------------------- */

/* Adjust this value to change the width of the left column */
:root {
  --documents-left-width: 320px;   /* <-- change this to your preference */
}

.documents-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* LEFT COLUMN: fixed/adjustable width */
.documents-left {
  flex: 0 0 var(--documents-left-width);
  max-width: 100%;
}

/* RIGHT COLUMN: takes remaining space */
.documents-right {
  flex: 1 1 auto;
  min-width: 0; /* prevents overflow in some browsers */
}

/* Stack columns vertically on very small screens */
@media (max-width: 900px) {
  .documents-layout {
    flex-direction: column;
  }

  .documents-left,
  .documents-right {
    flex: 1 1 100%;
  }
}


/* ----------------------------------------------------
   FILE CONTROLS (LEFT COLUMN)
----------------------------------------------------- */

.file-controls {
  margin-bottom: 0;      /* no large bottom gap now, column handles spacing */
  padding: 0.5rem 0;
}

.file-controls h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.file-controls hr {
  margin: 1rem 0;
  border: 0;
  border-top: 1px solid #ddd;
}


/* ----------------------------------------------------
   FILE LIST
----------------------------------------------------- */

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.file-list li {
  margin: 0.25rem 0;
}

.file-list a {
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.55rem;
  display: inline-block;
  border-radius: 4px;
  color: #005bbb;
}

.file-list a:hover {
  background: #eef6ff;
  color: #004099;
}

.file-list .current-file a {
  background: #005bbb;
  color: #fff !important;
  font-weight: 600;
}


/* ----------------------------------------------------
   SHEET HEADER + TABS (RIGHT COLUMN)
----------------------------------------------------- */

.sheet-header {
  margin-bottom: 1rem;
}

.sheet-header h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.sheet-tabs {
  margin: 0.75rem 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sheet-tab {
  padding: 0.45rem 0.85rem;
  border: 1px solid #ccc;
  background: #f7f7f7;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 4px;
  color: #333;
}

.sheet-tab:hover {
  background: #e6e6e6;
}

.sheet-tab.active {
  background: #005bbb;
  border-color: #004099;
  color: #fff;
  font-weight: 600;
}


/* ----------------------------------------------------
   EXCEL VIEWER (RIGHT COLUMN)
----------------------------------------------------- */

.excel-viewer-container {
  width: 100%;
  margin-top: 0.5rem;
  overflow: visible;
}

.excel-frame {
  width: 100%;            /* fill right column */
  min-height: 1400px;     /* adjust if needed */
  border: 1px solid #ccc;
  background-color: #ffffff;
  display: block;
  border-radius: 4px;
}


/* ----------------------------------------------------
   BUTTONS & FORM
----------------------------------------------------- */

.btn.small {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 4px;
  background: #005bbb;
  color: #fff;
  text-decoration: none;
  display: inline-block;
}

.btn.small:hover {
  background: #004099;
}

.btn.primary {
  background: #005bbb;
  color: #fff;
  padding: 0.55rem 1.2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.btn.primary:hover {
  background: #004099;
}

.auth-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.auth-form input[type="file"] {
  margin-top: 0.3rem;
  margin-bottom: 1rem;
  display: block;
}





/* Re-center header, sub-nav and "My Documents" header
   now that .container is full width everywhere */

.site-header > .container,
.sub-nav > .container,
.page-header > .container {
  max-width: 1100px;   /* same value you originally used */
  width: 100%;
  margin: 0 auto;
}

/* Make sure header bits stay nicely aligned horizontally */
.header-inner {
  display: flex;
  align-items: center;      /* logo & nav vertically centered */
  justify-content: space-between;
  gap: 1rem;
}

/* Keep the dashboard / My Profile / My Documents row centred under main nav */
.sub-nav-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
