/* Main Stylesheet for Prince Fan */

/* =========================================
   1. VARIABLES & THEME
   ========================================= */
:root {
  /* Original Theme Variables */
  --primary-navy: #8a3612;
  --primary-blue: #B84F22;
  --accent-teal: #DF642B;
  --accent-teal-light: #F07A4A;
  --light-cream: #f8f5f0;
  --medium-gray: #e8e6e1;
  --dark-gray: #2d3748;
  --text-light: #ffffff;
  --text-dark: #1a202c;
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.1);
  --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  --transition-fast: all 0.25s ease;

  /* Consistnecy Variables */
  --white: #ffffff;
  --orange-vivid: #DF642B;
  --orange-dark: #B84F22;
  --orange-deep-text: #8a3612;
  --orange-fade: #fff6f2;
  --shadow-card: 0 15px 40px -10px rgba(184, 79, 34, 0.15);

  /* Brand Orange Theme (Newer) */
  --brand-orange: #df642b;
  --brand-orange-light: #f07a4a;
  --brand-orange-dark: #b84f22;
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--light-cream);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* =========================================
   3. HEADER STYLES
   ========================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 0;
  padding: 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0px;
  text-decoration: none;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0px;
  background: none;
  box-shadow: none;
  width: auto;
  height: auto;
  flex-shrink: 0;
  /* Prevent collapse */
}

.logo-text {
  font-size: clamp(18px, 2.5vw, 1.8rem);
  /* Responsive font size */
  font-weight: 800;
  color: var(--primary-navy);
  white-space: nowrap;
  /* Prevent wrapping */
  flex-shrink: 0;
  /* Prevent collapse */
}

.logo-text span {
  color: var(--accent-teal);
}

.logo-icon img {
  height: clamp(48px, 8vw, 90px);
  /* Responsive scaling */
  width: auto;
  display: block;
  flex-shrink: 0;
  /* Prevent shrinking */
  transition: height 0.3s ease;
}



/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 35px;
}

nav ul li a {
  color: var(--primary-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition-fast);
  position: relative;
  padding: 5px 0;
}

nav ul li a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, var(--accent-teal), var(--accent-teal-light));
  border-radius: 3px;
  transition: var(--transition-fast);
}

nav ul li a:hover {
  color: var(--accent-teal);
}

nav ul li a:hover:after {
  width: 100%;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-card);
  border-radius: 15px;
  padding: 15px 0;
  min-width: 260px;
  /* Reduced to align better */
  /* Reduced from 400px */
  z-index: 1100;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--orange-fade);
}

.dropdown:hover .dropdown-menu {
  display: flex;
  animation: slideUp 0.3s ease forwards;
}

.dropdown-menu li {
  margin: 0 !important;
  padding-left: 1rem;
  /* Added left padding */
  width: 100%;
  display: block;
}

.dropdown-menu li a {
  padding: 12px 35px;
  /* More left padding */
  /* Increased left padding */
  display: block;
  color: var(--orange-deep-text);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  white-space: normal;
  /* Allow text to wrap */
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background: var(--orange-fade);
  color: var(--orange-vivid);
  padding-left: 30px;
}

.dropdown-menu li a:after {
  display: none;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-navy);
  cursor: pointer;
}

@media (max-width: 768px) {

  /* Toggle Button */
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    /* Highest priority */
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-navy);
  }

  /* REMOVED OVERLAY STYLES COMPLETELY */

  /* Mobile Navigation Panel */
  nav#mainNav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    padding: 80px 0 40px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: block;
    overflow-y: auto;
    left: auto;
    visibility: visible !important;
    opacity: 1 !important;
  }

  nav#mainNav.active {
    transform: translateX(0);
  }

  nav#mainNav ul {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
  }

  nav#mainNav ul li {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid #eee;
    display: block;
    opacity: 1;
    transform: none;
  }

  nav#mainNav ul li a {
    display: flex;
    /* Flex to align text and arrow */
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    font-size: 1.1rem;
    color: var(--primary-navy);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
  }

  nav#mainNav ul li a:hover {
    background-color: #f5f5f5;
    color: var(--accent-teal);
    padding-left: 24px;
  }

  nav#mainNav ul li a:after {
    display: none;
  }

  /* Mobile Dropdown - Accordion Style */
  .dropdown-menu {
    position: relative !important;
    /* Ensure flow layout, overridden desktop absolute */
    top: auto !important;
    left: auto !important;
    float: none !important;
    display: block !important;
    /* Always block for height transition */
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;

    /* Collapsed State */
    max-height: 0;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;

    transform: none !important;
    /* Disable desktop transforms */
    animation: none !important;
    /* Disable desktop animations */

    background: #fafafa;
    width: 100% !important;
    margin: 0;
    transition: max-height 0.4s ease-in-out;
  }

  /* Remove hover interference on mobile */
  .dropdown:hover .dropdown-menu {
    display: block !important;
    animation: none !important;
  }

  /* Show dropdown state */
  .dropdown-menu.show {
    max-height: 1000px;
    /* Use a safe large value */
    border-bottom: 1px solid #eee !important;
  }

  .dropdown-menu li {
    border-bottom: 1px solid #f0f0f0 !important;
  }

  .dropdown-menu li:last-child {
    border-bottom: none !important;
  }

  .dropdown-menu li a {
    padding: 12px 24px 12px 40px;
    /* Indent sub-items */
    font-size: 1rem;
    color: #555;
    font-weight: 500;
    border-bottom: none;
  }

  /* Chevron Rotation */
  .dropdown>a .fa-chevron-down {
    transition: transform 0.3s ease;
    padding: 15px;
    /* Increase hit area significantly */
    margin-left: 10px;
    cursor: pointer;
    /* Indicate it is clickable */
    color: var(--primary-navy);
    position: relative;
    z-index: 10;
  }

  .dropdown.active>a .fa-chevron-down {
    transform: rotate(180deg);
  }

  /* Body Lock */
  body.mobile-open {
    overflow: hidden;
  }
}

/* =========================================
   4. FOOTER STYLES
   ========================================= */
footer {
  background-color: var(--primary-navy);
  color: white;
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}

.footer-column h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer-column h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--accent-teal), var(--accent-teal-light));
  border-radius: 3px;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-info {
  list-style: none;
}

.contact-info li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.contact-info i {
  color: var(--accent-teal);
  margin-right: 15px;
  margin-top: 5px;
  min-width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Footer Map */
.footer-map {
  background: #f8f9fa;
  padding: 60px 20px 40px;
  border-top: 1px solid #eee;
}

.footer-map-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-map-container h2 {
  font-size: 1.8rem;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.footer-map-container p {
  color: #666;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.map-embed {
  position: relative;
  width: 100%;
  padding-bottom: 45%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--accent-teal);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .map-embed {
    padding-bottom: 60%;
  }
}

/* =========================================
   5. FLOATING SOCIAL ICONS
   ========================================= */
.social-floating {
  position: fixed;
  right: 20px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.social-icon {
  width: 48px;
  height: 48px;
  background: #111827;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp {
  background-color: #25d366;
}

.email {
  background-color: #ea4335;
}

.phone {
  background-color: #007bff;
}

.social-icon.facebook {
    background-color: #1877F2; /* Official Facebook Blue */
    color: white;
}

@media (max-width: 768px) {
  .social-icon {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .social-floating {
    right: 15px;
    bottom: 80px;
    gap: 10px;
  }
}

/* =========================================
   6. RESPONSIVE NAV FIX (769px+)
   Force visibility for desktop navigation
   ========================================= */
@media (min-width: 769px) {

  /* Hide Mobile Toggle */
  .mobile-toggle {
    display: none !important;
  }

  /* Reset Navigation to Desktop Flex Layout */
  nav#mainNav {
    display: block !important;
    position: static !important;
    height: auto !important;
    width: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  /* Flex Container for Links - TARGET MAIN NAV UL ONLY */
  nav#mainNav>ul {
    display: flex !important;
    flex-direction: row !important;
  }

  /* Reset List Items - TARGET MAIN NAV LI ONLY */
  nav#mainNav>ul>li {
    display: block !important;
    width: auto !important;
    margin-left: 35px !important;
    border: none !important;
    background: transparent !important;
  }

  /* Restore Dropdown Vertical Layout */
  .dropdown-menu {
    display: none;
    flex-direction: column !important;
    position: absolute !important;
    top: 100% !important;
    /* left: 0 is default for absolute if direction is ltr */
    left: 0 !important;
    width: max-content !important;
    min-width: 260px !important;
    /* Narrower width for better fit */
    /* Reduced from 400px */
    background: var(--white) !important;
    box-shadow: var(--shadow-card) !important;
  }

  /* Enable Hover */
  .dropdown:hover .dropdown-menu {
    display: flex !important;
  }

  /* Reset Dropdown Items to Block */
  .dropdown-menu li {
    display: block !important;
    margin-left: 0 !important;
    padding-left: 1rem !important;
    /* Added left padding */
    width: 100% !important;
    border-bottom: none !important;
  }

  /* Reset Links */
  nav#mainNav ul li a {
    display: inline-flex !important;
    /* Flex to keep icon inline */
    align-items: center !important;
    padding: 5px 0 !important;
    color: var(--primary-navy) !important;
    white-space: nowrap !important;
    /* Prevent text wrapping */
  }

  nav#mainNav ul li a:hover {
    color: var(--accent-teal) !important;
  }
}

/* Feature Check Icon */
.point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: rgba(223, 100, 43, 0.1);
  color: var(--brand-orange);
  border-radius: 50%;
  font-size: 0.9rem;
  margin-right: 12px;
  flex-shrink: 0;
}


/* Mission Icon */
.mission-icon i {
  color: var(--brand-orange);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}


/* Note Icon (Check) */
.note-icon {
  display: inline-flex;
  font-size: 1.5rem;
  color: var(--brand-orange);
  margin-right: 0.5rem;
}

/* =========================================
   7. PRODUCT PAGE SPECIFIC FIXES
   ========================================= */
.hero-layout {
  padding-top: clamp(3rem, 5vw, 6rem);
}