/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--gold);
}

.loader-content .line {
  width: 0;
  height: 1px;
  background: var(--gold);
  margin-top: 10px;
  animation: load 2s forwards;
}

@keyframes load {
  to { width: 100%; }
}

/* ============================================================
   NAVIGATION BAR
   ============================================================ */
.navbar {
  position: fixed;
  width: 100%;
  padding: 30px 0;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
  background: var(--navy);
  padding: 15px 0;
  border-bottom: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow-x: hidden;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--white);
  font-family: "Playfair Display";
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

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

.btn-portal {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 20px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: 0.3s;
}

.btn-portal:hover {
  background: var(--gold);
  color: var(--white);
}

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

.hero-image {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2000") center/cover;
  opacity: 0.4;
}

.hero-wrapper {
  position: relative;
  z-index: 2;
}

.slogan {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  font-size: 4rem;
  line-height: 1.1;
  max-width: 900px;
  margin-bottom: 40px;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  padding: 20px 40px;
  display: inline-block;
  font-weight: 700;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}

.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-3px);
}

.btn-link {
  color: var(--white);
  margin-left: 30px;
  font-weight: 300;
  letter-spacing: 1px;
}

/* ============================================================
   ABOUT SECTION (THE OFFICE)
   ============================================================ */
.about {
  padding: 120px 0;
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content h2 {
  font-size: 2.8rem;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.about-content h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 3px;
  background: var(--gold);
}

.about-content p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
}

.stats {
  display: flex;
  gap: 50px;
}

.stat-item span {
  display: block;
  font-size: 2.5rem;
  font-family: 'Playfair Display';
  color: var(--gold);
  font-weight: 700;
}

.stat-item p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

.image-wrapper {
  position: relative;
  box-shadow: 30px 30px 0px var(--ice), -1px -1px 20px rgba(0,0,0,0.1);
}

.image-wrapper img {
  width: 100%;
  display: block;
  filter: grayscale(0.3);
}

/* ============================================================
   EXPERTISE SECTION
   ============================================================ */
.expertise {
  padding: 120px 0;
  background: var(--ice);
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
}

.section-title h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.exp-card {
  background: var(--white);
  padding: 50px 40px;
  transition: 0.4s;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.exp-card i {
  color: var(--gold);
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.exp-card h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-family: "Playfair Display";
}

.exp-card:hover {
  transform: translateY(-10px);
  background: var(--navy);
  color: var(--white);
}

/* ============================================================
   INSIGHTS SECTION (NEWS CAROUSEL)
   ============================================================ */
.blog {
  padding: 100px 0;
  background: var(--white);
  overflow: hidden;
}

.news-wrapper {
  position: relative;
  width: 100%;
  margin-top: 50px;
}

.news-grid {
  display: flex;
  gap: 30px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: grab;
}

.news-grid:active { cursor: grabbing; }

.news-card {
  min-width: calc(33.333% - 20px);
  background: var(--ice);
  padding: 40px;
  border-top: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  height: 350px;
}

.news-card:hover {
  background: var(--navy);
  transform: translateY(-10px);
}

.news-card small {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 0.7rem;
}

.news-card h3 {
  font-size: 1.4rem;
  margin: 20px 0;
  line-height: 1.4;
  color: var(--navy);
  transition: 0.3s;
}

.news-card:hover h3 { color: var(--white); }

.news-card a {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-card a::after {
  content: '→';
  transition: 0.3s;
}

.news-card a:hover::after { transform: translateX(5px); }

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.control-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  background: var(--gold);
  color: var(--white);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-info {
  background: var(--navy);
  padding: 60px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h2 {
  color: var(--gold);
  margin-bottom: 20px;
}

.contact-details {
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
}

.contact-details p {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 1rem;
  transition: 0.3s;
}

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

.contact-details i {
  color: var(--gold);
  font-size: 1.2rem;
}

.contact-form {
  background: var(--white);
  padding: 60px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  outline: none;
}

.contact-form input:focus {
  border-color: var(--gold);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 100px 0 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social i {
  font-size: 1.5rem;
  margin-right: 20px;
  color: var(--gold);
}

.footer-copyright {
  text-align: center;
  padding-top: 50px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
}

/* ============================================================
   CLIENT PORTAL LOGIN (MODAL)
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
  border-top: 5px solid #c5a059;
}

.modal-content h2 {
  color: #1a1a1a;
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: 0.3s;
}

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

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-content input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

.modal-content input:focus { border-color: #c5a059; }

.modal-content .btn-gold {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 1px;
}

#error-message {
  padding: 11px;
  font-weight: 600;
  margin-top: 5px;
  width: 100%;
  border-radius: 5px;
  background: rgba(255, 0, 0, 0.773);
  color: #fff;
}

.hidden { display: none; }