/* ============================
   Base & Reset
   ============================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0a0a0a;
  --near-black: #1a1a1a;
  --dark: #2a2a2a;
  --warm-light: #f8f6f2;
  --white: #ffffff;
  --accent: #c4956a;
  --accent-hover: #d4a57a;
  --accent-dim: #a07955;
  --text: #2a2a2a;
  --text-light: #f0ede8;
  --text-muted: #8a857e;
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--warm-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================
   Navigation
   ============================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ============================
   Hero
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(196, 149, 106, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 30% 60%, rgba(196, 149, 106, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 120px 0 80px;
}

.hero-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  max-width: 600px;
  font-weight: 300;
}

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ============================
   Sections
   ============================ */
.section {
  padding: 100px 0;
}

.section-light {
  background: var(--warm-light);
}

.section-dark {
  background: var(--near-black);
  color: var(--text-light);
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 48px;
}

.section-title-light {
  color: var(--text-light);
}

/* ============================
   About
   ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  opacity: 0.85;
}

.about-visual {
  position: relative;
}

.visual-placeholder {
  aspect-ratio: 4/3;
  background: var(--dark);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.06);
}

.visual-icon {
  font-size: 3rem;
  opacity: 0.4;
}

/* ============================
   Cards
   ============================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.3s;
}

.card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(196, 149, 106, 0.2);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 16px;
}

.card-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--white);
}

.card-text {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.6;
}

/* ============================
   Contact
   ============================ */
.section-contact {
  background: var(--white);
}

.contact-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  padding: 12px 24px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  min-width: 280px;
  justify-content: center;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent-dim);
}

.contact-icon {
  font-size: 1.2rem;
}

.contact-empty {
  opacity: 0.4;
  font-style: italic;
}

/* ============================
   Footer
   ============================ */
.footer {
  padding: 32px 0;
  background: var(--black);
  text-align: center;
}

.footer-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}

/* ============================
   Admin Pages
   ============================ */
.admin-body {
  background: #f5f3f0;
  min-height: 100vh;
}

/* Login */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  background: var(--white);
  padding: 48px 40px;
  border-radius: var(--radius);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
  width: 100%;
  max-width: 380px;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.login-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.login-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.85rem;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  background: #fafafa;
}

.login-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

.login-btn {
  padding: 12px;
  background: var(--near-black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}

.login-btn:hover {
  background: var(--black);
}

/* Admin nav */
.admin-nav {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
}

.btn-logout {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.btn-logout:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

/* Admin main */
.admin-main {
  padding: 48px 0;
}

.admin-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  margin-bottom: 32px;
}

.admin-success {
  background: #ecfdf5;
  color: #059669;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-weight: 500;
}

/* Admin form sections */
.admin-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.04);
}

.admin-section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  background: #fafafa;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group-sm {
  margin-bottom: 0;
}

.item-sep {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.04);
  margin: 20px 0;
}

.collab-item:last-child .item-sep {
  display: none;
}

.btn-save {
  padding: 14px 40px;
  background: var(--near-black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}

.btn-save:hover {
  background: var(--black);
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nav-links {
    gap: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .hero-content {
    padding: 100px 0 60px;
  }
}

/* ============================
   Hero Background Image
   ============================ */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.35) saturate(0.9);
  pointer-events: none;
}

/* About image */
.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  aspect-ratio: 4/3;
}

/* ============================
   Admin extras
   ============================ */
.admin-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-weight: 500;
}

.admin-empty {
  opacity: 0.4;
  font-style: italic;
  padding: 16px 0;
}

/* Image picker */
.image-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.image-option {
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  position: relative;
}

.image-option.selected {
  border-color: var(--accent);
}

.image-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-option input {
  position: absolute;
  opacity: 0;
}

.image-option-none {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  background: #f0f0f0;
}

/* Upload form */
.upload-form {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.form-input-file {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
}

/* Image gallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.gallery-item-info {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.gallery-filename {
  font-size: 0.7rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100px;
}

.btn-delete {
  background: none;
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: #dc2626;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}

.btn-delete:hover {
  background: rgba(220,38,38,0.06);
}
