/* Layout System - Core Structure and Components */

/* Container System */
.container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 var(--grid-margin);
}

/* Main Layout Structure */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  position: relative;
}

/* Header Styles */
.site-header {
  position: fixed;
  /* Changed from sticky to fixed for consistent overlay */
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  position: relative;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--grid-margin);
  /* Reduced from 1rem */
}

/* Brand/Logo */
.brand-link {
  text-decoration: none;
}

.brand-text {
  font-size: 1.7rem;
  /* Reduced from 2rem */
  font-weight: var(--font-weight-black);
  color: var(--hsi-blue);
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 119, 182, 0.3);
  transition: all var(--transition-normal);
}

.brand-text:hover {
  color: var(--hsi-orange);
  text-shadow: 0 0 15px rgba(244, 162, 97, 0.4);
}

/* Unified Menu Toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.menu-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.1em;
  font-weight: var(--font-weight-semibold);
}

.hamburger-box {
  width: 30px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-normal);
}

.menu-toggle:hover .hamburger-line {
  background: var(--hsi-orange);
}

/* Side Panel System */
.side-panel-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: rgba(13, 17, 23, 0.4);
  backdrop-filter: blur(5px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.side-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  background: var(--bg-primary);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform var(--transition-normal) var(--cubic-smooth);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
}

.side-panel-overlay.active .side-panel {
  transform: translateX(0);
}

.side-panel-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2.5rem;
  cursor: pointer;
  transition: color var(--transition-normal);
  line-height: 1;
}

.side-panel-close:hover {
  color: var(--hsi-orange);
}

.side-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.side-nav-section {
  margin-bottom: 2rem;
}

.side-nav-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--hsi-orange);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.side-nav-list {
  list-style: none;
  padding: 0;
}

.side-nav-item {
  margin: 1.2rem 0;
}

.side-nav-item.sub-item {
  margin-left: 1.5rem;
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.side-nav-item .nav-link {
  font-size: 1.25rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.side-nav-item.sub-item .nav-link {
  font-size: 1rem;
  font-family: var(--font-primary);
  font-weight: normal;
}

.side-nav-item .nav-link:hover,
.side-nav-item .nav-link.active {
  color: var(--hsi-orange);
  padding-left: 0.5rem;
}

.side-nav-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  color: var(--text-secondary);
}


/* Layout Grids ----------------------------------------------------- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 2fr));
  grid-gap: 1rem;
  margin-top: 2rem;
}




/* .product-card {
 background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
  text-align: center;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--hsi-orange);
}

.product-card h3 {
  font-size: 2.0rem;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
}

.product-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.product-card .btn {
  margin-top: auto;
} */


/* Card ------------------------------------------------------------ */

.card {
  /* variables  */
  --_card--colour: var(--card--colour, pink);
  --gradient-x: 50%;
  --gradient-y: 50%;

  display: flex;
  flex-direction: column;
  padding: 2rem;
  transition: all var(--transition-normal);
  text-align: left;
  font-family: var(--font-primary);
  border-radius: 0.75rem;
  position: relative;
  background: rgba(255, 255, 255, 0.05);

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    transition: all var(--transition-normal);
  }

  &:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
  }

  &:hover::before {
    background: radial-gradient(circle at var(--gradient-x) var(--gradient-y),
        rgba(244, 162, 97, 0.9) 0%,
        rgba(244, 162, 97, 0.6) 25%,
        rgba(244, 162, 97, 0.3) 50%,
        rgba(244, 162, 97, 0.1) 75%,
        rgba(255, 255, 255, 0.05) 100%);
  }

  & p {
    /* color: var(--text-secondary); */
    margin-bottom: 1.5rem;
    /* line-height: 1.6; */
  }

  & ul {
    list-style: none;
    padding: 0;
    /* margin: .5rem 1rem 2rem;  */
    margin-bottom: 1rem;
  }


  & li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
  }

  & li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--hsi-orange);
    font-size: 0.8rem;
    margin-right: 0.5rem;
  }

  & .btn {
    background-color: var(--_card--colour);
    border: 2px solid var(--_card--colour);
    margin-top: auto;
    align-self: center;
    width: 100%;
  }

}

/* card variants -------------------------------------------------- */

.card--blue {
  --card--colour: var(--hsi-blue);
}

.card--green {
  --card--colour: var(--hsi-green);
}

.card--orange {
  --card--colour: var(--hsi-orange);
}

/* card components -------------------------------------------------*/


.card--title {
  font-size: 2rem;
  font-family: var(--font-heading);
  /* font-weight: var(--font-weight-bold); */
  margin-top: 0.0rem;
  margin-bottom: 1.8rem;
  /* min-height: 3.2rem; 
  line-height: 1.6rem; */
  color: var(--_card--colour);
  text-align: center;
}

/* heading centered bold */
.card--heading {
  font-size: 1.8rem;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  margin-top: 1rem;
  /* margin-bottom: 1rem; */
  line-height: 1.8rem;
  min-height: 4rem;
  color: var(--_card--colour);
  text-align: center;
}

.card--subheading {
  font-size: 1.2rem;
  font-family: var(--font-primary);
  /* font-family: var(--font-heading); */
  font-weight: var(--font-weight-bold);
  margin-top: 0rem;
  margin-bottom: 1rem;
  /* line-height: 1.4rem;  */
  /* min-height: 2.8rem;  */
  color: var(--_card--colour);
}

.card--footer {
  /* font-size: 1.2rem; */
  /* font-family: var(--font-primary); */
  /* font-family: var(--font-heading); */
  /* font-weight: var(--font-weight-bold); */
  /* margin-bottom: 1rem; */
  color: var(--_card--colour);
}

.card--letter {
  width: 3rem;
  height: 2rem;
  background: var(--_card--colour);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 0;
  line-height: 1rem;
  min-height: 3rem;
  /* margin-bottom: 1rem; */
  /* margin: 0;  */
}


.card--centered {
  text-align: center;
}

.card--product-detail {
  background-color: #181d26;
}

.card--product-detail p,
.card--product-detail li {
  font-size: 0.8rem;
}

.product-details-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  /* Removed the 0fr column */
  gap: 3rem;
  align-items: start;
  overflow: visible;
  /* Ensure tilt is visible */
  padding: 1rem 2rem 2rem;
  /* Reduced top padding to shrink gap */
}

.product-card-display {
  width: 100%;
  max-width: 700px;
  /* Limit size slightly to give tilt more room */
  margin: 0 auto;
}

.card--product-detail-med p,
.card--product-detail-med li {
  font-size: 0.9rem;
}

.product-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-menu-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-menu-item:hover,
.product-menu-item.active {
  background: rgba(0, 119, 182, 0.2);
  color: var(--hsi-blue);
}



/* Paper Button Style (derived from paper-layers.css) */
.paper-button {
  position: relative;
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal) var(--cubic-smooth);
  overflow: hidden;
  /* Add button specific styles */
  display: inline-flex;
  /* or block, depending on desired layout */
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;

  &:hover {
    background: var(--hsi-blue);
    /* New background color on hover */
    transform: translateY(-2px);
    /* Keep a subtle lift effect for the button itself */
    box-shadow:
      0 8px 25px rgba(0, 0, 0, 0.15),
      0 4px 10px rgba(0, 0, 0, 0.1),
      inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    border-color: rgba(244, 162, 97, 0.3);
  }

  &:active,
  &:focus {
    transform: translateY(-1px);
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.2),
      0 2px 6px rgba(0, 0, 0, 0.15),
      inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  }

}



/* Footer */
.site-footer {
  background: rgba(13, 17, 23, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Content Sections */
.content-block {
  position: relative;
}


.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
  font-size: 2.5rem;
}

/* 
.section-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
  transition: all var(--transition-normal);
}

.section-card:hover {
  border-color: var(--hsi-orange);
  box-shadow: var(--shadow-lg);
}

.section-card h3 {
  color: var(--text-accent);
  margin-bottom: 1rem;
  font-weight: var(--font-weight-bold);
}

.section-card ul {
  list-style: none;
  padding: 0;
}

.section-card li {
  margin: 0.5rem 0;
  padding-left: 1rem;
  position: relative;
}

.section-card li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--hsi-orange);
  font-size: 0.8rem;
} */

/* Form Styles */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-primary);
  transition: all var(--transition-normal);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--hsi-orange);
  box-shadow: 0 0 0 3px rgba(244, 162, 97, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Responsive Design */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header-content {
    padding: 1rem;
  }

  .brand-text {
    font-size: 1.75rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    grid-gap: 1.5rem;
  }

  .product-card {
    padding: 1.5rem;
  }

  .section-card {
    padding: 1.5rem;
  }

  .form-container {
    padding: 1.5rem;
    margin: 0 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .header-content {
    padding: 0.75rem 0.5rem;
  }

  .brand-text {
    font-size: 1.5rem;
  }

  .product-card {
    padding: 1rem;
  }

  .section-card {
    padding: 1rem;
  }
}

.last-section {
  display: flex;
  flex-direction: column;
}