:root {
  --primary: #1a73e8;
  --accent: #f5a623;
  --text: #1c1e21;
  --text-muted: #5b6270;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --border: #e2e6ec;
  --radius: 10px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--primary);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.brand span {
  color: var(--primary);
}

.site-nav a {
  margin-left: 24px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--primary);
}

.hero {
  background: linear-gradient(135deg, var(--bg-alt), var(--bg));
  padding: 64px 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 12px;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.hero .industry-tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #1c1e21;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-image-placeholder {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

section {
  padding: 56px 0;
}

.trust-strip {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.95rem;
}

.trust-list li::before {
  content: "\2713";
  color: var(--primary);
  font-weight: 700;
}

.service-info {
  margin: 16px 0 0;
  color: var(--text-muted);
}

.service-info strong {
  color: var(--text);
}

section h2 {
  font-size: 1.8rem;
  margin: 0 0 8px;
}

.section-intro {
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 640px;
}

.about-section {
  background: var(--bg-alt);
}

.about-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.about-photo {
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.about-text {
  flex: 1;
  min-width: 0;
}

.about-text h2 {
  margin-top: 0;
}

@media (max-width: 640px) {
  .about-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.section-more {
  margin-top: 28px;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.reference-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.reference-card .media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}

.reference-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-card .media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.reference-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reference-body h3 {
  margin: 0;
  font-size: 1.1rem;
}

.reference-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.reference-meta strong {
  color: var(--text);
}

.carousel {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track img {
  flex: 0 0 100%;
  scroll-snap-align: start;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.carousel-btn.prev {
  left: 8px;
}

.carousel-btn.next {
  right: 8px;
}

.carousel-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.carousel-dots {
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
}

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

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.contact-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-card a {
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer a {
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
}

.admin-body {
  background: var(--bg-alt);
  min-height: 100vh;
}

.admin-header {
  background: var(--text);
  color: #fff;
  padding: 16px 0;
}

.admin-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header a,
.admin-header button {
  color: #fff;
}

.logout-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.admin-main {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.panel h2 {
  margin-top: 0;
}

.panel h3 {
  font-size: 1rem;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.optional-tag {
  font-weight: 400;
  color: var(--text-muted);
}

.field input[type='text'],
.field input[type='email'],
.field input[type='password'],
.field input[type='color'],
.field textarea,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn.secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.danger {
  background: #d93025;
}

.btn.small {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.reference-admin-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 18px 18px;
  margin-bottom: 16px;
}

.reference-admin-card > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-weight: 600;
}

.reference-admin-card > summary::-webkit-details-marker {
  display: none;
}

.reference-admin-card > summary::before {
  content: '+';
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.reference-admin-card[open] > summary::before {
  content: '\2212';
}

.reference-admin-card .summary-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
}

.reference-admin-card .summary-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-admin-card .thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.reference-admin-card .thumbs figure {
  margin: 0;
  position: relative;
}

.reference-admin-card .thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.thumbs figure form {
  position: absolute;
  top: -6px;
  right: -6px;
}

.thumbs figure button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #d93025;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.flash {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-weight: 600;
}

.flash.success {
  background: #e6f4ea;
  color: #1e7e34;
}

.flash.error {
  background: #fce8e6;
  color: #c5221f;
}

.help-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: -8px;
  margin-bottom: 16px;
}

details.add-reference {
  margin-top: 12px;
}

details.add-reference summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
}

.login-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.login-card h1 {
  font-size: 1.4rem;
  margin-top: 0;
}
