:root {
  --bg: #f7f4ec;
  --paper: #fffdf7;
  --ink: #132026;
  --muted: #5b6a72;
  --brand: #d94e2c;
  --brand-dark: #a3341b;
  --accent: #005f73;
  --line: #d8d1c2;
  --card-shadow: 0 14px 35px rgba(19, 32, 38, 0.08);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 10%, #ffe9d9 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, #d9f1f5 0%, transparent 40%), var(--bg);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

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

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.section-pad {
  padding: 5.5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(247, 244, 236, 0.86);
  border-bottom: 1px solid rgba(216, 209, 194, 0.5);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
}

.brand-mark-img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  object-fit: cover;
  background: #0c1430;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text small {
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 1.25rem;
  font-weight: 600;
  color: var(--muted);
}

nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: clip;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
  grid-template-columns: 1.3fr 0.9fr;
}

.eyebrow {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 0.82rem;
}

.hero-logo {
  width: min(560px, 100%);
  border-radius: 0.9rem;
  border: 1px solid rgba(216, 209, 194, 0.5);
  margin-bottom: 1rem;
  box-shadow: var(--card-shadow);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.9rem);
  margin-bottom: 1.1rem;
}

h1 span {
  color: var(--brand);
}

.tagline {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-outline {
  border: 1px solid var(--line);
  background: var(--paper);
}

.hero-card {
  background: linear-gradient(145deg, #fffef9, #f6efe3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--card-shadow);
}

.hero-card h2 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.hero-card li + li {
  margin-top: 0.6rem;
}

.shape {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.shape-one {
  width: 270px;
  height: 270px;
  border-radius: 24% 76% 62% 38% / 29% 31% 69% 71%;
  background: rgba(217, 78, 44, 0.12);
  right: -70px;
  top: 0;
}

.shape-two {
  width: 240px;
  height: 240px;
  border-radius: 50% 50% 28% 72% / 63% 48% 52% 37%;
  background: rgba(0, 95, 115, 0.13);
  left: -90px;
  bottom: -40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.about-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 1.4rem;
}

.about-card p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.social-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.social-row a {
  border: 1px solid var(--line);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.social-row a svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.section-title {
  font-size: clamp(1.7rem, 3.8vw, 2.7rem);
}

.section-subtitle {
  color: var(--muted);
  margin-top: 0.8rem;
  margin-bottom: 1.8rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--card-shadow);
}

.service-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
}

.service-media {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  border-radius: 0.8rem;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(216, 209, 194, 0.7);
}

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

.service-foot {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.brief-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--card-shadow);
}

.brief-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
}

.brief-media {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  border-radius: 0.8rem;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(216, 209, 194, 0.7);
}

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

.brief-card ul {
  margin: 0.75rem 0 0 1rem;
  padding: 0;
  color: var(--muted);
}

.brief-card li + li {
  margin-top: 0.35rem;
}

.projects {
  padding-top: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.project-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.project-card div {
  padding: 1rem;
}

.project-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

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

.solutions {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(244, 238, 225, 0.72) 100%);
}

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

.solution-panel {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: #132026;
  color: #eef3f6;
}

.solution-panel span {
  color: #7cd3e0;
  font-size: 0.85em;
}

.solution-panel p {
  margin-top: 0.8rem;
  color: #c5d4db;
}

.highlight-grid {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 1fr;
}

.check-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.check-list li + li {
  margin-top: 0.5rem;
}

.contact-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #005f73, #0f879f);
  color: #fff;
  padding: 1.8rem;
  box-shadow: var(--card-shadow);
}

.contact-card p {
  margin-top: 0.8rem;
  color: #dcecf0;
}

.contact-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.contact-card .btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.site-footer {
  border-top: 1px solid rgba(216, 209, 194, 0.65);
  color: var(--muted);
  padding: 1.4rem 0 2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.18s;
}

.delay-3 {
  transition-delay: 0.26s;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .highlight-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .section-pad {
    padding: 4.1rem 0;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0;
  }

  nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
  }

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

  .brief-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.uploads-showcase {
  padding-top: 0;
}

.upload-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.upload-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  font-weight: 600;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-card,
.admin-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 1.4rem;
}

.auth-card {
  width: min(500px, 100%);
}

.auth-card h1 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.auth-form,
.admin-form,
.upload-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.auth-form label,
.admin-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--muted);
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.65rem 0.8rem;
  background: #fff;
}

textarea {
  resize: vertical;
}

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

.admin-upload-list {
  display: grid;
  gap: 0.75rem;
}

.admin-upload-item {
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.7rem;
  display: grid;
  gap: 0.35rem;
}

.admin-upload-item small {
  color: var(--muted);
}

.credentials-note {
  margin-top: 1rem;
  border: 1px dashed var(--line);
  border-radius: 0.7rem;
  padding: 0.85rem;
  color: var(--muted);
}

.credentials-note p {
  margin-top: 0.3rem;
}

.flash {
  border-radius: 0.65rem;
  padding: 0.7rem;
  margin-top: 0.9rem;
}

.flash.success {
  background: #e6f7ec;
  border: 1px solid #a7d7b6;
  color: #1e6b3a;
}

.flash.error {
  background: #fff1f0;
  border: 1px solid #f4b5ae;
  color: #8c2727;
}

@media (max-width: 980px) {
  .admin-grid,
  .upload-grid {
    grid-template-columns: 1fr;
  }
}
