/* ================================================================
   Mikes Modular Concepts — Custom styles on top of Bootstrap 5
   ================================================================ */

:root {
  --gold:      #b8966b;
  --gold-light:#d4b48a;
  --dark:      #111111;
  --text:      #3a3a3a;
  --muted:     #777777;
  --bg:        #fafaf8;
  --bg-alt:    #f4f1ec;
  --border:    #e8e2d9;
  --navbar-h:  72px;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--dark);
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* ---- Section spacing ---- */
section { padding: 90px 0; }
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
}
.section-title span { color: var(--gold); }
.divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 40px;
}
.divider.left { margin: 0 0 40px; }

/* ---- Navbar ---- */
#mainNav {
  height: var(--navbar-h);
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  z-index: 1030;
}
#mainNav.scrolled {
  background: var(--dark);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
#mainNav .navbar-brand img { height: 42px; }
#mainNav .nav-link {
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 14px !important;
  transition: color .2s;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active { color: var(--gold); }
#mainNav .nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  padding: 8px 22px !important;
  border-radius: 2px;
  transition: background .2s, color .2s;
}
#mainNav .nav-cta:hover {
  background: var(--gold);
  color: var(--dark) !important;
}
.navbar-toggler {
  border: none;
  padding: 4px 8px;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- Hero ---- */
#home {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--dark);
  padding: 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .45;
}
.hero-content { position: relative; z-index: 2; }
.hero-tagline {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 28px;
}
.hero-title span { color: var(--gold); }
.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.btn-gold {
  background: var(--gold);
  color: var(--dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 36px;
  border: none;
  border-radius: 2px;
  transition: background .2s, transform .2s;
}
.btn-gold:hover {
  background: var(--gold-light);
  color: var(--dark);
  transform: translateY(-1px);
}
.btn-outline-gold {
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 36px;
  background: transparent;
  border-radius: 2px;
  transition: background .2s, color .2s;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--dark);
}
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}

/* ---- About ---- */
#about { background: var(--bg); }
.about-img-wrap {
  position: relative;
}
.about-img-wrap img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.about-img-wrap::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  right: 20px;
  bottom: -20px;
  border: 2px solid var(--gold);
  z-index: -1;
}
.about-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: var(--gold);
  color: var(--dark);
  padding: 18px 24px;
  text-align: center;
}
.about-badge strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  line-height: 1;
}
.about-badge span {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ---- Portfolio filter buttons ---- */
.pf-btn {
  min-width: 100px;
  padding: 9px 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.pf-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.pf-btn.active {
  border-color: var(--gold);
  color: var(--dark);
  background: var(--gold);
}

/* ---- Portfolio ---- */
#portfolio { background: var(--bg-alt); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 991px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 8px; } }

.portfolio-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #222;
}
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, opacity .3s;
}
.portfolio-card:hover img {
  transform: scale(1.06);
  opacity: .75;
}
.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 60%);
  opacity: 1;
  transition: background .3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.portfolio-card:hover .portfolio-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 60%);
}
.portfolio-card-title {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 1rem;
  margin: 0;
}

/* ---- Lightbox modal ---- */
#lightboxModal .modal-dialog { max-width: 900px; }
#lightboxModal .modal-content {
  background: var(--dark);
  border: none;
  border-radius: 0;
}
#lightboxModal .modal-header {
  border: none;
  padding: 12px 16px;
}
#lightboxModal .btn-close {
  filter: invert(1);
  opacity: .7;
}
#lightboxModal .modal-body { padding: 0 0 16px; }
.lightbox-img-wrap {
  position: relative;
  background: #000;
  text-align: center;
}
.lightbox-img-wrap img {
  max-height: 70vh;
  width: 100%;
  object-fit: contain;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox-nav:hover { background: var(--gold); }
.lightbox-nav.prev { left: 0; }
.lightbox-nav.next { right: 0; }
.lightbox-title {
  font-family: 'Playfair Display', serif;
  color: #fff;
  margin: 0;
  font-size: 1.1rem;
}
.lightbox-counter {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin: 0;
}
.lightbox-thumbnails {
  display: flex;
  gap: 6px;
  padding: 12px 16px 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) #222;
}
.lightbox-thumb {
  flex-shrink: 0;
  width: 60px;
  height: 45px;
  object-fit: cover;
  cursor: pointer;
  opacity: .5;
  border: 2px solid transparent;
  transition: opacity .2s, border-color .2s;
}
.lightbox-thumb.active,
.lightbox-thumb:hover { opacity: 1; border-color: var(--gold); }

/* ---- Services ---- */
#services { background: var(--bg); }
.service-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 36px 28px;
  text-align: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
  border-color: var(--gold);
}
.service-icon {
  width: 56px;
  height: 56px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.4rem;
  color: var(--dark);
}
.service-card h5 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

/* ---- Testimonials ---- */
#testimonials { background: var(--dark); }
#testimonials .section-title { color: #fff; }
#testimonials .divider { background: var(--gold); }
.testimonial-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  padding: 40px 36px;
  position: relative;
  height: 100%;
}
.testimonial-card::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: .4;
  line-height: 1;
  position: absolute;
  top: 16px;
  left: 24px;
}
.testimonial-text {
  font-size: 15px;
  color: rgba(255,255,255,.8);
  line-height: 1.75;
  margin-bottom: 24px;
  padding-top: 20px;
}
.testimonial-author strong {
  color: #fff;
  font-size: 14px;
}
.testimonial-author span {
  color: var(--gold);
  font-size: 12px;
  display: block;
  margin-top: 2px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- Clients ---- */
#clients { background: var(--bg-alt); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.client-logo {
  height: 180px;
  padding: 12px 16px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: default;
  position: relative;
}
.client-logo:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
  z-index: 1;
}
/* Fill the cell as large as possible while preserving aspect ratio */
.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}
.client-logo:hover img {
  transform: scale(1.15);
}
/* Abbott Hotel logo has dark baked-in background — invert to match light theme */
.client-logo img[alt="Abbott Hotel"] {
  filter: invert(1);
}

@media (max-width: 991px) {
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .client-logo { height: 130px; }
}
@media (max-width: 480px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Contact ---- */
#contact { background: var(--bg); }
#contact .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  color: var(--gold);
  background: transparent;
  padding: 0;
  margin-right: 20px;
  font-size: 1.5rem;
  box-shadow: none;
  transform: none;
  transition: none;
}
#contact .social-link:hover {
  color: var(--gold);
  background: transparent;
  transform: none;
  box-shadow: none;
  border: none;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}
.contact-icon {
  width: 46px;
  height: 46px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-info-item strong {
  display: block;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-info-item p { margin: 0; font-size: 15px; color: var(--dark); }
.form-control, .form-select {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
}
.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: none;
  background: var(--bg-alt);
  color: var(--text);
}
.form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
#form-msg {
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 2px;
}

/* ---- Footer ---- */
footer {
  background: var(--dark);
  padding: 48px 0 32px;
  color: rgba(255,255,255,.55);
  font-size: 13px;
}
footer .footer-brand img { height: 40px; margin-bottom: 12px; }
footer .footer-tagline { font-size: 13px; color: rgba(255,255,255,.4); }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.55); transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-heading {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 18px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.55);
  border-radius: 50%;
  margin-right: 8px;
  transition: border-color .2s, color .2s, background .2s;
}
.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184,150,107,.1);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  margin-top: 40px;
  font-size: 12px;
  color: rgba(255,255,255,.3);
}

/* ---- Scroll to top ---- */
#scrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 42px;
  height: 42px;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 999;
  cursor: pointer;
}
#scrollTop.visible { opacity: 1; pointer-events: all; }

/* ---- Utilities ---- */
.bg-dark-section { background: var(--dark); }
.text-gold { color: var(--gold) !important; }
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hero-stats { gap: 28px; }
  .hero-stat-num { font-size: 2rem; }
  .about-img-wrap::before { display: none; }
  .about-badge { bottom: 0; right: 0; }
}
