/* ===== IMPORTS ===== */
@import url("https://fonts.googleapis.com/css2?family=Inconsolata:wght@200;300;400;500;600;700;800;900&display=swap");

/* ===== CSS VARIABLES ===== */
:root {
  --root-background: #f5e6d9;
  --header-background: #2e2d3a;

  --nav-font-size: 1.5rem;
  --nav-font-weight: 600;
  --section-heading-font-size: 1.8rem;
  --section-heading-font-weight: 600;
  --sub-heading-font-size: 1.4rem;
  --sub-heading-font-weight: 600;
  --title-heading-font-size: 1.2rem;
  --title-heading-font-weight: 500;
  --caption-font-size: 0.875rem;
  --caption-font-weight: 300;
  --paragraph-font-size: 1rem;
  --paragraph-font-weight: 400;
  --hover: rgba(0, 140, 186, 0.25);
  --header-font: rgba(255, 255, 255, 1);
  --regular-font: rgba(46, 45, 58, 1);
  --link-font: rgba(15, 52, 96, 1);
}

/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Montserrat", "Open Sans", sans-serif;
  background-color: #f5e6d9;
  color: #2e2d3a;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: #0f3460;
  text-decoration: none;
}

a:hover {
  color: #00bfff;
  text-decoration: underline;
  border-radius: 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: var(--section-heading-font-size);
  font-weight: var(--section-heading-font-weight);
  color: #1a1a2e;
}

h3 {
  font-size: var(--sub-heading-font-size);
  font-weight: var(--sub-heading-font-weight);
  color: #1a1a2e;
}

h4 {
  font-size: var(--title-heading-font-size);
  font-weight: var(--title-heading-font-weight);
  color: #1a1a2e;
}

p {
  font-size: var(--paragraph-font-size);
  font-weight: var(--paragraph-font-weight);
  color: var(--regular-font);
  margin-bottom: 1rem;
}

ul,
ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.4rem;
}

strong,
b {
  color: var(--regular-font);
  font-weight: 700;
}

code {
  font-family: "Inconsolata", monospace;
  background: rgba(0, 0, 0, 0.07);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ===== APP LAYOUT ===== */
.app {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

@media (max-width: 875px) {
  .app {
    flex-direction: column;
  }
}

/* ===== HEADER / NAVBAR ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-background);
  box-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.2);
  min-height: 100vh;
  max-width: 30vw;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: none;
  padding: 2rem 1rem;
}

.header .toolbar {
  pointer-events: all;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  width: 100%;
  padding: 0;
  position: sticky;
  top: 0;
  left: 0;
}

.header .logo {
  max-width: 75%;
  height: auto;
  margin-bottom: 0.5rem;
}

.header .nav-bio {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
  line-height: 1.3;
}

.header .nav-bio .bio-role {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
}

.header .nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.5rem;
}

.header .nav-list .nav-link {
  font-size: var(--nav-font-size);
  font-weight: var(--nav-font-weight);
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  border-radius: 1.5rem;
  transition: background-color 0.2s ease;
  min-width: fit-content;
  font-family: "Montserrat", sans-serif;
}

.header .nav-list .nav-link:hover {
  background-color: var(--hover);
  text-decoration: none;
  color: #ffffff;
}

.header .nav-list .nav-link.active {
  background-color: var(--hover);
  color: #ffffff;
}

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 875px) {
  .header {
    min-height: auto;
    max-width: none;
    width: 100%;
    padding: 0.5rem 1rem;
    align-items: center;
    justify-content: center;
  }

  .header .toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    top: 0;
  }

  .header .logo {
    max-width: 50px;
    margin-bottom: 0;
  }

  .header .nav-bio {
    display: none;
  }

  .header .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    width: auto;
  }

  .header .nav-list .nav-link {
    font-size: 1rem;
    padding: 0.3rem 0.8rem;
  }
}

/* ===== MAIN CONTENT ===== */
#main-content {
  flex-grow: 1;
  padding: 2rem 2rem 2rem 2rem;
  width: 100%;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 0 2rem 0;
}

/* ===== BIO SECTION (hidden from main content, used in navbar) ===== */
#top-bio {
  display: none;
}

/* ===== TEXT BLOCK (Main page content) ===== */
.text-block {
  margin-bottom: 1.5rem;
}

.text-block p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.text-block ul {
  margin: 0.5rem 0 1rem 2rem;
}

.text-block ul li {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.text-block strong {
  color: var(--regular-font);
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: var(--section-heading-font-size);
  font-weight: var(--section-heading-font-weight);
  color: #1a1a2e;
  margin: 2rem 0 1.5rem 0;
  text-align: left;
}

@media (max-width: 700px) {
  .section-title {
    font-size: 1.6rem;
  }
}

/* ===== PRODUCT CARDS (Home) ===== */
#card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.5rem;
}

.preview-card {
  flex: 1 1 calc(50% - 1.5rem);
  min-width: 280px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
  border: 1px solid #eee;
  padding: 1rem;
  max-height: 420px;
  margin: 0 0 0.5rem 0;
}

.preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(60, 24, 116, 0.12);
}

.preview-card .card-header {
  padding: 0 0 0.25rem 0;
}

.preview-card .card-header h3 {
  font-size: 1.4rem;
  color: #1a1a2e;
  font-weight: 600;
  margin: 0;
}

.preview-card .card-media {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f0f0f0;
  border-radius: 8px;
  margin: 0.5rem 0;
}

.preview-card .card-description {
  padding: 0.25rem 0;
  font-size: 0.95rem;
  color: #444;
}

.preview-card .card-description p {
  margin-bottom: 0.5rem;
}

@media (max-width: 1100px) {
  #card-container {
    flex-direction: column;
  }
  .preview-card {
    flex: 1 1 100%;
    max-height: none;
  }
}

/* ===== PRODUCTS PAGE (Full Detail) ===== */
#products-container {
  padding-top: 0.5rem;
}

.product-container {
  padding-bottom: 1rem;
  border-bottom: 1px solid #ccc;
  margin-bottom: 2rem;
}

.product-container:last-child {
  border-bottom: none;
}

.product-container h3 {
  font-size: 1.8rem;
  color: #1a1a2e;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.product-container .product-image {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  display: block;
  margin: 1rem 0;
  border-radius: 8px;
  background: #fafafa;
}

.product-container .product-links {
  margin: 0.5rem 0 1rem 0;
}

.product-container .product-links a {
  display: inline-block;
  margin-right: 1.5rem;
  font-weight: 600;
  color: #0f3460;
}

.product-container .product-description {
  font-size: 1.05rem;
  color: #2e2d3a;
  line-height: 1.7;
}

.product-container .product-description h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}

.product-container .product-description h3 {
  font-size: var(--sub-heading-font-size);
  font-weight: var(--sub-heading-font-weight);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  color: #1a1a2e;
}

.product-container .product-description h4 {
  font-size: var(--title-heading-font-size);
  font-weight: var(--title-heading-font-weight);
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  color: #1a1a2e;
}

.product-container .product-description ul {
  margin: 0.5rem 0 1rem 2rem;
}

.product-container .product-description ul li {
  margin-bottom: 0.4rem;
}

.product-container .product-description img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  display: block;
  margin: 0.75rem 0;
  border-radius: 8px;
  background: #fafafa;
}

.product-container .product-description strong {
  color: var(--regular-font);
}

@media (max-width: 700px) {
  .product-container .product-description h2 {
    font-size: 1.4rem;
  }
  .product-container .product-description h3 {
    font-size: 1.2rem;
  }
}

/* ===== CONTACT PAGE ===== */
#contact-list {
  list-style: none;
  padding: 0;
  font-size: 1.3rem;
  line-height: 2;
  margin-top: 0;
}

#contact-list li {
  color: var(--regular-font);
  margin-bottom: 0.25rem;
}

#contact-list a {
  color: #0f3460;
  font-weight: 500;
}

@media (max-width: 700px) {
  #contact-list {
    font-size: 1.1rem;
  }
}

/* ===== DOCUMENT PAGE ===== */
.document-container {
  width: 100%;
  height: 85vh;
  border: none;
  border-radius: 8px;
  background: #fff;
}

/* ===== UTILITY ===== */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  #main-content {
    padding: 0.5rem 1rem 1.5rem 1rem;
  }

  .container {
    padding: 0.25rem 0 1rem 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .preview-card {
    min-width: 100%;
  }
}

/* ===== HEADER NAV BIO (for desktop) ===== */
#nav-bio,
#top-bio {
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#nav-bio {
  display: flex;
}

/* ===== FONT FALLBACK ===== */
.Montserrat {
  font-family: "Montserrat", sans-serif;
}

/* ===== PAGE TITLE (h1 style) ===== */
.page-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 1.5rem 0;
  font-family: "Montserrat", sans-serif;
}

@media (max-width: 700px) {
  .page-title {
    font-size: 2rem;
  }
}
