/* Le Cœur de Chocolat — company brochure site, careers page and Henri's webmail (Kiss of Death).
   Ported from the Flatsome WordPress build: same colours, type, layout and copy; plain CSS instead of the theme. */

:root {
  --primary: #906f54;
  --secondary: #d26e4b;
  --brown-dark: #594230;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Lato, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

h1, h2, h3, h4 {
  font-family: Lato, sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.5em;
  color: inherit;
}
h1 { font-size: 2em; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.25em; }
h4 { font-size: 1.1em; }
p { margin: 0 0 1.3em; }
ul { margin: 0 0 1.3em; padding-left: 1.3em; }
li { margin-bottom: 0.3em; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.uppercase { text-transform: uppercase; }

/* Header: logo centred, nav below. Transparent over the dark pages (home, careers). */
.site-header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 10px 16px 0;
}
.site-header.transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  color: #fff;
}
.site-header .logo img {
  margin: 0 auto;
  max-height: 96px;
  width: auto;
}
.site-nav {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 26px;
}
.site-nav a {
  display: inline-block;
  padding: 8px 0;
  font-weight: 700;
  font-size: 0.8em;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
  opacity: 0.85;
}
.site-nav a:hover, .site-nav a.active { opacity: 1; }
@media (max-width: 549px) {
  .site-header .logo img { max-height: 70px; }
}

/* Home: one full-bleed section over the shop photo with a dark overlay */
.hero {
  position: relative;
  min-height: 890px;
  padding: 51px 16px;
  background: #1a120c url('assets/lcc-homepage.png') center center / cover no-repeat;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.605);
}
.hero .container { position: relative; }
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 15px;
}
.gap-top-hero { padding-top: 185px; }
.gap-94 { padding-top: 94px; }
.gap-30 { padding-top: 30px; }
@media (min-width: 550px) {
  .hero { padding: 30px 16px; }
  .gap-top-hero { padding-top: 94px; }
}

.intro { text-align: center; }

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  text-align: center;
}
@media (min-width: 850px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}
.feature img { width: 60px; margin: 0 auto 12px; }
.feature h3 { font-size: 1.1em; margin: 0; }

.about { text-align: center; max-width: 900px; margin: 0 auto; }

.collection { text-align: center; }
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 15px;
  text-align: center;
}
@media (min-width: 850px) {
  .products { grid-template-columns: repeat(4, 1fr); }
}
.product img { width: 74%; margin: 0 auto 10px; }
.product p { margin: 0; }

.join { text-align: center; max-width: 900px; margin: 0 auto; }
.join ul { display: inline-block; text-align: left; }

.button {
  display: inline-block;
  padding: 0 1.2em;
  line-height: 2.4em;
  font-weight: 700;
  font-size: 0.97em;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 10px;
  margin-top: 10px;
}
.button:hover { filter: brightness(0.9); }

.site-footer {
  background: #000;
  color: #fff;
  text-align: center;
  font-size: 0.9em;
  padding: 7px 16px;
}

/* Careers: solid brand-brown page */
.careers-page {
  background: var(--primary);
  color: #fff;
  padding: 194px 16px;
}
@media (min-width: 550px) {
  .careers-page { padding: 224px 16px; }
}
.careers-page .container { max-width: 1080px; }
.careers-page h1 { margin-top: 1.5em; }
.careers-page h2 { margin-top: 1.5em; }

/* Email log in box (log-in/) */
.login-page {
  background: #fff;
  padding: 30px 16px;
  text-align: center;
}
.custom-login-form-container {
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  margin: 0 auto;
  text-align: left;
}
.custom-login-logo {
  display: block;
  margin: 0 auto 20px;
  max-width: 100px;
}
.custom-login-input-group { margin-bottom: 15px; }
.custom-login-input-group label { display: block; margin-bottom: 4px; }
.custom-login-input-group input {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 16px;
  font-family: inherit;
}
.custom-login-input-group input:focus {
  outline: none;
  border-color: var(--primary);
}
.submit input {
  background-color: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
  font-family: inherit;
}
.submit input:hover { background-color: #005fa3; }
.login-error {
  color: #333;
  margin: 0 0 20px;
}
.logout-link {
  display: inline-block;
  margin-top: 20px;
  color: #334862;
}

/* Henri's inbox (shown on log-in/ after a correct login) */
.inbox-page {
  display: none;
  background: var(--primary);
  padding: 30px 16px;
  text-align: center;
}
.inbox-page.open { display: block; }
.inbox {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  font-family: Arial, sans-serif;
  color: #000;
}
.inbox header, .email-content header {
  padding: 20px 30px;
  background: var(--primary);
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #005bb5;
  gap: 20px;
}
.inbox header h1 {
  margin: 0;
  font-size: 1.5rem;
  color: #fff;
}
.actions { display: flex; gap: 15px; }
.actions button, .email-content button {
  background: var(--brown-dark);
  border: none;
  border-radius: 4px;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #fff;
  font-family: inherit;
  transition: background 0.3s;
}
.actions button:hover, .email-content button:hover { background: #005bb5; }
.table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.inbox table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}
.inbox thead { background: #f4f6f8; border-bottom: 2px solid #ddd; }
.inbox thead th {
  padding: 15px;
  text-align: left;
  font-size: 0.9rem;
  color: #555;
  text-transform: uppercase;
  white-space: nowrap;
}
.inbox tbody tr {
  transition: background 0.3s;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}
.inbox tbody tr:hover { background: #f9fbfd; }
.inbox tbody td {
  padding: 15px;
  font-size: 0.95rem;
  color: #333;
  white-space: nowrap;
}
.email-content {
  display: none;
  width: 100%;
  max-width: 1000px;
  margin: 30px auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  font-family: Arial, sans-serif;
  color: #000;
}
.email-content.open { display: block; }
.email-content header {
  background: none;
  padding: 0 0 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}
.email-content h2 { margin: 0; font-size: 1.25rem; color: #000; }
.email-content p { margin: 15px 0; font-size: 1rem; color: #444; line-height: 1.8; white-space: pre-line; }
.email-content a { color: #334862; }
