/* =========================================================
   HM PEPTIDE — style1.css
   Complete styles with fixed navigation
   ========================================================= */

:root {
  --teal: #00b4a6;
  --teal-dark: #008f84;
  --teal-light: #e0f7f5;
  --navy: #1a2b3c;
  --gray-100: #f5f7f9;
  --gray-200: #e8ecef;
  --gray-400: #9aa5b1;
  --gray-700: #4a5568;
  --white: #ffffff;
  --star: #f5a623;
  --font-head: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.10);
  --transition: 0.22s cubic-bezier(.4,0,.2,1);
  --radius: 14px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--gray-100);
  min-height: 100vh;
}

/* TOPBAR */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  padding: 10px 20px;
  font-family: var(--font-head);
}

.topbar span {
  color: var(--teal);
  font-weight: 600;
}

/* =========================================================
   HAMBURGER MENU - MODERN SLIDE-IN STYLES
   Add this to style1.css or each page's style section
   ========================================================= */

/* HEADER */
header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 72px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  cursor: pointer;
  z-index: 101;
}

.logo-text em {
  color: var(--teal);
  font-style: normal;
}

/* DESKTOP NAVIGATION */
nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 8px 16px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

nav a:hover {
  color: var(--teal);
  background: var(--teal-light);
}

nav a.active {
  color: var(--teal);
  background: var(--teal-light);
  position: relative;
}

nav a.active::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 24px;
  height: 2.5px;
  background: var(--teal);
  border-radius: 2px;
}

.nav-contact {
  background: var(--teal) !important;
  color: white !important;
  border-radius: 8px;
  font-weight: 600 !important;
}

.nav-contact:hover {
  background: var(--teal-dark) !important;
}

/* HAMBURGER BUTTON */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  background: transparent;
  border: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* MOBILE NAVIGATION - SLIDE IN FROM RIGHT */
@media (max-width: 820px) {
  .header-inner {
    padding: 0 20px;
  }
  
  .hamburger {
    display: flex;
  }
  
  nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    padding: 80px 24px 30px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    gap: 8px;
    z-index: 100;
    transition: right 0.3s ease;
    overflow-y: auto;
  }
  
  nav.open {
    right: 0;
  }
  
  nav a {
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 16px;
  }
  
  nav a.active::after {
    display: none;
  }
  
  nav a.nav-contact {
    margin-top: 10px;
    text-align: center;
  }
  
  /* Overlay when menu is open */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
  }
  
  .menu-overlay.active {
    display: block;
  }
  
  /* Hamburger animation to X */
  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}
/* SIDE CONTACT FLOATING BAR - ALWAYS VISIBLE */
.side-contact {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 200;
  gap: 2px;
}

.side-btn {
  width: 48px;
  height: 48px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: all var(--transition);
  color: var(--gray-700);
  text-decoration: none;
}

.side-btn:hover {
  background: var(--teal);
  color: white;
  transform: translateX(-4px);
}

.side-btn:first-child {
  border-radius: 10px 0 0 0;
}

.back-to-top {
  width: 48px;
  height: 48px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 18px;
  transition: all var(--transition);
  border-radius: 0 0 0 10px;
}

.back-to-top:hover {
  background: var(--teal);
  transform: translateX(-4px);
}

/* Tooltip for side buttons */
.side-btn {
  position: relative;
}

.side-btn::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 60px;
  background: var(--navy);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-body);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.side-btn:hover::before {
  opacity: 1;
  visibility: visible;
  right: 55px;
}

/* Responsive sidebar - always visible, just smaller */
@media (max-width: 1024px) {
  .side-contact { right: 8px; }
  .side-btn, .back-to-top { width: 42px; height: 42px; font-size: 18px; }
}

@media (max-width: 768px) {
  .side-contact { right: 5px; }
  .side-btn, .back-to-top { width: 38px; height: 38px; font-size: 16px; }
}

@media (max-width: 480px) {
  .side-contact { right: 5px; }
  .side-btn, .back-to-top { width: 35px; height: 35px; font-size: 14px; }
}

/* =========================================================
   PRODUCT GRID & CARDS
   ========================================================= */

.product-section { 
  padding: 2rem 0; 
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title { 
  text-align: center; 
  margin-bottom: 2.5rem; 
}

.section-title p {
  font-size: clamp(18px, 5vw, 25px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0b0b0a;
  margin: 0 0 10px;
}

.divider { 
  width: 48px; 
  height: 5px; 
  background: #ee4406; 
  margin: 0 auto; 
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 1400px;
  padding: 0 20px;
  justify-items: center;
}

.new-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 1500px;
  padding: 0 20px;
  justify-items: center;
}

/* Responsive product grids */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .new-product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Health Banner - FULLY RESPONSIVE */
.health-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.banner-image {
  border-radius: 12px;
  overflow: hidden;
}

.banner-image img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.banner-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-width: 220px;
}

.banner-title {
  text-align: center;
}

.banner-title p {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: #8B7355;
  margin: 0 0 8px;
  font-weight: 500;
  text-transform: uppercase;
}

.sidebar-image {
  width: 100%;
  max-width: 280px;
}

.sidebar-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .health-banner {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .banner-image img {
    max-height: 240px;
  }
  .sidebar-image {
    max-width: 220px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .banner-image img {
    max-height: 200px;
  }
  .sidebar-image {
    max-width: 180px;
  }
}

/* Research Image - FULLY RESPONSIVE */
.research-img {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.research-img img {
  width: 100%;
  max-width: 1300px;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 24px;
}

@media (max-width: 768px) {
  .research-img img {
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .research-img img {
    max-height: 180px;
  }
}

/* =========================================================
   ADVANTAGES SECTION
   ========================================================= */

.advantages {
  padding: 70px 80px;
  background: var(--white);
  text-align: center;
  width: 100%;
}

.advantages-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--navy);
}

.adv-underline {
  width: 50px;
  height: 2px;
  background: var(--teal);
  margin: 12px auto 50px;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
  text-align: left;
  max-width: 1150px;
  margin: 0 auto;
}

.adv-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.adv-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.adv-text h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--navy);
}

.adv-text p {
  font-size: 0.875rem;
  color: var(--gray-700);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .advantages {
    padding: 50px 24px;
  }
  .adv-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .adv-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* =========================================================
   CTA SECTION - FULLY RESPONSIVE
   ========================================================= */

.cta-section {
  background: var(--white);
  text-align: center;
  padding: 60px 20px 80px;
  border-top: 1px solid #eee;
}

.cta-section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 5vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  max-width: 500px;
  margin: 0 auto 10px;
  line-height: 1.3;
  padding: 0 10px;
}

.cta-section p {
  color: #888;
  font-size: clamp(0.8rem, 3vw, 0.9rem);
  margin-bottom: 30px;
  padding: 0 15px;
}

.email-row {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 480px;
  width: 90%;
  margin: 0 auto;
  border: 1px solid #aaa;
  border-radius: 48px;
  overflow: hidden;
  background: white;
}

.email-row input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9rem;
  padding: 14px 20px;
  font-family: var(--font-body);
  color: var(--gray-700);
  background: transparent;
  min-width: 0;
  width: auto;
}

.email-row input::placeholder {
  color: #aaa;
  font-size: 0.85rem;
}

.arrow-btn {
  background: var(--teal);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: white;
  padding: 0 24px;
  transition: background 0.2s;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-btn:hover {
  background: var(--teal-dark);
}

@media (max-width: 768px) {
  .cta-section {
    padding: 40px 16px 60px;
  }
  
  .cta-section h2 {
    font-size: 1.4rem;
  }
  
  .email-row {
    width: 95%;
    max-width: 400px;
  }
  
  .email-row input {
    padding: 12px 16px;
    font-size: 0.85rem;
  }
  
  .email-row input::placeholder {
    font-size: 0.8rem;
  }
  
  .arrow-btn {
    padding: 0 18px;
    font-size: 1.2rem;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .cta-section h2 {
    font-size: 1.2rem;
  }
  
  .cta-section p {
    font-size: 0.8rem;
  }
  
  .email-row {
    width: 100%;
    border-radius: 40px;
  }
  
  .email-row input {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
  
  .email-row input::placeholder {
    font-size: 0.75rem;
  }
  
  .arrow-btn {
    padding: 0 14px;
    font-size: 1.1rem;
    min-height: 42px;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 50px 80px 30px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer-col p,
.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: #aaa;
  line-height: 2;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--teal);
}

.footer-col img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 0.75rem;
  color: #666;
  line-height: 2;
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 24px 24px;
  }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
}

/* =========================================================
   UTILITY CLASSES
   ========================================================= */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: block;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.text-center {
  text-align: center;
}

/* Animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp .7s ease both;
}

/* =========================================================
   CONTACT PAGE RESPONSIVE FIXES
   ========================================================= */

/* Make map fully responsive */
.map-wrap iframe {
  width: 100%;
  height: auto;
  min-height: 340px;
}

@media (max-width: 768px) {
  .map-wrap iframe {
    min-height: 250px;
  }
}

@media (max-width: 480px) {
  .map-wrap iframe {
    min-height: 200px;
  }
}

/* Contact info icon alignment */
.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  word-break: break-word;
}

.contact-info p i {
  width: 20px;
  flex-shrink: 0;
  color: var(--teal);
}

/* Message form responsive fixes */
.message-form {
  width: 100%;
}

.message-form textarea {
  width: 100%;
  box-sizing: border-box;
}

/* Form row stack on mobile */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .message-form input:not(:first-child) {
    margin-top: -1px;
  }
}

/* Responsive heading adjustments */
.contact-page .section-title p,
.message-section .section-title p {
  font-size: clamp(18px, 5vw, 25px);
}

@media (max-width: 480px) {
  .contact-page .section-title p,
  .message-section .section-title p {
    letter-spacing: 0.1em;
  }
}

/* Ensure CTA button stays inside email row on all screens */
.cta-section .email-row {
  display: flex;
  flex-wrap: nowrap;
}

.cta-section .email-row input {
  flex: 1;
  min-width: 0;
}

.cta-section .arrow-btn {
  flex-shrink: 0;
}

/* =========================================================
   MESSAGE SECTION STYLES (FOR CONTACT PAGE)
   ========================================================= */

/* Contact Page Container */
.contact-page {
  padding: 2.5rem 1rem 3rem;
  max-width: 1260px;
  margin: 0 auto;
}

/* Section title underline */
.adv-underline {
  width: 60px;
  height: 3px;
  background: var(--teal, #00b4a6);
  margin: 12px auto 0;
  border-radius: 4px;
}

/* Contact Grid - Two columns */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 340px;
  gap: 48px;
  align-items: start;
}

/* Map Wrapper */
.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

/* Right Column */
.contact-right {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* Leave Message */
.leave-message h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--navy, #1a2b3c);
}

.leave-message p {
  font-size: 14px;
  color: #888;
  margin: 0 0 16px;
}

.leave-message hr {
  border: none;
  border-top: 1px solid #e5e7eb;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-info .company-name {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--navy, #1a2b3c);
}

.contact-info p {
  font-size: 14px;
  margin: 0;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
  word-break: break-word;
}

.contact-info p i {
  width: 22px;
  color: var(--teal, #00b4a6);
  font-size: 16px;
}

/* ========== MESSAGE SECTION ========== */
.message-section {
  padding: 2rem 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.subtitle {
  font-size: 14px;
  color: #8B7355;
  margin: 0 0 2rem;
  text-align: center;
}

/* Message Form */
.message-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--white, #ffffff);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.message-form input,
.message-form textarea {
  border: 1px solid #ddd;
  padding: 16px 18px;
  font-size: 15px;
  font-family: inherit;
  color: #333;
  background: #fff;
  outline: none;
  box-sizing: border-box;
  width: 100%;
  transition: all 0.2s ease;
}

.message-form input {
  margin: 0;
}

.message-form input::placeholder,
.message-form textarea::placeholder {
  color: #aaa;
  font-size: 14px;
}

.message-form input:focus,
.message-form textarea:focus {
  border-color: var(--teal, #00b4a6);
  position: relative;
  z-index: 1;
}

.message-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 140px;
}

/* Submit Button */
.form-submit {
  text-align: center;
  margin-top: 2rem;
  padding-bottom: 1.5rem;
}

.form-submit button {
  background: var(--teal, #00b4a6);
  color: #fff;
  border: none;
  padding: 14px 50px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 40px;
}

.form-submit button:hover {
  background: var(--teal-dark, #008f84);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-page {
    padding: 1.5rem 1rem 2rem;
  }

  .section-title p {
    font-size: 20px;
  }

  .message-section {
    padding: 1.5rem 1rem 2rem;
  }

  /* Stack form rows vertically */
  .form-row {
    grid-template-columns: 1fr;
  }

  .message-form input,
  .message-form textarea {
    padding: 14px 16px;
    font-size: 14px;
  }

  .message-form input:not(:first-child) {
    margin-top: -1px;
  }

  .form-submit button {
    padding: 12px 40px;
    font-size: 15px;
  }

  .subtitle {
    font-size: 13px;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .contact-page .section-title p,
  .message-section .section-title p {
    font-size: 18px;
    letter-spacing: 0.1em;
  }

  .contact-right {
    gap: 24px;
  }

  .leave-message h3 {
    font-size: 16px;
  }

  .contact-info p {
    font-size: 13px;
  }

  .message-section {
    padding: 1rem 0.8rem 1.5rem;
  }

  .subtitle {
    font-size: 12px;
    margin-bottom: 1.2rem;
  }

  .message-form input,
  .message-form textarea {
    padding: 12px 14px;
    font-size: 13px;
  }

  .message-form input::placeholder,
  .message-form textarea::placeholder {
    font-size: 12px;
  }

  .form-submit button {
    padding: 10px 30px;
    font-size: 14px;
    width: 100%;
    max-width: 250px;
  }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
  .message-form input,
  .message-form textarea {
    padding: 10px 12px;
    font-size: 12px;
  }

  .form-submit button {
    padding: 10px 25px;
    font-size: 13px;
  }
}