/* Everre Static Site Styles */
/* Generated by Everre.co */

@layer theme, base, components, utilities;

@layer components {

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.site-navbar {
  position: relative;
  width: 100%;
  z-index: 1000;
}

.site-navbar.fixed {
  position: fixed;
  top: 0;
  left: 0;
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 40px;
  width: auto;
}

.navbar-site-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.navbar-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.navbar-links a:hover {
  opacity: 0.8;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar-toggle span {
  width: 24px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.3s, opacity 0.3s;
}

/* Open: the three bars fold into a cross. */
.navbar-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .navbar-toggle {
    display: flex;
  }

  .navbar-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--navbar-bg);
    color: var(--navbar-text);
    padding: 0.5rem 1.5rem 1rem;
    display: none;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }

  .navbar-links.open {
    display: flex;
  }

  .navbar-links li {
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .navbar-links li:first-child {
    border-top: 0;
  }
}

/* Main Content */
.page-content {
  flex: 1;
  width: 100%;
}

.page-content.has-fixed-navbar {
  padding-top: var(--navbar-height, 64px);
}

/* Canvas Elements — Scroll Entrance Animations */
.canvas-section {
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.canvas-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card Hover Effects */
.canvas-repeater > :not(template) {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.canvas-repeater > :not(template):hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.canvas-container {
  width: 100%;
}

.canvas-heading {
  margin-bottom: 0.5em;
}

.canvas-text {
  margin-bottom: 1em;
}

.canvas-text:last-child {
  margin-bottom: 0;
}

.canvas-image {
  max-width: 100%;
  height: auto;
  display: block;
}

.canvas-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.canvas-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.canvas-spacer {
  width: 100%;
}

.canvas-divider {
  border: none;
  border-top: 1px solid var(--text-color);
  opacity: 0.2;
  margin: 1rem 0;
}

/* Forms */
.canvas-form {
  width: 100%;
}

.form-title {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.form-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field-full { width: 100%; }
.form-field-half { width: calc(50% - 0.5rem); }
.form-field-third { width: calc(33.333% - 0.667rem); }
.form-field-two-thirds { width: calc(66.666% - 0.333rem); }
.form-field-quarter { width: calc(25% - 0.75rem); }

@media (max-width: 640px) {
  .form-field-half,
  .form-field-third,
  .form-field-two-thirds,
  .form-field-quarter {
    width: 100%;
  }
}

.form-field label {
  font-weight: 500;
  font-size: 0.875rem;
}

.form-field label .required {
  color: #ef4444;
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.field-help {
  font-size: 0.75rem;
  color: #6b7280;
}

.checkbox-group,
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-option,
.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.form-submit-button {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.form-submit-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.form-submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
}

.form-success {
  background-color: #d1fae5;
  color: #065f46;
}

.form-error {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Video */
.canvas-video {
  width: 100%;
  overflow: hidden;
}

.canvas-video iframe,
.canvas-video video {
  display: block;
  border: none;
}

.canvas-video-empty {
  background-color: #f3f4f6;
  padding: 2rem;
  text-align: center;
  color: #6b7280;
}

/* HTML Content Block (blog detail, rich text) */
.html-content {
  line-height: 1.8;
  font-size: 1.0625rem;
}

.html-content h1 { font-size: 2rem; font-weight: 700; margin: 2rem 0 1rem; }
.html-content h2 { font-size: 1.5rem; font-weight: 600; margin: 1.75rem 0 0.75rem; }
.html-content h3 { font-size: 1.25rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.html-content p { margin-bottom: 1rem; }
.html-content img { max-width: 100%; border-radius: 8px; margin: 1.5rem 0; }
.html-content blockquote { border-left: 3px solid var(--primary-color); padding-left: 1rem; margin: 1.5rem 0; color: #6b7280; font-style: italic; }
.html-content ul, .html-content ol { margin: 1rem 0; padding-left: 1.5rem; }
.html-content li { margin-bottom: 0.5rem; }
.html-content pre { background: #1f2937; color: #e5e7eb; padding: 1rem; border-radius: 8px; overflow-x: auto; margin: 1.5rem 0; }
.html-content code { font-family: 'Fira Code', monospace; font-size: 0.875em; }
.html-content a { color: var(--primary-color); text-decoration: underline; }

/* Carousel */
.canvas-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-caption {
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffffff;
}

.carousel-caption.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
  z-index: 10;
}

.carousel-arrow:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.carousel-dot.active,
.carousel-dot:hover {
  background-color: #ffffff;
}

/* Map */
.canvas-map {
  width: 100%;
  overflow: hidden;
}

.map-title {
  padding: 0.75rem 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.map-container {
  width: 100%;
  background-color: #e5e7eb;
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: #6b7280;
}

/* Table */
.canvas-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e5e7eb;
}

.canvas-table th,
.canvas-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
}

.canvas-table th {
  font-weight: 600;
  text-align: left;
}

.canvas-table-empty {
  background-color: #f3f4f6;
  padding: 2rem;
  text-align: center;
  color: #6b7280;
}

/* Repeater */
.canvas-repeater {
  width: 100%;
}

.repeater-grid {
  display: grid;
}

.repeater-list {
  display: flex;
  flex-direction: column;
}

.repeater-flex {
  display: flex;
  flex-wrap: wrap;
}

.repeater-loading {
  padding: 2rem;
  text-align: center;
  color: #6b7280;
}

.repeater-template {
  display: none;
}

/* Shape */
.canvas-shape {
  display: block;
}

.canvas-shape-line {
  width: 100%;
}

/* Footer */
.site-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  background-color: var(--footer-bg, #f9fafb);
  color: var(--footer-text, #6b7280);
  font-size: 0.875rem;
  margin-top: auto;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-weight: 500;
}

.site-footer p {
  margin: 0;
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

}
