/* Root Variables */
:root {
  --primary-color: #012e36;
  --secondary-color: #00272e;
  --accent-color: #06a7ae;
  --light-bg: #f5ffff;
  --dark-text: #102a2c;
  --border-color: #015767;
  --spacing-unit: .5rem;
}

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--light-bg);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin-bottom: var(--spacing-unit);
  color: var(--accent-color);
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: var(--spacing-unit);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* Header */
header {
  background-color: var(--accent-color);
  color: white;
  padding: 1rem 0;
  /* position: sticky; */
  /* top: 0; */
  /* z-index: 1000; */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: 
  "logo order" 
  "nav nav";
}

.header-logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
  grid-area: logo;
}

.header-logo a {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--secondary-color);
}

.header-nav {
  grid-area: nav;
  /* background-color: black; */
  column-span: 2;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  /* align-items: center; */
  justify-content: center;
}

.nav-links a {
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.order-button {
  background-color: var(--secondary-color);
  color: white;
  padding: .3rem 3rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: solid 2px var(--secondary-color);
}

.order-button:hover {
  background-color: var(--accent-color);
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
}

.header-order {
  text-align: center;
  grid-area: order;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  /*padding: var(--spacing-unit);*/
  min-height: calc(100vh - 300px);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 0;
  background: linear-gradient(135deg, #012e36, #00272e);
  /*border-radius: 1rem;*/
  margin-bottom: 3rem;
  margin-left: 0;
  margin-right: 0;
  background-image: url("/images/hero.jpeg");
  background-size: cover;
  background-position: center;
  height: 50vh;
}

.hero-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--light-bg);
  margin-bottom: 2rem;
}

/* Section */
section {
  margin-bottom: 3rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  grid-template-areas: "text image";
}

.section-content.reverse {
  grid-template-areas: "image text";
}

.section-image {
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  grid-area: image;
}

.section-image img {
  width: 100%;
  height: auto;
  display: block;
}

.section-text {
  padding: 1rem;
  grid-area: text;
}

.section-text p {
  margin-bottom: 1rem;
}

.read-more-link {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.read-more-link:hover {
  background-color: var(--accent-color);
  color: white;
}

/* About Section */

#about {
  background-image: url("/images/helen-working.jpeg");
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-section {
  padding: 3rem;
  /* background-color: #fdffff; */
  backdrop-filter: blur(3px) brightness(0.8);
  -webkit-backdrop-filter: blur(3px) brightness(0.8);
  text-shadow: 0px 0px 15px rgba(0, 0, 0, 1);
  color: var(--light-bg);
}

.about-section h2 {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.about-section strong {
  font-weight: 600;
}

/* Icons Grid */
.icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: white;
  border-radius: 0.5rem;
}

.icon-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.icon-item:hover {
  transform: scale(1.1);
}

.icon-placeholder {
  width: 80px;
  height: 80px;
  margin: 0 auto 0.5rem;
  background-color: var(--light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 2px solid var(--border-color);
  overflow: hidden;
}

.icon-placeholder img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.icon-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-color);
}

/* Grid Layouts */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.product-card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 250px;
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

/* Introduction Sections */
.intro-section {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.intro-section p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Faeries Sections */
.faery-section {
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--secondary-color);
}

.faery-section h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.faery-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.faery-image {
  width: 100%;
  height: 300px;
  background-color: var(--light-bg);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
}

.faery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faery-text p {
  margin-bottom: 1rem;
}

/* Order Page */
.order-container {
  max-width: 900px;
  margin: 2rem auto;
}

.order-tabs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  justify-content: center;
}

.order-tab-button {
  padding: 1rem 1.5rem;
  background-color: var(--light-bg);
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  color: var(--accent-color);
}

.order-tab-button.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--accent-color);
}

.order-tab-button:hover:not(.active) {
  background-color: var(--secondary-color);
  color: var(--accent-color);
}

.order-section {
  display: none;
  background-color: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.order-section.active {
  display: block;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.price-table th,
.price-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.price-table th {
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
}

.price-table tr:hover {
  background-color: var(--light-bg);
}

.price-link {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.price-link:hover {
  background-color: #E8C04B;
}

.order-form {
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--accent-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(139, 107, 71, 0.1);
}

.form-submit {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

.form-submit:hover {
  background-color: var(--accent-color);
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 3rem 1rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  color: var(--light-bg);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--light-bg);
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  color: #fff;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .order-button {
    padding: .3rem 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-content,  .section-content.reverse {
    grid-template-columns: 1fr;
    grid-template-areas: 
    "image" 
    "text";
  }

  .faery-content {
    /* grid-template-columns: 1fr; */
    display: block;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .price-table {
    font-size: 0.9rem;
  }

  .price-table th,
  .price-table td {
    padding: 0.5rem;
  }

  .order-tabs {
    gap: 0.5rem;
  }

  .order-tab-button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  

}

@media (max-width: 480px) {
  .nav-links {
    display: block;
    gap: 0.5rem;
    column-count: 2;
    column-gap: 1rem;
    padding: 10px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }

  .icons-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .icon-placeholder {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .about-section {
    padding: 1.5rem;
  }
}

.hero-text {
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  align-content: center;
  padding-bottom: 4rem;
  text-shadow: 0px 0px 15px rgba(0, 0, 0, 1);
}

/* More Images Container */
.more-images-container {
  margin-top: 1.5rem;
  grid-column: 1 / span 2;
}

.button-more-images {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  border: none;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.button-more-images:hover {
  background-color: var(--primary-color);
}

.button-more-images.hide {
  display: none;
  opacity: 0;
  visibility: hidden;
}

.button-more-images.hide.visible {
  display: inline-block;
  opacity: 1;
  visibility: visible;
}

.button-more-images.show.hidden {
  display: none;
  opacity: 0;
  visibility: hidden;
}

.more-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease, margin-bottom 0.5s ease;
  margin-bottom: 0;
}

.more-images.visible {
  max-height: 5000px;
  opacity: 1;
  margin-bottom: 1rem;
}

.more-image {
  width: 100%;
  /* height: 200px; */
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.more-image:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}