/* =============================================
   VISIONARY ESTATES — styles.css
   Design System: The Polished Monolith
   ============================================= */

/* --- Google Fonts loaded in HTML <head> --- */

/* ---- CSS Variables ---- */
:root {
  --bg:        #FAFAFA;
  --text:      #1A202C;
  --accent:    #004f7a;
  --stone:     #E5E7EB;
  --card-bg:   #FFFFFF;
  --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.618;
  overflow-x: hidden;
  font-size: 18px;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    url('https://media.base44.com/images/public/6a0188ba1a95605f927c1821/094252a11_generated_c5141a7d.png')
    center / cover no-repeat;
  color: white;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 32, 44, 0.52);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  margin-bottom: 1.5rem;
}

.company-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.company-tagline {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-bottom: 2.5rem;
}

/* Nav */
nav { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 1.5rem; }

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
}

.nav-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 400;
  transition: color 0.4s ease;
}
.nav-link:hover { color: var(--accent); }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1.25rem;
  height: 2rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 0.35rem;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-dot {
  width: 0.3rem;
  height: 0.5rem;
  background: rgba(255,255,255,0.6);
  border-radius: 999px;
}

ul { padding: 0 50px; }
li { padding: 0 0 15px 0; }

/* =============================================
   SECTIONS — shared
   ============================================= */
.section {
  padding: 7rem 10%;
}
.section-alt {
  background-color: var(--card-bg);
}
.section-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  border-left: 4px solid var(--accent);
  padding-left: 1.5rem;
  margin-bottom: 3.5rem;
  color: var(--text);
}

/* Utility */
.body-text { font-size: 1rem; line-height: 1.618; color: rgba(26,32,44,0.88); }
.mt-lg { margin-top: 1.5rem; }

/* =============================================
   PROFILE
   ============================================= */
.profile-content { max-width: 780px; }

.more-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.7s cubic-bezier(0.16,1,0.3,1), opacity 0.5s ease;
}
.more-content.open {
  max-height: 800px;
  opacity: 1;
  margin-top: 1.5rem;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--text);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-btn:hover { background: var(--text); color: white; }
.toggle-icon { font-size: 0.7rem; transition: transform 0.4s ease; }
.toggle-icon.rotated { transform: rotate(180deg); }

/* =============================================
   CARDS — shared
   ============================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg);
  border: 1px solid var(--stone);
  padding: 2.5rem;
  transition: var(--transition);
}
.section-alt .card { background: var(--bg); }
.card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.07);
}

.card-icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.card-icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(0,79,122,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  font-size: 1.3rem;
  color: var(--accent);
  transition: background 0.4s ease;
}
.card:hover .card-icon-circle { background: rgba(0,79,122,0.2); }

.card-centered { text-align: center; }

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.card-desc {
  font-size: 0.88rem;
  line-height: 1.618;
  color: rgba(26,32,44,0.65);
}

/* =============================================
   ADVANTAGES CAROUSEL
   ============================================= */
.advantages-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.adv-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  padding: 0.5rem 0.25rem 1rem;
}
.adv-track::-webkit-scrollbar { display: none; }

.adv-card {
  flex-shrink: 0;
  width: 280px;
}

.adv-arrow {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: white;
  color: var(--accent);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.adv-arrow:hover:not(:disabled) { background: var(--accent); color: white; }
.adv-arrow:disabled { opacity: 0.3; cursor: not-allowed; border-color: var(--stone); color: #999; }

.adv-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
}
.adv-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,79,122,0.3);
  transition: background 0.3s ease;
}

/* =============================================
   CLIENTS
   ============================================= */
.client-category { margin-bottom: 3.5rem; }

.client-category-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.client-card {
  background: var(--card-bg);
  border: 1px solid var(--stone);
  padding: 1.5rem;
  transition: var(--transition);
}
.client-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.client-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}
.client-card:hover .client-name { color: var(--accent); }

.client-desc {
  font-size: 0.83rem;
  line-height: 1.618;
  color: rgba(26,32,44,0.6);
}

/* =============================================
   FOOTER / CONTACT
   ============================================= */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.85);
  padding: 5rem 10%;
  text-align: center;
}
.footer-inner { max-width: 1400px; margin: 0 auto; }

.footer-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}
.footer-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  max-width: 500px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.618;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3rem;
  margin-bottom: 2.5rem;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}
.footer-icon { color: var(--accent); font-size: 1rem; }

.footer-divider {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding: 5rem 6%; }
  .nav-list { gap: 0.75rem 1.5rem; }
  .grid, .grid-3, .client-grid { grid-template-columns: 1fr; }
  .footer-contacts { flex-direction: column; align-items: center; }
}