/* =========================
   Global Reset & Variables
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Color Palette (Palette 2) */
:root {
  --canopy-green: #014038;
  --meadow-mist: #96baa0;
  --sky-bloom: #bdd4da;
  --sunlit-petal: #f0c06d;
  --cloudy-gray: #f7f7f7;
  --text-green: #00231c;
}

/* =========================
   Base Styles
========================= */
body {
  font-family: Calibri, Arial, sans-serif;
  color: var(--text-green);
  background-color: var(--cloudy-gray);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: var(--canopy-green);
  font-weight: 600;
}

/* =========================
   Navbar
========================= */

nav {
  background-color: var(--cloudy-gray);
  border-bottom: 2px solid var(--meadow-mist);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 20px;
  position: relative;
  z-index: 1001;
}

nav .logo {
  width: 55px;
  margin-right: auto;
}

/* =========================
   NAVIGATION
========================= */

.nav-links {
  display: flex;
  gap: 20px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--canopy-green);
}

/* =========================
   Shared Page Sections
========================= */
.section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section h2 {
  font-family: Arial, sans-serif;
  color: var(--canopy-green);
  margin-bottom: 20px;
}

/* =========================
   Main Container
========================= */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* =========================
   Hero Section
========================= */
.hero {
  position: relative;
  margin-bottom: 50px;
}

.hero img {
  width: 100%;
  border-radius: 12px;
}

.hero h1 {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(1, 64, 56, 0.85);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
}

/* =========================
   Gallery Section
========================= */
.grid {
  margin-bottom: 50px;
}

.section-title {
  font-family: Arial, sans-serif;
  margin-bottom: 20px;
  color: var(--canopy-green);
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
}

.gallery-item button {
  margin-top: auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* =========================
   Actions Section
========================= */
.actions {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

.contact-form {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.contact-form h2 {
  margin-bottom: 15px;
  color: var(--canopy-green);
}

label {
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--meadow-mist);
  font-family: Calibri, sans-serif;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--canopy-green);
}

/* Buttons */
button {
  background-color: var(--canopy-green);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

button:hover {
  background-color: var(--sunlit-petal);
  color: var(--text-green);
}

/* Subscribe Box */
.actions > div:last-child {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =========================
   Gallery Page
========================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.gallery-grid div {
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--cloudy-gray);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid div:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* =========================
   About Us Page
========================= */
#about p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-green);
}

/* =========================
   Custom Order Page
========================= */
.custom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.custom-grid div {
  background-color: var(--cloudy-gray);
  padding: 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.custom-grid img {
  border-radius: 10px;
  margin-bottom: 15px;
}

.custom-grid button {
  width: 100%;
}

/* =========================
   CART MODAL
========================= */
.cart-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.cart-content {
  background: #ffffff;
  padding: 25px;
  border-radius: 14px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cart-content h2 {
  margin-bottom: 15px;
  color: var(--canopy-green);
}

#cart-items {
  list-style: none;
  margin-bottom: 20px;
}

#cart-items li {
  padding: 8px 0;
  border-bottom: 1px solid var(--meadow-mist);
}

.cart-actions {
  display: flex;
  gap: 10px;
}

.cart-actions button {
  flex: 1;
}

/* =========================
   Footer
========================= */

/* =========================
   Shared Footer Styling
========================= */
footer {
  background-color: var(--canopy-green);
  color: #ffffff;
  padding: 30px 20px;
  margin-top: 60px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

footer p {
  margin: 0;
  font-size: 0.95rem;
}

footer .social-icons {
  display: flex;
  gap: 18px;
}

footer .social-icons a {
  color: #ffffff;
  font-size: 18px;
  transition: color 0.3s ease;
}

footer .social-icons a:hover {
  color: var(--sunlit-petal);
}

/* =========================
   SUBSCRIBE (FOOTER)
========================= */
.subscribe-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subscribe-field {
  position: relative;
}

.subscribe-box input {
  width: 260px;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--meadow-mist);
}

.subscribe-box input.invalid {
  border-color: #d9534f;
}

.tooltip {
  position: absolute;
  bottom: -32px;
  left: 0;
  background-color: #d9534f;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
  display: none;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 12px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #d9534f transparent;
}

/* Show tooltip */
.subscribe-field.show-tooltip .tooltip {
  display: block;
}

/* =========================
   Responsive Design
========================= */

/* Mobile Override (Vertical Stack) */

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  footer .social-icons {
    flex-direction: column;
    gap: 10px;
  }
}

/* Home page */

/* Mobile Navigation (Hamburger Style) */

@media (max-width: 768px) {
  nav {
    flex-wrap: nowrap;
    /* justify-content: space-between; */
    position: relative;
  }

  /* nav a {
    display: none;
  }

  nav::after {
    content: "\2630";
    font-size: 26px;
    cursor: pointer;
    color: var(--canopy-green);
  } */
}

/* =========================
   MOBILE NAV
========================= */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .nav-links.active {
    display: flex;
  }
}

/* Hero Section Optimization */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.1rem;
    padding: 8px 14px;
  }
}

/* Gallery → 2 Vertical Images (Mobile Grid) */

@media (max-width: 768px) {
  .cards {
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
  }
}

/* Contact Form & Subscribe → Vertical Stack */

@media (max-width: 768px) {
  .actions {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .subscribe-box {
    flex-direction: column;
    gap: 8px;
  }

  .subscribe-box input {
    width: 100%;
  }
}

/* Footer Social Icons → Vertical Layout */

@media (max-width: 768px) {
  footer .social-icons {
    flex-direction: column;
    gap: 10px;
  }
}

/* Small Enhancements for Touch UX */

@media (max-width: 768px) {
  button {
    width: 100%;
  }

  input,
  textarea {
    font-size: 16px;
  }
}
