:root {
  --bg: #edf1f4;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #5e6875;
  --primary: #c75a1f;
  --primary-dark: #9b4316;
  --accent: #334155;
  --accent-light: #d8e0e8;
  --secondary: #6b7280;
  --border: #dbe1e8;
  --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg) 0%, #e4eaf0 100%);
  line-height: 1.6;
  min-height: 100vh;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 0.75rem;
  z-index: 2000;
  background: #111827;
  color: #ffffff;
  padding: 0.55rem 0.8rem;
  border-radius: 0.45rem;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0.75rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(199, 90, 31, 0.55);
  outline-offset: 2px;
}

/* Public header */
.public-header {
  background: linear-gradient(135deg, #1f2933 0%, #374151 58%, #c75a1f 100%);
  position: relative;
  overflow: hidden;
}

.hero {
  background: linear-gradient(135deg, #1f2933 0%, #374151 58%, #c75a1f 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(199, 90, 31, 0.2) 0%, transparent 72%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.28);
}

.hero-orb-main {
  width: 320px;
  height: 320px;
  right: -80px;
  bottom: -60px;
  background: radial-gradient(circle at 30% 30%, #df7a45 0%, #c75a1f 72%);
}

.hero-orb-small {
  width: 140px;
  height: 140px;
  right: 230px;
  bottom: 20px;
  background: radial-gradient(circle at 30% 30%, #b0b7c3 0%, #6b7280 72%);
}

.hero-orb-mid {
  width: 210px;
  height: 210px;
  right: 120px;
  bottom: -120px;
  background: radial-gradient(circle at 30% 30%, #5f6f82 0%, #334155 72%);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  position: relative;
  z-index: 10;
}

/* Mascot Styles */
.mascot-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  cursor: pointer;
  animation: mascotEntrance 0.8s ease-out 2s forwards;
  opacity: 0;
  max-width: 160px;
}

.mascot {
  width: 140px;
  height: 180px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
  animation: mascotIdle 3s ease-in-out infinite;
  transform-origin: center bottom;
}

.mascot-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  padding: 0.85rem 1.1rem;
  border-radius: 0.6rem;
  font-weight: 600;
  font-size: 0.85rem;
  pointer-events: none;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
  max-width: 150px;
  text-align: center;
  word-wrap: break-word;
  line-height: 1.3;
}

.mascot-tooltip::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #ee5a6f;
}

.mascot-wrapper:hover .mascot-tooltip {
  transform: translateX(-50%) scale(1);
  animation: tooltipBounce 0.4s ease;
}

.mascot-wrapper:hover .mascot {
  animation: mascotWave 0.6s ease-in-out;
}

@keyframes mascotEntrance {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mascotIdle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-2deg);
  }
  75% {
    transform: rotate(2deg);
  }
}

@keyframes mascotWave {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(8deg);
  }
}

@keyframes tooltipBounce {
  0% {
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translateX(-50%) scale(1.1);
  }
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}

/* Floating Phone Button (Mobile Only) */
.floating-phone-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c75a1f 0%, #a0481a 100%);
  color: white;
  font-size: 28px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(199, 90, 31, 0.35), 0 0 0 0 rgba(199, 90, 31, 0.1);
  z-index: 99;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: phoneButtonPulse 2s ease-in-out infinite;
  border: none;
  line-height: 1;
}

.floating-phone-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 12px 32px rgba(199, 90, 31, 0.4), 0 0 0 8px rgba(199, 90, 31, 0.15);
}

.floating-phone-btn:active {
  transform: scale(0.95);
}

.phone-icon {
  display: block;
  line-height: 1;
}

@keyframes phoneButtonPulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(199, 90, 31, 0.35), 0 0 0 0 rgba(199, 90, 31, 0.1);
  }
  50% {
    box-shadow: 0 8px 24px rgba(199, 90, 31, 0.3), 0 0 0 8px rgba(199, 90, 31, 0.05);
  }
}

.logo {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:hover::after {
  width: 100%;
}

.hero-content {
  padding: 4.5rem 0 4rem;
  position: relative;
  z-index: 5;
  max-width: 760px;
}

.hero-text {
  max-width: 700px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #e55a3d 100%);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f56543 0%, #d94a2f 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 119, 89, 0.3);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: transparent;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover::before {
  left: 100%;
}

.admin-page .btn-secondary {
  border-color: #c75a1f;
  color: #9b4316;
  background: #fff7ed;
}

.admin-page .btn-secondary:hover {
  color: #ffffff;
  background: #c75a1f;
  border-color: #c75a1f;
}

/* Sections */
.section {
  padding: 4.2rem 0;
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(146, 64, 14, 0.06) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.section::after {
  content: "";
  position: absolute;
  bottom: -150px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.05) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.section-soft {
  background: #e8edf2;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section.materials-section {
  background-color: #1f2933;
  background: linear-gradient(135deg, #1f2933 0%, #374151 58%, #c75a1f 100%);
}

.section.materials-section .section-heading h2 {
  color: #ffffff;
}

/* Decorative Circles */
.circle-decoration {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.95;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.22);
}

.circle-lg {
  width: 400px;
  height: 400px;
}

.circle-md {
  width: 250px;
  height: 250px;
}

.circle-sm {
  width: 150px;
  height: 150px;
}

.circle-primary {
  background: radial-gradient(circle at 30% 30%, #df7a45 0%, var(--primary) 72%);
}

.circle-accent {
  background: radial-gradient(circle at 30% 30%, #5a6778 0%, var(--accent) 72%);
}

.circle-secondary {
  background: radial-gradient(circle at 30% 30%, #9ca3af 0%, var(--secondary) 72%);
}

.section-heading {
  margin-bottom: 1.8rem;
}

.section-kicker {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.section-heading h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
  color: #111827;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Grids */
.cards-grid,
.reasons-grid,
.materials-grid {
  display: grid;
  gap: 1rem;
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.reasons-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.materials-grid {
  grid-template-columns: 1fr;
}

/* Search Bar at Top */
.search-header-container {
  background: transparent;
  padding: 1rem 0;
  border-bottom: none;
  position: relative;
  z-index: 100;
}

.search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
}

.search-bar-header {
  width: 100%;
  padding: 0.9rem 3.3rem 0.9rem 1.2rem;
  font-size: 1rem;
  border: 2px solid #cbd5e1;
  border-radius: 0.8rem;
  background: #fff;
  color: #1f2937;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-bar-header::placeholder {
  color: #9ca3af;
}

.search-bar-header:focus {
  outline: none;
  border-color: #c75a1f;
  box-shadow: 0 0 0 3px rgba(199, 90, 31, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-trigger {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.search-trigger:hover,
.search-trigger:focus {
  opacity: 1;
  outline: none;
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.4rem;
  padding: 0.5rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 200;
  width: 100%;
}

.search-suggestions.active {
  display: block;
  animation: slideDown 0.2s ease;
}

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

.search-suggestions li {
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.search-suggestions li:last-child {
  border-bottom: none;
}

.search-no-results {
  padding: 0.8rem 1rem;
  color: #6b7280;
  font-weight: 600;
  text-align: center;
  display: block;
}

.search-suggestions li:hover,
.search-suggestions li:focus {
  background-color: #f0f7ff;
  outline: none;
}

.suggestion-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
}

.suggestion-info {
  flex: 1;
  min-width: 0;
}

.suggestion-info strong {
  color: #1f2937;
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-info small {
  color: #9ca3af;
  display: block;
  font-size: 0.85rem;
}

.material-card.search-target-highlight {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
}

.material-card.search-target-highlight .material-media img {
  transform: scale(1.05);
}

/* Search Bar in Materials Section */
.card,
.reason-item,
.material-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.1rem;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card::before,
.reason-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 1rem 1rem 0 0;
}

.card h3,
.reason-item h3,
.material-card h3 {
  margin-bottom: 0.55rem;
  color: var(--text);
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.card-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.card-link:hover::after {
  width: 100%;
}

.card:hover,
.reason-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card p,
.reason-item p,
.material-card .details,
#contact p {
  color: var(--muted);
}

/* Material Cards */
.material-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 1rem;
}

.material-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #eef3fb 0%, #f0f4f8 100%);
  position: relative;
}

.material-media::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(37, 99, 235, 0.05) 100%);
  pointer-events: none;
}

.material-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.material-card:hover .material-media img {
  transform: scale(1.05);
}

.material-content h3 {
  margin-bottom: 0.4rem;
}

.material-card .type {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.material-card .price {
  margin-top: 0.6rem;
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.material-card {
  transition: all 0.4s ease;
}

.material-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
}

/* Contact Section */
.section-contact {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 50%, #3d4556 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section-contact::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  position: relative;
  z-index: 2;
}

.contact-left-column {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.contact-right-column {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.section-contact .section-kicker {
  color: #fbbf24;
}

.section-contact h2 {
  margin-bottom: 0.6rem;
}

.section-contact p {
  color: #e5e7eb;
}

.contact-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
}

.contact-info-card {
  padding: 1rem 1.1rem;
  max-width: 560px;
}

.contact-info-card p {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  font-size: 0.98rem;
}

.contact-info-card a,
.contact-info-card span {
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-info-card a {
  color: #fbbf24;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.contact-info-card a:hover {
  opacity: 0.85;
}

.contact-card::before {
  background: linear-gradient(135deg, rgba(255, 119, 89, 0.2) 0%, transparent 100%);
}

.contact-card p + p {
  margin-top: 0.6rem;
}

.contact-card strong {
  color: #fff;
}

.contact-form-card {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  max-width: 640px;
}

.contact-form-title {
  margin: 0 0 0.8rem;
  color: #ffffff;
  font-size: 1.1rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  color: #f8fafc;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.78rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #ffffff;
  color: #1f2933;
  font: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color-scheme: light;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #64748b;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(199, 90, 31, 0.35);
  border-color: #c75a1f;
}

.contact-form-actions {
  margin-top: 0.35rem;
}

.contact-form-actions .btn {
  width: 100%;
  font-size: 1rem;
  padding-block: 0.8rem;
}

.contact-form-status {
  min-height: 1.2rem;
  margin: 0.1rem 0 0;
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-form-status.is-success {
  color: #86efac;
}

.contact-form-status.is-error {
  color: #fecaca;
}

.contact-honeypot {
  display: none !important;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1f2933 0%, #2a3642 100%);
  color: #c6d0da;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  text-align: center;
  font-size: 0.92rem;
}

/* Legal Pages */
.legal-header {
  background: linear-gradient(135deg, #1f2933 0%, #374151 58%, #c75a1f 100%);
  color: white;
  padding: 3rem 0 2rem;
  margin-bottom: 2rem;
}

.legal-header h1 {
  margin-top: 1rem;
  font-size: 2rem;
}

.legal-content {
  max-width: 900px;
  line-height: 1.8;
  margin: 2rem auto;
  padding-bottom: 3rem;
}

.legal-content section {
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: #1f2933;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.legal-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.legal-content li {
  margin-bottom: 0.6rem;
  color: #4b5563;
}

.legal-content a {
  color: #c75a1f;
  text-decoration: none;
  font-weight: 600;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1f2933 0%, #2a3642 100%);
  color: white;
  padding: 1.5rem;
  z-index: 1000;
  display: none;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.4s ease-out;
}

.cookie-banner.show {
  display: flex;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.cookie-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-text a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  gap: 0.8rem;
  white-space: nowrap;
}

.cookie-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 0.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.cookie-btn-accept {
  background: #c75a1f;
  color: white;
}

.cookie-btn-accept:hover {
  background: #a0481a;
  transform: translateY(-2px);
}

.cookie-btn-decline {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.3);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-heading,
.card,
.reason-item,
.material-card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.reason-item:nth-child(1) { animation-delay: 0.1s; }
.reason-item:nth-child(2) { animation-delay: 0.2s; }
.reason-item:nth-child(3) { animation-delay: 0.3s; }
.reason-item:nth-child(4) { animation-delay: 0.4s; }
.material-card:nth-child(1) { animation-delay: 0.1s; }
.material-card:nth-child(2) { animation-delay: 0.2s; }
.material-card:nth-child(3) { animation-delay: 0.3s; }

/* Media Queries - Mobile First Approach */

/* Small Mobile: 560px and below */
@media (max-width: 560px) {
  .container {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .logo {
    font-size: 1rem;
  }

  .nav-links {
    width: 100%;
    gap: 0.6rem 1rem;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .section-heading h2 {
    font-size: 1.45rem;
  }

  .material-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .material-media {
    max-width: 100%;
  }

  .contact-card,
  .material-card,
  .card,
  .reason-item {
    padding: 0.95rem;
  }

  .hero::before,
  .hero::after {
    opacity: 0.5;
  }

  .hero-orb-main {
    width: 210px;
    height: 210px;
    right: -85px;
    bottom: -60px;
  }

  .hero-orb-small {
    width: 90px;
    height: 90px;
    right: 115px;
    bottom: 18px;
  }

  .hero-orb-mid {
    width: 130px;
    height: 130px;
    right: 35px;
    bottom: -82px;
  }

  .mascot-wrapper {
    display: none;
  }

  /* Mobile Phone Button - Small Phones */
  .floating-phone-btn {
    display: flex;
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 16px;
    right: 12px;
  }

  .search-header-container {
    padding: 0.75rem 0;
  }

  .search-wrapper {
    padding: 0 0.75rem;
  }

  .search-bar-header {
    padding: 0.7rem 3rem 0.7rem 1rem;
    font-size: 0.95rem;
  }

  .search-trigger {
    right: 1.2rem;
    width: 1.85rem;
    height: 1.85rem;
    font-size: 1rem;
  }

  .search-suggestions {
    max-height: 300px;
  }

  .search-suggestions li {
    padding: 0.65rem 1rem;
  }

  /* Mobile Phone Button */
  .floating-phone-btn {
    display: flex;
  }

  .mascot-wrapper {
    display: none;
  }

  /* Cookie Banner Mobile */
  .cookie-banner {
    padding: 1rem;
  }

  .cookie-content {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-text {
    font-size: 0.85rem;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    width: 100%;
  }
}

/* Tablet: 561px to 760px */
@media (max-width: 760px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-content {
    padding-top: 3rem;
  }

  .material-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .material-media {
    max-width: 220px;
  }

  .hero-orb-main {
    width: 250px;
    height: 250px;
    right: -90px;
    bottom: -70px;
  }

  .hero-orb-small {
    width: 110px;
    height: 110px;
    right: 155px;
    bottom: 22px;
  }

  .hero-orb-mid {
    width: 170px;
    height: 170px;
    right: 62px;
    bottom: -100px;
  }

  /* Mobile Phone Button */
  .floating-phone-btn {
    display: flex;
  }

  .mascot-wrapper {
    display: none;
  }
}

/* Medium: 761px to 900px */
@media (max-width: 900px) {
  .section {
    padding: 3.4rem 0;
  }

  .hero-content {
    padding: 3.5rem 0 3.2rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .material-card {
    grid-template-columns: 100px 1fr;
    gap: 0.8rem;
  }
}

/* Desktop: 861px and above */
@media (min-width: 860px) {
  .contact-wrap {
    grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
    gap: 1.6rem;
    align-items: stretch;
  }

  .contact-left-column,
  .contact-right-column {
    height: 100%;
  }

  .contact-info-card,
  .contact-form-card {
    max-width: none;
  }
}

/* Large Desktop: 900px and above */
@media (min-width: 900px) {
  .materials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Admin Page */
.admin-page {
  background: linear-gradient(135deg, #e9eff4 0%, #dfe7ef 100%);
}

.admin-header {
  background: linear-gradient(135deg, #1f2933 0%, #2e3c4a 100%);
  color: #fff;
  padding: 2.4rem 0;
}

.admin-header h1 {
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.admin-header p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.admin-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.admin-header-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.admin-main {
  padding: 2rem 0 3rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1.15rem;
}

.admin-card-full {
  grid-column: 1 / -1;
}

.admin-card h2 {
  margin: 0 0 0.8rem;
  color: #111827;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-card-head h2 {
  margin: 0;
}

.admin-help {
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.admin-form {
  display: grid;
  gap: 0.8rem;
}

.admin-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: #1f2937;
}

.admin-form input {
  width: 100%;
  padding: 0.66rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.6rem;
  font: inherit;
}

.admin-form input:focus {
  outline: 2px solid rgba(199, 90, 31, 0.22);
  border-color: #c75a1f;
}

.admin-form-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  padding: 0.7rem 0.55rem;
  vertical-align: top;
}

.admin-table th {
  color: #334155;
  font-size: 0.9rem;
}

.admin-table td p {
  margin-top: 0.3rem;
  color: var(--muted);
}

.admin-image-cell {
  font-size: 0.85rem;
  color: #475569;
}

.admin-table-image {
  display: block;
  width: 72px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 0.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  background: #f8fafc;
}

.admin-image-preview {
  display: block;
  width: 160px;
  height: 110px;
  object-fit: contain;
  margin-top: 0.45rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: #f8fafc;
}

.admin-actions-cell {
  white-space: nowrap;
}

.admin-message-cell {
  max-width: 360px;
  white-space: normal;
  color: #334155;
}

.admin-link {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-weight: 700;
  cursor: pointer;
  margin-right: 0.55rem;
}

.admin-link.danger {
  color: #dc2626;
}

@media (min-width: 980px) {
  .admin-grid {
    grid-template-columns: 0.9fr 1.35fr;
  }
}

@media (max-width: 760px) {
  .admin-header {
    padding: 1.5rem 0;
  }

  .admin-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-main {
    padding: 1rem 0 1.8rem;
  }

  .admin-card {
    padding: 0.9rem;
  }

  .admin-card h2 {
    font-size: 1.1rem;
  }

  .admin-header-actions,
  .admin-form-actions {
    width: 100%;
  }

  .admin-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  #export-messages-btn {
    width: 100%;
  }

  .admin-header-actions .btn,
  .admin-form-actions .btn {
    width: 100%;
  }

  .admin-table {
    min-width: 0;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table tr {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.45rem 0.65rem;
    margin-bottom: 0.6rem;
  }

  .admin-table td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.85rem;
    text-align: right;
    border-bottom: 1px dashed #e2e8f0;
    padding: 0.5rem 0;
  }

  .admin-table td:first-child {
    display: block;
    text-align: left;
  }

  .admin-table td:first-child::before {
    content: "Produit";
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    margin-bottom: 0.25rem;
  }

  .admin-table td:not([colspan]):nth-child(2)::before,
  .admin-table td:not([colspan]):nth-child(3)::before,
  .admin-table td:not([colspan]):nth-child(4)::before,
  .admin-table td:not([colspan]):nth-child(5)::before {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
  }

  .admin-table td:not([colspan]):nth-child(2)::before {
    content: "Type";
  }

  .admin-table td:not([colspan]):nth-child(3)::before {
    content: "Prix";
  }

  .admin-table td:not([colspan]):nth-child(4)::before {
    content: "Image";
  }

  .admin-table td:not([colspan]):nth-child(5)::before {
    content: "Actions";
  }

  #messages-table td:first-child::before {
    content: "Date";
  }

  #messages-table td:not([colspan]):nth-child(2)::before {
    content: "Nom";
  }

  #messages-table td:not([colspan]):nth-child(3)::before {
    content: "Email";
  }

  #messages-table td:not([colspan]):nth-child(4)::before {
    content: "Téléphone";
  }

  #messages-table td:not([colspan]):nth-child(5)::before {
    content: "Message";
  }

  #messages-table td:not([colspan]):nth-child(6)::before {
    content: "Actions";
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
  }

  .admin-table td:last-child {
    border-bottom: none;
  }

  .admin-table td[colspan] {
    text-align: center;
    display: block;
    border-bottom: none;
    padding: 0.8rem 0.2rem;
  }

  .admin-image-cell {
    word-break: break-word;
  }

  .admin-actions-cell {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    white-space: normal;
  }

  .admin-link {
    margin-right: 0;
  }
}

/* Final mobile overrides to prevent breakpoint conflicts */
@media (max-width: 560px) {
  .hero-content {
    max-width: 100%;
    padding: 2.4rem 0 2rem;
  }

  .hero-actions {
    width: 100%;
    gap: 0.6rem;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1.1rem;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .stat-item {
    min-width: 0;
    padding: 0.75rem 0.65rem;
    border-radius: 0.8rem;
  }

  .stat-item:nth-child(3) {
    grid-column: 1 / -1;
  }

  .stat-number {
    font-size: 1.55rem;
    margin-bottom: 0.22rem;
    line-height: 1;
  }

  .stat-label {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .hero-orb-main {
    width: 150px;
    height: 150px;
    right: -60px;
    bottom: -38px;
    opacity: 0.35;
  }

  .hero-orb-small,
  .hero-orb-mid {
    display: none;
  }

  .mascot-wrapper {
    width: 72px;
    max-width: 72px;
    bottom: 12px;
    right: 8px;
  }

  .mascot {
    width: 72px;
    height: 92px;
  }

  .mascot-tooltip {
    max-width: 110px;
    font-size: 0.72rem;
    padding: 0.5rem 0.65rem;
  }

  .contact-info-card p {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .contact-info-card a,
  .contact-info-card span {
    text-align: left;
  }
}
