/* Reform UK Style Variables */
:root {
  --reform-blue: #00B1DA;
  --reform-dark: #132538;
  --reform-white: #fff;
  --reform-black: #111;
  --reform-blue-light: #33c5e8;
  --reform-blue-lighter: #e6f7fc;
  --reform-dark-lighter: #1e3a52;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--reform-black);
  margin: 0;
  padding: 0;
}

/* Header */
.header {
  background: var(--reform-white);
  border-bottom: 3px solid var(--reform-blue);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 0 32px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.header-flex {
  gap: 24px;
}

.logo-image {
  width: 56px;
  height: 56px;
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.1) rotate(5deg);
}

.logo-title {
  font-size: 2em;
  font-weight: 900;
  color: var(--reform-blue);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.header-right {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.header a {
  color: var(--reform-black);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1em;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.header a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.header a:hover::before {
  left: 100%;
}

.header a.active, .header a:hover {
  background: linear-gradient(135deg, var(--reform-blue) 0%, var(--reform-blue-light) 100%);
  color: var(--reform-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,177,218,0.3);
}

/* Accordion Buttons */
.accordion {
  background: linear-gradient(135deg, var(--reform-blue) 0%, var(--reform-blue-light) 100%);
  color: var(--reform-white);
  cursor: pointer;
  padding: 18px 24px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  border-radius: 12px 12px 0 0;
  font-size: 1.1em;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 24px;
  margin-bottom: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.accordion::after {
  content: '▼';
  float: right;
  transition: transform 0.3s ease;
}

.accordion.active::after {
  transform: rotate(180deg);
}

.accordion.active, .accordion:hover {
  background: linear-gradient(135deg, var(--reform-dark) 0%, var(--reform-dark-lighter) 100%);
  color: var(--reform-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Accordion Panel */
.panel {
  padding: 0 24px 18px 24px;
  background: var(--reform-white);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  border-radius: 0 0 12px 12px;
  border: 1px solid #e0e0e0;
  border-top: none;
  margin-bottom: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.panel.open {
  max-height: 1000px;
  padding: 24px;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel p {
  line-height: 1.8;
  margin-bottom: 16px;
  color: #333;
}

/* Content Section */
.content {
  padding: 32px 24px;
  border-bottom: 1px solid #e0e0e0;
  border-top: 1px solid #e0e0e0;
  margin: 32px auto;
  font-family: 'Open Sans', Arial, sans-serif;
  max-width: 800px;
  background: var(--reform-white);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.content h1 {
  color: var(--reform-dark);
  margin-bottom: 20px;
  font-size: 2.5em;
  text-align: center;
  background: linear-gradient(135deg, var(--reform-blue) 0%, var(--reform-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Full-width Content Section */
.content-fullwidth {
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(0,177,218,0.05) 0%, rgba(19,37,56,0.05) 100%);
  padding: 48px 24px;
}

.content-fullwidth:hover {
  transform: none;
  box-shadow: none;
}

/* Spacer utility */
.spacer {
  height: 32px;
}

/* Emileo image section */
.emileo {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px;
}

.emileo-img {
  max-height: 50vh;
  max-width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 4px solid var(--reform-white);
}

.emileo-img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 50px rgba(0,177,218,0.3);
}

/* Contact form styling */
.contact-form {
  max-width: 400px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--reform-dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 4px;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  box-sizing: border-box;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1em;
  transition: all 0.3s ease;
  background: var(--reform-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--reform-blue);
  box-shadow: 0 0 0 3px rgba(0,177,218,0.1);
  transform: translateY(-2px);
}

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

.contact-form button {
  margin-top: 16px;
  width: 100%;
  cursor: pointer;
}

.contact-form a {
  color: var(--reform-blue);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-form a:hover {
  color: var(--reform-dark);
  text-decoration: underline;
}

/* Footer */
.footer {
  margin-top: auto;
  text-align: center;
  padding: 32px 0;
  background: linear-gradient(135deg, var(--reform-dark) 0%, var(--reform-dark-lighter) 100%);
  color: var(--reform-white);
  font-size: 1.1em;
  letter-spacing: 0.5px;
  border-top: 4px solid var(--reform-blue);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.footer p {
  margin: 0;
  font-weight: 300;
}

/* Responsive adjustments for mobile */
@media screen and (max-width: 700px) {
  .content {
    padding: 16px 2vw;
    margin: 12px 0;
    max-width: 100vw;
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    font-size: 1em;
  }
  .content:hover {
    transform: none;
  }
  .content-fullwidth {
    padding-left: 0;
    padding-right: 0;
    padding: 32px 16px;
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 8px;
    min-height: unset;
    width: 100vw;
    box-sizing: border-box;
    position: relative;
  }
  .header-flex {
    gap: 12px;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .logo-image {
    width: 40px;
    height: 40px;
  }
  .logo-title {
    font-size: 1.2em;
  }
  .header-right {
    gap: 8px;
    width: 100%;
    justify-content: flex-start;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: 0;
    margin-top: 8px;
  }
  .header a {
    display: inline-block;
    width: auto;
    margin-right: 8px;
    margin-bottom: 0;
    text-align: center;
    font-size: 0.9em;
    padding: 10px 14px;
  }
  .emileo {
    padding: 16px;
    margin-bottom: 16px;
  }
  .emileo-img {
    height: auto;
    max-width: 90vw;
    max-height: 30vh;
    border-radius: 16px;
  }
  
  .footer {
    padding: 16px 4vw;
    font-size: 1em;
    border-radius: 0;
  }
  .contact-form {
    max-width: 100vw;
    padding: 0 2vw;
  }
  input, textarea {
    font-size: 1em;
  }
  .accordion {
    border-radius: 8px 8px 0 0;
    font-size: 1em;
    padding: 14px 18px;
  }
  .panel {
    border-radius: 0 0 8px 8px;
  }
}
