/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --color-bg: #f5f5f5;
  --color-white: #fff;
  --color-green: #006949;
  --color-brown: #683400;
  --color-purple: #4a2340;
  --color-rose-light: #FFD7D6;
  --color-rose: #FF9C99;
  --color-blue: #002B5C;
  --color-rose-dark: #1F0101;
  --color-shadow: rgba(0,0,0,0.08);

  /* Typography */
  --font-main: 'General Sans', Arial, sans-serif;
  --font-size-base: 1.1rem;
  --font-size-title: 2rem;
  --font-size-title-mobile: 1.2rem;
  --font-size-base-mobile: 1rem;

  /* Layout */
  --radius-main: 12px;
  --radius-img: 8px;
  --shadow-main: 0 4px 16px var(--color-shadow);
  --section-max-width: 900px;
  --section-padding: 32px 3vw;
  --section-padding-mobile: 16px 2vw;
  --section-gap: 32px;
  --section-gap-mobile: 20px;
  --img-max-width: 563px;

  /* Print */
  --print-width: 595.28px;
  --print-height: 841.89px;
  --print-margin: 32px;

  scroll-padding-bottom: 120px;
}

/* ===== GLOBAL STYLES ===== */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  margin: 0;
  padding: 1rem;
  padding-bottom: 120px; /* Space for fixed bottom navigation */
  font-family: var(--font-main);
}

/* ===== NAVIGATION ===== */
.desktop-nav {
  display: flex;
  justify-content: flex-start;
  gap: .25rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  overflow-x: auto;
  padding: .5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  /* Show scrollbar on desktop */
  scrollbar-width: thin;
  scrollbar-color: var(--color-purple) transparent;
}

.desktop-nav::-webkit-scrollbar {
  height: 8px;
}

.desktop-nav::-webkit-scrollbar-track {
  background: transparent;
}

.desktop-nav::-webkit-scrollbar-thumb {
  background: var(--color-purple);
  border-radius: 4px;
}

.desktop-nav::-webkit-scrollbar-thumb:hover {
  background: #5a3d5c;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--color-purple);
  background: var(--color-white);
  padding: 8px 12px;
  border-radius: 25px;
  text-transform: uppercase;
  font-size: 14px;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.desktop-nav a:hover {
  background: var(--color-purple);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ===== LAYOUT COMPONENTS ===== */
.content-section {
  max-width: var(--section-max-width);
  margin: 32px auto;
  background: var(--color-white);
  box-shadow: var(--shadow-main);
  border-radius: var(--radius-main);
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

/* ===== SECTION ELEMENTS ===== */
.section-title {
  text-align: center;
  font-size: var(--font-size-title);
  font-family: var(--font-main);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-title-small {
  font-size: 1.5rem;
  margin-top: 32px;
}

.section-sub-title {
  font-family: var(--font-main);
  font-size: var(--font-size-title);
  font-weight: 500;
  line-height: 1.1;
  margin: 24px 0;
  letter-spacing: 0;
  text-align: left;
}

.section-text {
  font-size: var(--font-size-base);
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 8px;
}

.section-text strong {
  font-weight: 500;
}

.section-img {
  width: 100%;
  max-width: var(--img-max-width);
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-img);
}

/* ===== COLOR THEMES ===== */
.print-page.green .section-text,
.print-page.green .section-title,
.print-page.green .section-sub-title {
  color: var(--color-green);
}

.print-page.purple .section-text,
.print-page.purple .section-title,
.print-page.purple .section-sub-title {
  color: var(--color-purple);
}

.print-page.brown .section-text,
.print-page.brown .section-title,
.print-page.brown .section-sub-title {
  color: var(--color-brown);
}

.print-page.blue .section-text,
.print-page.blue .section-title,
.print-page.blue .section-sub-title {
  color: var(--color-blue);
}

.print-page.rose-dark .section-text,
.print-page.rose-dark .section-title,
.print-page.rose-dark .section-sub-title {
  color: var(--color-rose-dark);
}

.print-page.dreams-section .section-title,
.print-page.dreams-section .section-text strong {
  color: var(--color-blue);
}

/* ===== UI COMPONENTS ===== */
.box-pink {
  background: var(--color-rose-light);
  border-radius: var(--radius-main);
  padding: 16px;
  margin-bottom: 16px;
}

.box-red {
  background: var(--color-rose);
  border-radius: var(--radius-main);
  padding: 16px;
  margin-bottom: 16px;
}

.box-blue {
  background: #C6DFFB;
  border-radius: var(--radius-main);
  padding: 16px;
  margin-bottom: 16px;
  color: var(--color-blue);
}

/* ===== BUTTONS ===== */
.print-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--color-white);
  border: 2px solid var(--color-green);
  color: var(--color-green);
  padding: 10px 16px;
  border-radius: 25px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--shadow-main);
  transition: all 0.2s ease;
  z-index: 1000;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.print-button:hover {
  background: var(--color-green);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-shadow);
}

.contact-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-buttons .print-button {
  position: initial;
}

/* ===== TABLE STYLES ===== */
.finance-tables-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.finance-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 16px;
  background: var(--color-rose);
  border-radius: var(--radius-main);
  overflow: hidden;
  flex: 1 1 250px;
  min-width: 250px;
}

.finance-table th {
  background: var(--color-rose-light);
  font-weight: 500;
  padding: 12px 16px;
  text-align: left;
  font-size: var(--font-size-base);
}

.finance-table td {
  padding: 8px 16px;
  font-size: var(--font-size-base);
  border-top: 1px solid #fff;
  background-color: rgba(255,255,255,0.6);
}

.finance-table .total-row th,
.finance-table .total-row td {
  font-weight: 700;
  background: var(--color-rose);
}

/* ===== ORGANIZATIONAL CHART ===== */
.org-chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0;
}

.org-chart-main {
  background: #C6DFFB;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  color: var(--color-blue);
}

.org-chart-branches {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.org-chart-branch {
  background: #C6DFFB;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  color: var(--color-blue);
}

.org-chart-branch span {
  font-size: 14px;
  font-weight: 400;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 600px) {
  body {
    padding-bottom: 100px;
    padding: .5rem;
  }


  .desktop-nav a {
    font-size: 12px;
  }

  .content-section {
    padding: var(--section-padding-mobile);
    gap: var(--section-gap-mobile);
    margin: 16px auto;
  }

  .section-title,
  .section-sub-title {
    font-size: var(--font-size-title-mobile);
  }

  .section-text {
    font-size: var(--font-size-base-mobile);
  }

  .section-img {
    max-width: 100%;
  }

  .finance-tables-container {
    flex-direction: column;
  }

  .finance-table {
    min-width: auto;
  }

  .finance-table th,
  .finance-table td {
    font-size: var(--font-size-base-mobile);
    padding: 8px;
  }

  .print-button {
    display: none;
  }

  .org-chart-branches {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  @page {
    size: A4;
    margin: 20mm;
  }

  body {
    background: var(--color-white);
    font-size: 12pt;
    line-height: 1.4;
  }

  .desktop-nav,
  .print-button,
  .content-section#contact {
    display: none;
  }

  .content-section {
    box-shadow: none;
    margin: 0;
    border-radius: 0;
    padding: 0;
    max-width: initial;
    display: block;
    gap: 0;
  }

  .print-page {
    page-break-after: always;
    page-break-inside: avoid;
    background: var(--color-white);
    margin: 0;
    padding: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
    display: block;
    width: 100%;
    height: auto;
    min-height: calc(100vh - 40mm);
  }

  .print-page:last-child {
    page-break-after: auto;
  }

  .section-title {
    font-size: 18pt;
    margin-bottom: 15pt;
    page-break-after: avoid;
  }

  .section-sub-title {
    font-size: 16pt;
    margin: 15pt 0 10pt 0;
    page-break-after: avoid;
  }

  .section-text {
    font-size: 11pt;
    margin-bottom: 8pt;
    page-break-inside: avoid;
  }

  .section-img {
    max-width: 100%;
    page-break-inside: avoid;
    margin: 10pt auto;
  }

  .finance-tables-container {
    page-break-inside: avoid;
    margin-bottom: 10pt;
  }

  .finance-table {
    page-break-inside: avoid;
    font-size: 10pt;
    margin-bottom: 10pt;
  }

  .finance-table th,
  .finance-table td {
    font-size: 10pt;
    padding: 6pt 8pt;
  }

  .box-pink,
  .box-red,
  .box-blue {
    page-break-inside: avoid;
    margin-bottom: 10pt;
    padding: 10pt;
  }

  .section-title-small {
    font-size: 14pt;
    margin-top: 20pt;
  }

  .org-chart-container {
    page-break-inside: avoid;
    margin: 20pt 0;
  }
}
