:root {
  --navy: #12233f;
  --orange: #d9622b;
  --navy-light: #1c355c;
  --orange-light: #e78a5c;
  --grey-bg: #f4f5f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #222;
  background: #fff;
}

a {
  text-decoration: none;
}

/* Navbar */
.navbar {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
}

.navbar .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar .brand img {
  height: 48px;
  width: auto;
}

.navbar .brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
}

.navbar .brand-name small {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--orange-light);
}

.navbar nav a {
  color: #fff;
  margin-left: 1.5rem;
  font-weight: 500;
}

.navbar nav a:hover {
  color: var(--orange);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  padding: 5rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.15rem;
  color: #d7dee8;
  max-width: 640px;
  margin: 0 auto;
}

.hero .tagline {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}

/* Section */
.section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  color: var(--navy);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section .section-sub {
  text-align: center;
  color: #666;
  margin-bottom: 2.5rem;
}

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

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border-top: 4px solid var(--orange);
  border-radius: 6px;
  padding: 1.75rem;
  box-shadow: 0 2px 10px rgba(18, 35, 63, 0.08);
}

.service-card h3 {
  color: var(--navy);
  margin-top: 0;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
  box-shadow: 0 2px 10px rgba(18, 35, 63, 0.12);
}

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

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(18, 35, 63, 0.9));
  color: #fff;
  padding: 1.5rem 0.75rem 0.5rem;
  font-size: 0.9rem;
}

.empty-state {
  text-align: center;
  color: #777;
  padding: 2rem;
}

/* Footer */
.footer {
  background: var(--navy);
  color: #b9c2d0;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

.footer .orange {
  color: var(--orange);
}

/* Forms / Admin */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  padding: 1rem;
}

.auth-card {
  background: #fff;
  border-radius: 8px;
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  text-align: center;
}

.auth-card img {
  height: 70px;
  margin-bottom: 1rem;
}

.auth-card h1 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.form-group {
  text-align: left;
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn:hover {
  background: #c0551f;
}

.btn-block {
  width: 100%;
}

.btn-secondary {
  background: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy-light);
}

.btn-danger {
  background: #a5342a;
}

.btn-danger:hover {
  background: #872a21;
}

.error-text {
  color: #a5342a;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.status-banner {
  background: #e6f4ea;
  color: #1e7c34;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

/* Admin panel */
.admin-topbar {
  background: var(--navy);
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-topbar .brand-name {
  font-weight: 700;
}

.admin-wrap {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.upload-card {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.upload-card h2 {
  color: var(--navy);
  margin-top: 0;
  font-size: 1.2rem;
}

.media-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.media-table th,
.media-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: middle;
}

.media-table th {
  background: var(--grey-bg);
  color: var(--navy);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  background: #000;
}

.inline-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-photo {
  background: #dbe7ff;
  color: #1e4fa0;
}

.badge-video {
  background: #ffe4d1;
  color: #a5471a;
}
