:root {
   font-family: 'Montserrat', sans-serif;
    --bg: #4b6573;
    --text: #1f3946;
    --accent: #bc7f5b;
    --cream: #f6f3ef;
    --cream-transparent: rgba(224, 216, 205, 0.7); /* 70% opacity */
    --yellow: #cdbc59;
    --moss: #6D946F;
    --sky:   #A3C6DE;
    --skyop: rgba(163, 198, 222, 0.7); /* 70% opacity */
    --pink: #cfa1af;
    --orange: #e2bb5e;
    --pinky: #d5a284;
    --pinky-transparent: rgba(213, 162, 132, 0.7); /* 70% opacity */
    --soft-sage: #A3C6DE;
    --warm-beige: #E0D8CD;
    --muted-terracotta: #BC7F5B;
    --deep-forest: #4B6573;
    --soft-cream: #F4F1E1;
  }

 
main {
    
}

body {
   background-color: var(--cream);
   
}

/*header {
  display: flex;
  padding: 20px;
  background-color: var(--cream);
  box-sizing: border-box;
}*/

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background-color: var(--cream);
  box-sizing: border-box;
}

/* Left side: menu toggle */
.header-left {
  display: flex;
  align-items: center;
}

/* Right side: search + language toggle */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px; /* gap between search and language toggle */
}

.header-center {
  flex: 0 0 auto;         /* only as wide as needed */
  margin-left: 100px;      /* pushes it to the right of the menu toggle */
  max-width: 500px;       /* limits the width of the search bar */
  width: 100%;

}

/* Group menu + language toggle */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px; /* spacing between ☰ and ENG/CYM */
  margin-right: 40px;
}

.nav-controls.no-search {
  margin-left: auto;   /* pushes the group to the right */
  gap: 10px;
}

/* Reset old absolute positioning */
#language-toggle {
  display: flex;
  gap: 0.5rem;
}

/* Match styles of menu toggle */
#language-toggle button {
  background-color: var(--cream);
  color: var(--orange);
  border: 1px solid var(--muted-terracotta);
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
  cursor: url("cursors/star-favicon.png") 32 32, pointer;
  transition: background-color 0.2s ease;
}

#language-toggle button:hover{
  background-color: var(--muted-terracotta);
  color: var(--cream);
}

#search {
  max-width: 500px;       /* Maximum width */
  width: 100%;            /* Shrinks on smaller screens */
  padding: 8px 15px;
  font-size: 13px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--orange);
  border: 1px solid var(--muted-terracotta);
  border-radius: 4px;
  box-sizing: border-box; 
  cursor: url("cursors/star-favicon.png") 32 32, pointer;   
}

#search::placeholder {
  font-family: 'Montserrat', sans-serif; /* Match placeholder font */
  font-weight: 400;                        /* Slightly lighter for placeholder */
  color: var(--orange);           /* Optional lighter color */
}

/* Toggle button */
#menuToggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 2000;
  padding: 10px 15px;
  font-size: 30px;
  background-color: var(--cream);
  color: var(--bg);
  border: none;
  border-radius: 5px;
  cursor: url("cursors/star-favicon.png") 32 32, pointer;
}

/* When modal is open, hide the menu toggle */
body.modal-open #menuToggle {
  display: none;
}

/* Sidebar slides down from top */
.sidebar {
  position: fixed;
  top: -100px;            /* Hidden above viewport */
  left: 0;
  width: 100%;            /* Full width */
  background-color: var(--cream);
  padding: 20px 0;
  transition: top 0.3s ease;
  z-index: 1000;
}

/* Show sidebar when active */
.sidebar.active {
  top: 0px;              /* Just below header (adjust as needed) */
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;  /* adjust size */
  height: 40px; /* adjust size */
  pointer-events: none; /* so it doesn’t block clicks */
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out; /* smooth movement */
  z-index: 9999;
}

/* Hide the default cursor */
body {
  cursor: none;
}

/* Menu items */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;   /* Center menu items */
  gap: 40px;
}

.menu-item {
  cursor: url("cursors/star-favicon.png") 32 32, pointer;
  color: var(--text);
  font-size: 15px;
}

.menu-item a {
  text-decoration: none;
  color: var(--text);
  display: block;
  padding: 10px 15px;
  font-size: 15px;
  font-family: 'Montserrat', sans-serif;
  cursor: url("cursors/star-favicon.png") 32 32, pointer;
}


.menu-item:hover {
  background-color: var(--cream);
  color: var(--cream);
}


/* Push grid when sidebar visible (optional) */
#swatchGrid {
  margin-left: 0; /* Default when sidebar hidden */
  transition: margin-left 0.3s ease;
}

.sidebar.active ~ #swatchGrid {
  margin-left: 30px; /* Match sidebar width */
}


.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  padding: 20px;
}

.swatch {
  cursor: url("cursors/star-favicon.png") 32 32, pointer;
  overflow: hidden;
}

.swatch img {
  width: 100%;
  height: auto;
  display: block;
}

.swatch-title {
  text-align: right;  /* Align the number to the right */
  margin-top: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-terracotta);
  font-family: 'Montserrat', sans-serif;
}

.modal-title {
  font-size: 14px;
  font-weight: 400;
  font-family: 'Montserrat', sans-serif;
  color: var(--cream);
  text-align: left;
}

.swatch-id {
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: var(--cream);
  margin-bottom: 8px; /* Space between ID and image */
}

.modal {
  display: none;
  position: fixed; top:0; left:0; right:0; bottom:0;
  background: var(--skyop);
  justify-content: center;
  align-items: center;
}

.modal.active { display: flex; }

#close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: var(--bg);
  cursor: url("cursors/star-favicon.png") 32 32, pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  z-index: 1200;
}

#close:hover {
  color: var(--accent);  /* Changes to your accent color on hover */
  transform: scale(1.2); /* Slight zoom effect */
}

/* carousel images */
.carousel {
  background: var(--text);
  padding: 20px;
  max-width: 600px;
  text-align: center;
  margin: 0 auto; /* center carousel */
  overflow: hidden; /* prevent extra */
}

.carousel img {
  max-width: 100%;
  max-height: 70vh;      /* scale down if too tall (70% of viewport height) */
  height: auto;          /* maintain*/
  display: none;
  object-fit: contain;
}

.carousel img.active {
  display: block;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--cream);
  border: none;
  padding: 10px 15px;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  cursor: url("cursors/star-favicon.png") 32 32, pointer;
}
.carousel button:hover {
  opacity: 1;
}

#prev {
  left: 10px; /* Position left arrow on the left */
}

#next {
  right: 10px; /* Position right arrow on the right */
}

/* about section*/
.about {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
  background-color: var(--cream);
  min-height: calc(100vh - 80px); /* fills page minus header */
  box-sizing: border-box;
}

.about-container {
  max-width: 800px;
  background-color: var(--cream);
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.about-container h1 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--muted-terracotta);
}

.about-container p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--bg);
}

.about-container p:last-child {
  margin-bottom: 0;
}

/*contact section*/

.contact {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
  background-color: var(--cream);
  min-height: calc(100vh - 80px); /* fill page minus header */
  box-sizing: border-box;
}

.contact-container {
  max-width: 700px;
  background-color: var(--cream);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contact-container h1 {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--muted-terracotta);
}

.contact-container p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--bg);
}



.site-footer {
  text-align: center;
  padding: 20px;
  background-color: var(--cream); /* same as page background */
  color: var(--muted-terracotta);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  border-top: 2px solid var(--deep-forest); /* subtle separation */
  margin-top: 40px;
}

.amoreywebdesign {
  text-decoration: none;
  color: var(--muted-terracotta);
  
}

/* Responsive media queries */

/* Tablets */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  #search {
    width: 200px;
    }


  #language-toggle button {
    padding: 6px 10px;
    font-size: 11px;
  }

  
  .carousel button {
    padding: 8px 12px;
    font-size: 20px;
  }
}


/* Mobile phones */
@media (max-width: 500px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .swatch-title {
    font-size: 10px;
  }

  #search {
    max-width: 90%;  /* Shrink even more on tiny screens */
    
  }

  /* Sidebar full screen on mobile */
  .sidebar {
    width: 100%;
    left: -100%;
  }

  .sidebar.active {
    left: 0;
  }

  #menuToggle {
    font-size: 26px;
    padding: 8px 12px;
  }

  menu a {
    font-size: 13px;
  }

  .carousel {
    max-width: 90%;  /* almost full width on mobile */
    padding: 15px;
  }

  .carousel img{
    max-width: 90%; 
    padding: 15px;
  }

  .carousel button {
    padding: 6px 10px;
    font-size: 18px;
  }

  .site-footer p {
    font-size: 8px ;
  }

   /* Stack language buttons vertically if needed */
  #language-toggle {
    flex-direction: column;
    gap: 5px;
  }

  #language-toggle button {
    padding: 5px 8px;
    font-size: 10px;
  }

}

/*smaller screens*/

@media (max-width: 350px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  #language-toggle button {
    padding: 4px 6px;
    font-size: 9px;
  }

  .carousel button {
    padding: 5px 8px;
    font-size: 16px;
  }
}