/* ================= RESET & BASE ================= */
html { scroll-behavior: smooth; }

/* ================= FADE (legacy support) ================= */
.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= BUTTONS ================= */
.btn-primary {
  background: #C9973A;
  color: #0D1B2A;
  padding: 14px 36px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.35s ease;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover {
  background: #E8B25C;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201,151,58,0.5);
}

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: white;
  padding: 14px 36px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.35s ease;
  display: inline-block;
  text-decoration: none;
}
.btn-outline:hover {
  border-color: #E8B25C;
  color: #E8B25C;
  background: rgba(201,151,58,0.08);
}

/* ================= INFO BOX ================= */
.info-box {
  border-left: 3px solid #C9973A;
  padding-left: 16px;
  padding: 1rem 1rem 1rem 16px;
  background: #FDFCF9;
  border-radius: 0 4px 4px 0;
  transition: all 0.3s;
}
.info-box:hover {
  box-shadow: 0 4px 20px rgba(201,151,58,0.12);
  transform: translateX(3px);
}
.info-box h4 {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0D1B2A;
  margin-bottom: 3px;
}
.info-box p {
  font-size: 0.78rem;
  color: #888;
}

/* ================= SERVICE CARDS ================= */
.service-bg,
.project-bg {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.5s ease;
  display: block;
  text-decoration: none;
}
.service-bg:hover,
.project-bg:hover {
  transform: scale(1.03);
  box-shadow: 0 24px 50px rgba(0,0,0,0.35);
}
.service-bg::before,
.project-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13,27,42,0.35);
  transition: background 0.4s;
  z-index: 1;
}
.service-bg:hover::before,
.project-bg:hover::before {
  background: rgba(13,27,42,0.55);
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(13,27,42,0.85) 0%, rgba(13,27,42,0.1) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: white;
  transition: all 0.3s ease;
}
.overlay h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.overlay span {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.35s ease;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E8B25C;
}
.service-bg:hover .overlay span,
.project-bg:hover .overlay span {
  opacity: 1;
  transform: translateY(0);
}

/* ================= TESTIMONIAL ================= */
.testimonial-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 6px;
  border: 1px solid rgba(201,151,58,0.12);
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
  transition: all 0.4s ease;
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 4rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: rgba(201,151,58,0.15);
  line-height: 1;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.14);
  border-color: rgba(201,151,58,0.35);
}
.testimonial-card h4 {
  margin-top: 1.5rem;
  font-weight: 700;
  color: #0D1B2A;
  font-size: 0.85rem;
}

/* ================= NAVBAR ================= */
header {
  transition: all 0.4s ease;
}
header.scrolled {
  background: rgba(13,27,42,0.97) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-transparent {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.header-transparent.scrolled {
  background: rgba(13,27,42,0.97);
  box-shadow: 0 8px 40px rgba(0,0,0,0.45);
}

.hero-section {
  min-height: 100vh;
  min-height: 100svh;
}

/* ── Mobile Menu Animation ── */
#mobileMenu.open {
  max-height: 500px;
  opacity: 1;
}

/* ── Category Buttons ── */
.category-btn {
  padding: 9px 20px;
  border-radius: 4px;
  background: #F1F5F9;
  color: #0D1B2A;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.category-btn:hover {
  background: rgba(201,151,58,0.12);
  border-color: rgba(201,151,58,0.4);
  color: #C9973A;
}
.category-btn.active {
  background: #0D1B2A;
  color: #E8B25C;
  border-color: #0D1B2A;
}

/* ── Project Filtering ── */
.project-item {
  transition: all 0.4s ease;
}
.project-item.hide {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
}

/* ── Post Cards (News page) ── */
.post-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.07);
  transition: all 0.4s ease;
  position: relative;
  border: 1px solid rgba(201,151,58,0.08);
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.14);
  border-color: rgba(201,151,58,0.3);
}
.post-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover img {
  transform: scale(1.04);
}
.post-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.75rem 0;
  color: #0D1B2A;
}
.post-card .tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #C9973A;
  letter-spacing: 0.12em;
}
.post-card.hide {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.date-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(13,27,42,0.9);
  color: #E8B25C;
  font-size: 0.65rem;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 700;
  z-index: 5;
  backdrop-filter: blur(4px);
  letter-spacing: 0.08em;
}

/* ── Gold divider utility ── */
.gold-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, #C9973A, #E8B25C);
  margin: 1rem 0;
  border-radius: 2px;
}
.gold-divider.center { margin: 1rem auto; }

/* ── Selection color ── */
::selection {
  background: rgba(201,151,58,0.25);
  color: #0D1B2A;
}

/* ── Smooth image load ── */
img {
  transition: opacity 0.3s;
}
img[loading] { opacity: 0; }
img { opacity: 1; }
