/* =======================================================
   RESET STYLES
   Reset default browser margin/padding and set box-sizing
======================================================= */
* {
  margin: 0;                /* Remove default margin */
  padding: 0;               /* Remove default padding */
  box-sizing: border-box;   /* Include padding & border in element's width/height */
}
html {
  font-size: 80%;           /* Set base font size for scaling rem units */
  scroll-padding-top: 100px; /* Offset for fixed navbar when using anchor links */
  overflow-x: hidden;       /* Prevent horizontal scroll */
}

/* =======================================================
   BODY STYLING
   Background image, typography, overlay
======================================================= */
body {
  font-family: "Times New Roman", Times, serif; /* Serif font for elegance */
  line-height: 1.7;          /* Comfortable text spacing */
  color: #2b0d0d;            /* Dark reddish-brown text color */
  margin-top: 0;
  text-align: center;         /* Center all direct text by default */
  background-color: #ffe6e6;  /* Light red fallback background */
  background-image: url('herad_images/coffeebackground.jpeg'); /* Background image */
  background-repeat: no-repeat; /* Prevent repeating */
  background-size: cover;       /* Cover entire screen */
  background-position: center;  /* Center the image */
  background-attachment: fixed; /* Fixed when scrolling */
  position: relative;          /* Position relative for pseudo-elements */
  min-height: 100vh;           /* Ensure body fills viewport height */
}

/* Overlay to dim the background image */
body::before {
  content: "";  
  position: fixed;              
  top: 0; left: 0;             
  width: 100%; height: 100%;   
  background-color: rgba(126, 69, 69, 0.55); /* Semi-transparent red overlay */
  z-index: -1;                  /* Behind all content */
}

/* =================== NAVIGATION BAR =================== */
nav {
  background-image: url("herad_images/Herad-vegetables.jpeg"); /* Navbar background image */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: darken; /* Darken effect for overlay */
  background-color: rgba(7,7,7,0.4); /* Fallback dark overlay */
  height: 130px;
  display: flex;              
  align-items: center;         /* Vertically center content */
  justify-content: space-between; /* Space between logo and menu */
  box-shadow: 0 2px 5px black;  /* Subtle shadow under navbar */
  color: white;
  padding: 0 20px;
  position: fixed;             /* Fix navbar on top */
  top: 0;
  left: 0;
  width: 100vw;                /* Full width of viewport */
  z-index: 1000;               /* Ensure navbar is on top */
}

/* Logo */
.logo img {
  width: 220px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* =================== NAV MENU =================== */
.menu_list ul {
  font-size: 15px;
  list-style: none;
  display: flex;
  gap: 0px;          /* Keep links tight */
  margin: 0;
  padding: 0;
}

/* Menu links */
.menu_list ul li a {
  color: white;
  background-color: #692727;          /* Soft pink background */
  border-right: 1px solid #0c0b0b;    /* Divider between links */
  text-decoration: none;
  font-weight: 900;
  padding: 15px 10px;
  display: block;
  transition: background-color 0.3s, color 0.3s;
  white-space: nowrap;                /* Prevents line breaks */
}

/* Hover effect for menu links */
.menu_list ul li a:hover {
  background-color: #f3e9e9;          /* Darker maroon */
  color: black;
  border-radius: 4px;
}

/* Dropdown container */
.menu_list ul li.dropdown {
  position: relative;
}

/* =================== NAV MENU =================== */
.menu_list ul {
  font-size: 15px;
  list-style: none;
  display: flex;
  gap: 0px;                            /* Keep links tight */
  margin: 0;
  padding: 0;
}

/* Menu links */
.menu_list ul li a {
  color: white;
  background-color: #692727;           /* Deep maroon background */
  border-right: 1px solid #0c0b0b;     /* Divider between links */
  text-decoration: none;
  font-weight: 900;
  padding: 15px 10px;
  display: block;
  transition: background-color 0.3s, color 0.3s;
  white-space: nowrap;                 /* Prevent text wrapping */
}

/* Hover effect for menu links */
.menu_list ul li a:hover {
  background-color: #f3e9e9;           /* Soft pink background on hover */
  color: black;
  border-radius: 4px;
}

/* Dropdown container */
.menu_list ul li.dropdown {
  position: relative;                  /* Needed for absolute dropdown positioning */
}

/* ================================
   DESKTOP DROPDOWN MENU STYLING
   ================================ */
.dropdown-content {
  display: none;                       /* Hidden by default until hover */
  position: absolute;                  /* Position below parent link */
  top: 100%;                           /* Just below the parent */
  left: 0;                             /* Align left with parent */
  background-color: #660911;           /* Deep maroon tone */
  min-width: 400px;                    /* Two-column width */
  max-height: 80vh;                    /* Prevent overflow */
  overflow-y: auto;                    /* Scroll if content exceeds max height */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Soft shadow for depth */
  border-radius: 4px;                  /* Rounded corners */
  z-index: 1001;                       /* On top of other elements */
  padding: 10px 15px;                  /* Internal spacing */
  column-count: 2;                     /* Split links into two columns */
  column-gap: 20px;                    /* Space between columns */
}

/* Show dropdown on hover (desktop only) */
.menu_list ul li.dropdown:hover .dropdown-content {
  display: block;
}

/* ================================
   DROPDOWN LINK STYLING
   ================================ */
.dropdown-content a {
  display: block;                      /* Each link on its own line */
  padding: 8px 10px;                   /* Comfortable spacing */
  line-height: 1.2;                    /* Readable line height */
  color: white;                        /* White text for contrast */
  background-color: #692727;           /* Match top menu color */
  text-decoration: none;               /* Remove underline */
  font-weight: 700;                    /* Bold for emphasis */
  border-bottom: 1px solid #0c0b0b;    /* Separator lines for structure */
  border-radius: 3px;                  /* Slight rounding for links */
  break-inside: avoid;                 /* Prevent column break in links */
  transition: background-color 0.3s, color 0.3s;
}

/* Hover effect for dropdown links */
.dropdown-content a:hover {
  background-color: #f3e9e9;           /* Light hover background */
  color: black;                        /* Dark text for contrast */
}

/* ================================
   TABLET RESPONSIVE ADJUSTMENTS
   ================================ */
@media (max-width: 1024px) {
  .dropdown-content {
    position: relative;                /* Flow naturally below parent */
    min-width: 100%;                   /* Full width */
    column-count: 1;                   /* Single column for tablets */
    max-height: none;                  /* Allow full dropdown height */
    overflow-y: visible;               /* No scroll */
    box-shadow: none;                  /* Remove desktop shadow */
    background-color: #692727;         /* Match nav bar color */
  }

  .dropdown-content a {
    border: none;                      /* Clean look for tablet */
    padding: 10px 15px;                /* Slightly more space for touch */
  }
}

/* ================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ================================ */
@media (max-width: 768px) {
  .dropdown-content {
    position: static;                  /* Flow in mobile layout */
    display: none;                     /* Hidden until clicked */
    background-color: #692727;         /* Match menu background */
    margin: 5px 0;                     /* Small vertical spacing */
    border-radius: 4px;                /* Rounded edges */
    padding: 5px 0;                    /* Compact padding */
    column-count: 1;                   /* Single column layout */
  }

  /* Show dropdown when parent is active (clicked) */
  .menu_list ul li.active .dropdown-content { 
    display: block; 
  }

  /* Mobile dropdown links */
  .dropdown-content a {
    color: white;                      /* White text on maroon */
    padding: 12px 20px;                /* Larger tap area for fingers */
    display: block;
    line-height: 1.3;                  /* Improve readability */
    border: none;                      /* Remove dividers for mobile */
  }

  .dropdown-content a:hover {
    background-color: #f3e9e9;         /* Hover effect for mobile */
    color: black;
  }
}

/* =================== HERO SECTION =================== */
.hero-section {
  background: url('herad_images/hero-background.jpeg') no-repeat center/cover;
  min-height: 70vh;                  
  display: flex;
  justify-content: center;           
  align-items: center;               
  padding: 0 20px;                   
  text-align: center;
  color: #fff;
  position: relative;
  box-shadow: inset 0 0 0 1000px rgba(43, 13, 13, 0.45); 
  border-radius: 20px;
  margin: 30px auto;
  max-width: 1200px;                 
  width: 95%;                        
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  background-color: #c77d83;
  color: white;
  padding: 12px 30px;
  font-size: 2rem;
  font-weight: 700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(79, 18, 18, 0.4);
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #692727;
}

/* =================== ABOUT & SLOGAN SECTIONS =================== */
.about-section,
.slogan-section {
  font-size: 1.6rem;
  width: 80%;                       
  max-width: 1000px;
  margin-top: 150px;
  padding: 30px 40px;
  border-radius: 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-left: 12px solid #a53c3c;
  border-right: 12px solid #a53c3c;
  background-color: rgba(253, 240, 240, 0.7);
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Headings */
.about-section h3 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 25px;
  color: rgb(133, 32, 32);
}

.about-section p {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-top: 10px;
  color: #4d0b0b;
}

.about-section strong {
  color: rgb(133, 32, 32);
  font-weight: 700;
}

/* Generic section container */
section {
  padding: 40px 10%;                 
  margin: 20px auto;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  border-left: 6px solid transparent;
}

/* =================== CARDS ROW =================== */
.cards-row {
  display: flex;
  flex-wrap: wrap;                   
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  margin: 40px 0;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.card-section {
  font-size: 1.2rem;
  flex: 0 1 calc(40% - 20px);       
  min-width: 300px;
  aspect-ratio: 1 / 1;               
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1), 0 4px 4px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  border-left: 10px solid rgb(128, 45, 45);
  border-right: 10px solid rgb(128, 45, 45);
  background-color: rgba(230, 192, 192, 0.7);
  color: #080000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
}

.card-section:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 16px 28px rgba(0,0,0,0.15), 0 8px 8px rgba(0,0,0,0.06);
}

/* =================== SLOGAN SECTION =================== */
.slogan-section {
  padding: 50px 30px;
  margin: 40px auto;
  text-align: center;
  border-radius: 25px;
  width: 70%;
  max-width: 1000px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  background: rgba(253, 240, 240, 0.7);
  border-left: 12px solid #a53c3c;
  border-right: 12px solid #a53c3c;
}

.slogan-section p {
  font-size: 16px;
  font-weight: 600;
  color: #af0f0f;
  line-height: 1.5;
}

.slogan-section h5 {
  font-size: 2rem;
  margin-top: 15px;
  color: #700a0d;
  font-weight: 700;
}

/* =================== RESPONSIVE MEDIA QUERIES =================== */

/* Tablet screens */
@media (max-width: 1024px) {
  .hero-section { padding: 0 15px; }
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1.3rem; }
  .btn-primary { font-size: 1.8rem; padding: 10px 20px; }

  .cards-row { flex-direction: column; gap: 20px; }
  .card-section { flex: 1 1 100%; min-width: auto; aspect-ratio: auto; }

  .about-section, .slogan-section { width: 90%; padding: 20px; }
}

/* Mobile phones */
@media (max-width: 768px) {
  .hero-section h1 { font-size: 2rem; }
  .hero-section p { font-size: 1.2rem; }
  .btn-primary { font-size: 1.5rem; padding: 8px 16px; }

  .cards-row { gap: 15px; }
  .card-section { padding: 15px; }

  .about-section, .slogan-section { padding: 15px; font-size: 1.2rem; }
}

/* Extra small devices */
@media (max-width: 480px) {
  .hero-section h1 { font-size: 1.5rem; }
  .hero-section p { font-size: 1rem; }
  .btn-primary { font-size: 1.2rem; padding: 6px 12px; }

  .cards-row { gap: 10px; }
  .card-section { padding: 10px; }

  .about-section, .slogan-section { padding: 10px; font-size: 1rem; }
}

/* ====================== FOOTER =================== */
/* =================== FOOTER =================== */
.footer {
  background-color: #330505; /* Dark red background */
  color: #ffffff;            /* White text */
  padding: 20px;             /* Space inside footer */
  font-family: Arial, sans-serif; /* Clean font */
  text-align: center;        /* Center content */
}

.footer-content {
  display: flex;             /* Use flexbox */
  flex-wrap: wrap;           /* Wrap on smaller screens */
  justify-content: center;   /* Center horizontally */
  gap: 20px;                 /* Space between items */
}

.footer-logo-container img {
  max-width: 120px;          /* Limit logo width */
  height: auto;              /* Maintain aspect ratio */
  margin: 0 auto 15px auto;  /* Center and add bottom spacing */
  display: block;            /* Block element */
}

.footer-sections {
  display: flex;             /* Flex container for sections */
  flex-wrap: wrap;           /* Wrap on smaller screens */
  justify-content: center;   /* Center horizontally */
  gap: 30px;                 /* Space between sections */
}

.footer-section h3 {
  font-size: 14px;           /* Small heading */
  text-transform: uppercase; /* Uppercase text */
  margin-bottom: 8px;        /* Spacing below */
}

.footer-section h4 {
  font-size: 13px;           /* Smaller subheading */
  margin-bottom: 5px;        /* Spacing below */
}

.footer-section p {
  font-size: 13px;           /* Paragraph size */
  margin: 3px 0;             /* Vertical spacing */
  color: #cccccc;            /* Light gray text */
}

.footer-section a {
  color: #0e5ab1;            /* Blue link color */
  text-decoration: underline; /* Underlined */
  font-weight: bold;         /* Bold links */
}

.footer-section a:hover {
  color: #ffffff;            /* White on hover */
  text-decoration: none;     /* Remove underline on hover */
}

/* Social & payment icons */
.social-icons, .payment-methods-icons {
  display: flex;             /* Flex container */
  gap: 10px;                 /* Space between icons */
  justify-content: center;   /* Center horizontally */
  align-items: center;       /* Center vertically */
  flex-wrap: wrap;           /* Wrap if needed */
  margin-top: 5px;           /* Small top margin */
}

.social-icons img, .payment-methods-icons img {
  width: 30px;               /* Icon width */
  height: 30px;              /* Icon height */
  border-radius: 50%;        /* Rounded icons */
  padding: 5px;              /* Inner spacing */
  background-color: #5f1315; /* Dark background */
  transition: transform 0.3s, background-color 0.3s; /* Smooth hover */
}

.social-icons img:hover, .payment-methods-icons img:hover {
  transform: scale(1.1);     /* Slightly enlarge on hover */
  background-color: #727070; /* Change background on hover */
}

.footer-bottom {
  margin-top: 15px;          /* Space above */
  padding-top: 10px;         /* Padding top */
  border-top: 1px solid #444; /* Top border */
  font-size: 13px;           /* Text size */
  display: flex;             /* Flex container */
  justify-content: center;   /* Center items */
  gap: 10px;                 /* Space between links */
  flex-wrap: wrap;           /* Wrap on small screens */
}

.footer-bottom a {
  color: #cccccc;            /* Light gray links */
  text-decoration: none;     /* Remove underline */
}

.footer-bottom a:hover {
  color: #ffffff;            /* White on hover */
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;  /* Stack vertically */
    align-items: center;     /* Center items */
  }
  .footer-sections {
    flex-direction: column;  /* Stack sections vertically */
    gap: 20px;               /* Space between sections */
  }
}

@media (max-width: 480px) {
  .footer-sections {
    gap: 15px;               /* Reduce gap on small screens */
    text-align: center;      /* Center text */
  }
  .footer-section h3, .footer-section h4, .footer-section p {
    font-size: 12px;         /* Smaller text for mobile */
  }
}

/* =================== HAMBURGER MENU =================== */
.hamburger {
  display: none;                
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  display: block;
  height: 4px;
  background-color: #eee5e5;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =================== MOBILE NAV =================== */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .menu_list ul {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100vw;
    background-color: rgba(50, 0, 0, 0.95);
    padding: 10px 0;
    z-index: 1099;
  }
  .menu_list ul.active { display: flex; }

  .menu_list ul li a { color: white; padding: 12px 20px; font-size: 16px; text-align: left; border-right: none; }

  .dropdown-content { position: static; display: none; background-color: #692727; margin: 5px 0; border-radius: 4px; padding: 5px 0; }
  .menu_list ul li.active .dropdown-content { display: block; }
  .dropdown-content a { color: white; padding-left: 30px; display: block; }
}
