/* ===== VARIABLES & RESET ===== */
:root {
  --navy: #1a3c5e;
  --gold: #c9a84c;
  --gold-light: #e8c96e;
  --bg: #f9f7f4;
  --text: #2d2d2d;
  --text-muted: #666;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.18);
  --radius: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ===== PAGE SWITCHING ===== */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-links button {
  background: transparent;
  border: 2px solid transparent;
  color: rgba(255,255,255,0.85);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-links button:hover {
  background: rgba(201,168,76,0.15);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: calc(100vh - 64px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,60,94,0.55) 0%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  opacity: 0.9;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ===== PAGE CONTENT WRAPPER ===== */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--navy);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--gold);
  display: inline-block;
}

/* ===== BACK BUTTON ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 1.8rem;
  transition: all 0.2s;
}

.back-btn:hover {
  background: var(--navy);
  color: var(--white);
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: #ddd;
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,60,94,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

.gallery-card-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--white);
}

.gallery-card-info span {
  font-size: 0.82rem;
  color: var(--gold-light);
  font-weight: 500;
}

/* ===== PROJECT DETAIL ===== */
.project-detail-header {
  margin-bottom: 1.8rem;
}

.project-detail-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--navy);
}

.project-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.project-meta span {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background: rgba(26,60,94,0.08);
  color: var(--navy);
}

.project-meta .category-tag {
  background: var(--gold);
  color: var(--white);
}

.project-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
}

.project-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.8rem;
  max-width: 700px;
}

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

.project-img-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.project-img-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

/* ===== SERVICES ===== */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--gold);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.service-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.service-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
}

.service-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(26,60,94,0.07);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-card p {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ===== CONTACT ===== */
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 520px;
  box-shadow: var(--shadow);
}

.contact-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.contact-item:last-child { border-bottom: none; }

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

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-value:hover { color: var(--gold); }

/* ===== LOADING ===== */
.gallery-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
}

.detail-loading {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .navbar { padding: 0 1.2rem; }
  .logo { font-size: 1.1rem; }
  .nav-links button { font-size: 0.82rem; padding: 0.4rem 0.7rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .project-img-grid { grid-template-columns: repeat(2, 1fr); }
  .page-content { padding: 1.5rem 1rem 3rem; }
}
