/* =========================================
   GLOBAL VARIABLES (HYPERPARAMETERS)
   ========================================= */
:root {
  --primary-color: #111111;
  --secondary-color: #4a4a4a;
  --accent-color: #826649;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --text-main: #333333;
  --font-stack: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-width: 1200px;
  --spacing-section: 4rem 1.5rem;
}

/* =========================================
   CSS RESET & BASE
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-stack);
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-white);
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1,
h2,
h3 {
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

/* =========================================
   LAYOUT / CONTAINERS
   ========================================= */
section {
  padding: var(--spacing-section);
}

.process-grid,
.gallery-grid,
.materials-list {
  max-width: var(--container-width);
  margin: 0 auto;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--bg-white);
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.lang-switch a[aria-current="page"] {
  font-weight: bold;
  color: var(--accent-color);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #000000;
  color: var(--bg-white);
  padding: 2rem;
}

.hero-content h1 {
  color: var(--bg-white);
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-button,
.submit-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--accent-color);
  color: var(--bg-white);
  font-weight: bold;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
}

.cta-button:hover,
.submit-btn:hover {
  background-color: #705c44;
  color: var(--bg-white);
}

/* =========================================
   SECTIONS (ABOUT, MATERIALS, PROCESS)
   ========================================= */
.about-section,
.materials-section {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.materials-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.materials-list li {
  padding: 0.5rem 1.5rem;
  background-color: var(--bg-light);
  border: 1px solid #ddd;
  border-radius: 4px;
}

.process-section {
  background-color: var(--bg-light);
}

/* CSS Grid για τα βήματα παραγωγής */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.process-step {
  background: var(--bg-white);
  padding: 2rem;
  border-top: 4px solid var(--accent-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* =========================================
   GALLERY SECTION
   ========================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

figure {
  background: #000;
  overflow: hidden;
}

figure img {
  width: 100%;
  opacity: 0.8;
  transition:
    opacity 0.3s ease,
    transform 0.5s ease;
}

figure:hover img {
  opacity: 1;
  transform: scale(1.05);
}

figcaption {
  padding: 1rem;
  background: var(--bg-light);
  text-align: center;
  font-weight: bold;
  font-size: 0.9rem;
}

/* =========================================
   CONTACT FORM
   ========================================= */
.contact-section p {
  text-align: center;
  margin-bottom: 2rem;
}

.b2b-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 4px;
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-group input {
  margin-top: 0.3rem;
}

.checkbox-group label {
  font-weight: normal;
  font-size: 0.9rem;
}

.submit-btn {
  width: 100%;
}

.checkbox-group label a {
    text-decoration: underline;
    font-weight: 600;
}

/* =========================================
   Form Success Page
   ========================================= */

/* Success page container layout */
.success-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f4f4f4;
  padding: 20px;
  font-family: Arial, sans-serif;
}

/* Success message box styling */
.success-content {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 500px;
  width: 100%;
  border-top: 4px solid #000000;
}

/* Typography for the success page */
.success-content h1 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #1a1a1a;
  font-size: 24px;
}

.success-content p {
  color: #555555;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Base button styling */
.btn {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 3px;
  font-weight: 600;
  font-size: 14px;
  transition:
    background-color 0.2s ease-in-out,
    color 0.2s ease-in-out;
}

/* Primary button specific styling */
.btn-primary {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

/* Button hover state */
.btn-primary:hover {
  background-color: #333333;
  color: #ffffff;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background-color: var(--primary-color);
  color: #ccc;
  padding: 3rem 2rem 1rem;
  text-align: center;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
}

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

.footer-info,
.footer-links {
  margin-bottom: 2rem;
}

.copyright {
  font-size: 0.8rem;
  border-top: 1px solid #444;
  padding-top: 1rem;
}

/* =========================================
   PRIVACY POLICY PAGE
   ========================================= */
.privacy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.privacy-container section {
  padding: 1rem 0;
}

.privacy-container ul {
  margin-left: 2rem;
  margin-top: 1rem;
}

/* =========================================
   MOBILE NAVIGATION (HAMBURGER MENU)
   ========================================= */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--primary-color);
  transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
  /* show button in small displays */
  .mobile-menu-toggle {
    display: block;
  }

  /* menu location */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* hide by default */
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.3s ease,
      opacity 0.3s ease,
      visibility 0.3s;
    z-index: 1000;
  }

  /* show menu */
  .main-nav.is-active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    gap: 1.5rem;
  }

  /* Animation: convert Hamburger to 'X' when open */
  .mobile-menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}
