:root {
  --bg: #f4efe7;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: #ffffff;
  --surface: #efe6da;
  --text: #1f2430;
  --muted: #5e6573;
  --accent: #c2572f;
  --accent-dark: #7a2f16;
  --line: rgba(31, 36, 48, 0.1);
  --shadow: 0 18px 40px rgba(41, 29, 17, 0.12);
}

body[data-theme="dark"] {
  --bg: #18161b;
  --panel: rgba(28, 31, 39, 0.86);
  --panel-strong: #222630;
  --surface: #2b303c;
  --text: #f2f3f7;
  --muted: #b8bfcc;
  --accent: #f29c62;
  --accent-dark: #f8bf98;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(194, 87, 47, 0.18), transparent 28%),
    radial-gradient(circle at right 20%, rgba(242, 156, 98, 0.18), transparent 18%),
    linear-gradient(180deg, var(--bg), #f8f6f2 42%, var(--bg));
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.app-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.glass,
.card,
.admin-panel,
.auth-card,
.modal-card {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.95rem;
  border-radius: 24px;
  margin: 1rem 0 1.5rem;
}

.maintenance-banner {
  padding: 1rem 1.2rem;
  border-radius: 24px;
  margin: 0.75rem 0 1rem;
  display: grid;
  gap: 0.35rem;
}

.maintenance-screen {
  min-height: calc(100vh - 3rem);
  display: grid;
  place-items: center;
}

.maintenance-panel {
  width: min(680px, 100%);
  padding: 2rem;
  border-radius: 32px;
  text-align: center;
  display: grid;
  gap: 1rem;
}

.maintenance-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-family: "Space Grotesk", sans-serif;
}

.maintenance-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-logo {
  width: 98px;
  height: 98px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.brand strong,
.section-title h2,
.hero-copy h1,
.timeline-card h3,
.blog-card h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand strong {
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.icon {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon svg {
  width: 100%;
  height: 100%;
}

.nav-links a,
.ghost-button,
.button,
.small-button {
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.ghost-button:hover,
.button:hover,
.small-button:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.hero-copy,
.hero-card,
.section-card,
.timeline-card,
.blog-card,
.dashboard-section,
.stat-card {
  border-radius: 28px;
  padding: 1.5rem;
}

.hero-copy {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 87, 47, 0.22), transparent 68%);
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 0.95;
  margin: 0.4rem 0 0.8rem;
}

.hero-copy p {
  max-width: 60ch;
  color: var(--muted);
}

.hero-actions,
.chips,
.social-row,
.toolbar,
.pagination,
.dashboard-actions,
.inline-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button,
.ghost-button,
.small-button {
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

.button {
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 1.2rem;
  font-weight: 700;
}

.ghost-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.85rem 1.2rem;
  font-weight: 700;
}

.small-button {
  background: var(--surface);
  color: var(--text);
  padding: 0.55rem 0.9rem;
  font-weight: 700;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.profile-image {
  aspect-ratio: 1 / 1.08;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.5), transparent 46%),
    linear-gradient(180deg, rgba(194, 87, 47, 0.14), rgba(242, 156, 98, 0.22));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
}

.profile-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 4rem;
  color: var(--accent-dark);
  font-weight: 800;
}

.hero-hire-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 24px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.hero-hire-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.hero-hire-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.hero-hire-card input,
.hero-hire-card textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  padding: 0.85rem 0.95rem;
  box-sizing: border-box;
}

.hero-hire-card textarea {
  min-height: 110px;
  resize: vertical;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat-card {
  background: var(--panel-strong);
}

.section {
  margin-top: 1.5rem;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--muted);
  margin: 0.3rem 0 0;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chips span {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 600;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.timeline-card {
  position: relative;
  padding-left: 3rem;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 1.55rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(194, 87, 47, 0.12);
}

.timeline-card p,
.muted {
  color: var(--muted);
}

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

.gallery-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.35rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.gallery-strip::-webkit-scrollbar {
  height: 10px;
}

.gallery-strip::-webkit-scrollbar-thumb {
  background: rgba(31, 36, 48, 0.18);
  border-radius: 999px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 220px;
  cursor: pointer;
}

.gallery-strip .gallery-item {
  flex: 0 0 min(320px, 82vw);
  min-height: 260px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item .overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 1rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.blog-list {
  display: grid;
  gap: 1rem;
}

.blog-grid,
.blog-search-card {
  margin-top: 1rem;
}

.blog-card {
  display: grid;
  gap: 1rem;
}

.blog-service-card {
  align-content: start;
}

.blog-image {
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
}

.blog-meta {
  display: flex;
  gap: 0.75rem;
  color: var(--muted);
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.sidebar-card,
.section-card {
  border-radius: 28px;
  padding: 1.4rem;
}

.service-card {
  display: grid;
  gap: 0.75rem;
}

.service-icon,
.contact-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.service-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 16px;
  background: var(--surface);
  justify-content: center;
  color: var(--accent);
}

.contact-card strong {
  font-size: 1.02rem;
}

.sidebar-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-row {
  display: flex;
  gap: 0.75rem;
}

.search-row input,
.field input,
.field textarea,
.field select,
.editor-surface {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  padding: 0.95rem 1rem;
}

body[data-theme="dark"] .search-row input,
body[data-theme="dark"] .field input,
body[data-theme="dark"] .field textarea,
body[data-theme="dark"] .field select,
body[data-theme="dark"] .hero-hire-card input,
body[data-theme="dark"] .hero-hire-card textarea,
body[data-theme="dark"] .editor-surface {
  background: rgba(18, 20, 26, 0.6);
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-weight: 700;
}

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

.admin-overlay,
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 14, 0.52);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 30;
}

.auth-card,
.modal-card {
  width: min(560px, 100%);
  border-radius: 28px;
  padding: 1.5rem;
}

.modal-card.wide {
  width: min(1024px, 100%);
  max-height: min(88vh, 920px);
  overflow-y: auto;
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background:
    linear-gradient(135deg, rgba(194, 87, 47, 0.14), rgba(255, 255, 255, 0.72)),
    var(--panel);
  padding: 1.2rem 1.2rem 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  border-radius: 22px 22px 0 0;
}

.modal-body {
  display: grid;
  gap: 1.25rem;
}

.modal-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.modal-title-wrap {
  display: grid;
  gap: 0.6rem;
  max-width: 760px;
}

.modal-kicker {
  margin-top: 0.1rem;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
}

.modal-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
  font-family: "Space Grotesk", sans-serif;
  max-width: 14ch;
  text-wrap: balance;
}

.modal-meta {
  gap: 0.5rem;
}

.modal-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
}

.modal-close-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 0.8rem 1rem;
  min-width: 96px;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(31, 36, 48, 0.08);
}

body[data-theme="dark"] .modal-header {
  background:
    linear-gradient(135deg, rgba(242, 156, 98, 0.18), rgba(28, 31, 39, 0.94)),
    var(--panel);
}

body[data-theme="dark"] .modal-meta span,
body[data-theme="dark"] .modal-close-button {
  background: rgba(18, 20, 26, 0.78);
}

.comment-list {
  display: grid;
  gap: 1rem;
}

.comment-card {
  padding: 1rem;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.modal-article-image,
.modal-article-content {
  background: #ffffff;
  border-radius: 22px;
}

.modal-article-content {
  padding: 1.2rem;
}

body[data-theme="dark"] .blog-image,
body[data-theme="dark"] .comment-card,
body[data-theme="dark"] .modal-article-image,
body[data-theme="dark"] .modal-article-content {
  background: #ffffff;
  color: #1f2430;
}

.comment-form {
  display: grid;
  gap: 1rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
}

.contact-form-card {
  border-radius: 28px;
  padding: 1.4rem;
}

.contact-stack-card,
.map-card {
  border-radius: 28px;
  padding: 1.4rem;
}

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

.career-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.career-list {
  display: grid;
  gap: 1rem;
}

.career-item {
  padding: 1rem;
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.career-item h4 {
  margin: 0.2rem 0 0.35rem;
  font-family: "Space Grotesk", sans-serif;
}

.contact-info-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-card-row {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.map-embed {
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  min-height: 320px;
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

.admin-panel {
  margin-top: 2rem;
  border-radius: 32px;
  padding: 1.5rem;
}

.dashboard-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.dashboard-section {
  background: var(--panel-strong);
  margin-top: 1rem;
}

.editor {
  display: grid;
  gap: 0.75rem;
}

.toolbar {
  gap: 0.5rem;
}

.toolbar button {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}

.editor-surface {
  min-height: 220px;
}

.ck.ck-editor__editable_inline {
  min-height: 240px;
}

.notification-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.75rem;
  z-index: 40;
}

.toast {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  color: #fff;
  box-shadow: var(--shadow);
}

.toast.success {
  background: #2d8f5a;
}

.toast.error {
  background: #c14444;
}

.empty-state {
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}

.footer {
  padding: 2rem 0 1rem;
  color: var(--muted);
  text-align: center;
}

.footer-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.footer-logo {
  width: 72px;
  height: 72px;
}

.footer-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  z-index: 25;
}

.back-to-top .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.logo-preview-card {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  display: inline-flex;
}

.logo-preview-image {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

@media (max-width: 960px) {
  .hero,
  .blog-layout,
  .contact-layout,
  .career-layout,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }

  .brand-mark {
    min-width: 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.5rem;
  }

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

  .nav-links a {
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    background: var(--panel-strong);
    border: 1px solid var(--line);
  }

}

@media (max-width: 640px) {
  .brand-mark {
    gap: 0.65rem;
  }

  .site-logo {
    width: 72px;
    height: 72px;
  }

  .footer-logo {
    width: 64px;
    height: 64px;
  }

  .footer-actions {
    flex-direction: column;
  }

  .back-to-top {
    right: 0.85rem;
    bottom: 0.85rem;
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 1rem, 1180px);
  }

  .hero-copy,
  .hero-card,
  .section-card,
  .timeline-card,
  .blog-card,
  .dashboard-section,
  .stat-card,
  .auth-card,
  .modal-card {
    padding: 1.1rem;
    border-radius: 22px;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .hero-hire-grid {
    grid-template-columns: 1fr;
  }

  .search-row {
    flex-direction: column;
  }

  .modal-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-close-button {
    width: 100%;
  }

  .header-actions .ghost-button,
  .header-actions .button {
    padding-inline: 0.9rem;
  }
}
