/* ==========================================================
   BLUECREST ESTATES
   GLOBAL STYLESHEET
   Inspired by Homes.com
   Realtor: Jakub
========================================================== */

/* ==========================
   GOOGLE FONT RESET
========================== */

:root {

  --primary: #0A3D91;
  --primary-dark: #082F6B;
  --primary-light: #EAF1FF;

  --background: #FFFFFF;
  --surface: #F8FAFC;

  --text: #111827;
  --text-light: #64748B;

  --border: #E5E7EB;

  --success: #10B981;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);

  --transition: all .3s ease;

}

/* ==========================
   RESET
========================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--background);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

/* ==========================
   LAYOUT
========================== */

.container {

    width: min(1200px, 92%);

    margin: 0 auto;

}

.nav-container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 90px;

}

/* ==========================
   LOGO
========================== */

.logo {

    display: flex;

    align-items: center;

    gap: 12px;

    color: white;

    font-weight: 600;

    font-size: 1.1rem;


}

.logo img {

    width: 42px;

    height: 42px;

}

.navbar img {
    border-radius: 50%;
}

.footer .footerlogo {
    border-radius: 50%;
}

/* ==========================
   NAV LINKS
========================== */

.nav-links {

    display: flex;

    align-items: center;

    gap: 36px;

}

.nav-links a {

    color: white;

    font-weight: 500;

}

.active-nav-link {

    color: white;

    position: relative;

}

.active-nav-link::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 100%;

    height: 2px;

    background: white;

}

/* ==========================
   TYPOGRAPHY
========================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text);
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  color: white;
}

.hero-subtitle {
  font-size: .85rem;
  letter-spacing: 4px;
  text-align: center;
  text-transform: uppercase;
  color: #dbeafe;
  font-weight: 500;
}

.hero-text {
  margin-top: 28px;
  max-width: 700px;
  margin:28px auto 0;
  color: rgba(255,255,255,.85);
  font-size: 1.125rem;
  line-height: 1.9;
}

.section-label {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: .85rem;
  font-weight: 500;
}

.section-title {
  margin-top: 18px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.15;
  font-weight: 600;
  color: var(--text);
}

.section-text {
  margin-top: 20px;
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.9;
}

/* ==========================
   NAVBAR
========================== */

.navbar {
  background: rgba(10, 61, 145, .25);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}

.nav-link {
  color: white;
  font-size: .95rem;
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0%;
  height: 2px;
  background: white;
  transition: .3s;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu {
  background: #082F6B;
}

.mobile-menu a {
  color: white;
  font-size: 1rem;
}

/* ==========================
   BUTTONS
========================== */

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--primary);

  color: white;

  padding: 16px 32px;

  border-radius: var(--radius-pill);

  font-weight: 500;

  transition: var(--transition);
}

.primary-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,.4);

  color: white;

  padding: 16px 32px;

  border-radius: var(--radius-pill);
}

.secondary-btn:hover {
  background: white;
  color: var(--primary);
}

.secondary-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);

  color: var(--text);

  padding: 16px 32px;

  border-radius: var(--radius-pill);
}

.secondary-btn-dark:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.white-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: white;
  color: var(--primary);

  padding: 16px 32px;

  border-radius: var(--radius-pill);

  font-weight: 500;
}

.white-btn:hover {
  transform: translateY(-2px);
}

.outline-white-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,.5);

  color: white;

  padding: 16px 32px;

  border-radius: var(--radius-pill);
}

.outline-white-btn:hover {
  background: white;
  color: var(--primary);
}

/* ==========================
   HERO
========================== */

.hero-overlay {
  background:
    linear-gradient(
      rgba(0,0,0,.20),
      rgba(0,0,0,.35)
    );
}

/* ==========================
   STATS
========================== */

.stat-card {
  background: white;

  padding: 50px 30px;

  border-radius: var(--radius-xl);

  text-align: center;

  box-shadow: var(--shadow-sm);

  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-6px);
}

.stat-icon {
  font-size: 2rem;
  color: var(--primary);
}

.stat-card h3 {
  margin-top: 18px;
  font-size: 3rem;
  font-weight: 600;
}

.stat-card p {
  margin-top: 10px;
  color: var(--text-light);
}

/* ==========================
   FEATURE CARDS
========================== */

.feature-card {
  background: white;

  padding: 40px;

  border-radius: var(--radius-xl);

  box-shadow: var(--shadow-sm);

  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
}

.feature-card i {
  font-size: 2rem;
  color: var(--primary);
}

.feature-card h3 {
  margin-top: 24px;
  font-size: 1.5rem;
}

.feature-card p {
  margin-top: 16px;
  color: var(--text-light);
}

/* ==========================
   TESTIMONIALS
========================== */

.testimonial-card {
  width: 420px;

  background: white;

  padding: 40px;

  border-radius: var(--radius-xl);

  box-shadow: var(--shadow-sm);

  flex-shrink: 0;

  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.stars {
  color: #fbbf24;
  font-size: 1.1rem;
}

.testimonial-card p {
  margin-top: 24px;
  color: var(--text-light);
  line-height: 1.9;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 16px;

  margin-top: 28px;
}

.testimonial-user img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-user h4 {
  font-size: 1rem;
}

.testimonial-user span {
  color: var(--text-light);
  font-size: .9rem;
}

/* ==========================
   FOOTER
========================== */

.footer {
  background: #0F172A;
  color: white;
  padding-top: 100px;
  padding-bottom: 40px;
}

.footer-title {
  font-size: 1.2rem;
  color: white;
}

.footer-text {
  color: rgba(255,255,255,.7);
  line-height: 1.9;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.footer-links a {
  color: rgba(255,255,255,.7);
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.social-links a {
  width: 48px;
  height: 48px;

  border-radius: 50%;

  border: 1px solid rgba(255,255,255,.1);

  display: flex;
  align-items: center;
  justify-content: center;

  color: white;
}

.social-links a:hover {
  background: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 60px;
  padding-top: 30px;
  text-align: center;
  color: rgba(255,255,255,.5);
}

/* ==========================
   SCROLLBAR
========================== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 999px;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 768px) {

  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.3rem;
  }

  .testimonial-card {
    width: 340px;
  }

}