/* ============================================================
   Finance Wealth Craft — Custom Stylesheet
   ============================================================ */
:root {
  --primary: #0f3460;
  --primary-dark: #0a2240;
  --primary-light: #e8eef7;
  --secondary: #e8a33d;
  --secondary-dark: #c88624;
  --accent: #1abc9c;
  --accent-dark: #16a085;
  --dark: #1a1a2e;
  --light: #f6f8fb;
  --white: #ffffff;
  --gray: #6c757d;
  --gray-light: #f1f3f5;
  --danger: #dc3545;
  --success: #28a745;
  --shadow: 0 10px 30px rgba(15, 52, 96, 0.12);
  --shadow-hover: 0 18px 40px rgba(15, 52, 96, 0.18);
  --radius: 12px;
  --transition: all 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  color: #333;
  background: var(--white);
  overflow-x: hidden;
}

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

a:hover {
  color: var(--secondary);
}

ul {
  list-style: none;
}

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

/* ------------------------------------------------------------
   Logo — one line, same style
   ------------------------------------------------------------ */
.logo {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.5px;
}

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

.logo .fw-mark {
  width: 32px;
  height: 32px;
  background: var(--secondary);
  color: var(--primary-dark);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  line-height: 1;
}

/* ------------------------------------------------------------
   Navbar
   ------------------------------------------------------------ */
.navbar {
  padding: 1rem 0;
  background: var(--primary) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  padding: 0.55rem 1rem !important;
  transition: var(--transition);
  border-radius: var(--radius);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--secondary) !important;
  background: rgba(255, 255, 255, 0.08);
}

.navbar .btn-outline-light {
  border-color: var(--secondary);
  color: var(--secondary);
  font-weight: 600;
}

.navbar .btn-outline-light:hover {
  background: var(--secondary);
  color: var(--primary-dark);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  transition: var(--transition);
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 52, 96, 0.3);
}

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

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

.btn-outline-dark {
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

.btn-white {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

/* ------------------------------------------------------------
   Section padding & headings
   ------------------------------------------------------------ */
section {
  padding: 80px 0;
}

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

.section-title h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-title p {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-title .underline {
  width: 60px;
  height: 5px;
  background: var(--secondary);
  margin: 14px auto 0;
  border-radius: 3px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #16324f 100%);
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 100px;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 163, 61, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--secondary);
}

.hero p.lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  max-width: 560px;
}

.hero .btn {
  margin-right: 12px;
}

/* ------------------------------------------------------------
   Services Section (HTML grid — Bootstrap columns)
   ------------------------------------------------------------ */
.services {
  background: var(--light);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e3e8f0;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--secondary);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--gray-light);
}

.service-card .card-body {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 18px;
  flex: 1;
}

.service-card .btn {
  width: 100%;
  text-align: center;
  padding: 0.7rem;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------
   About Section
   ------------------------------------------------------------ */
.about {
  background: var(--white);
}

.about .section-title {
  text-align: left;
}

.about .section-title .underline {
  margin: 14px 0 0 0;
}

.about-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 4px solid var(--white);
}

.about-text h3 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 18px;
}

.about-text .feature {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.about-text .feature i {
  color: var(--secondary);
  font-size: 1.4rem;
  margin-right: 14px;
  width: 30px;
}

.about-text .feature span {
  font-size: 1rem;
  color: #444;
}

/* ------------------------------------------------------------
   Why Choose Us
   ------------------------------------------------------------ */
.why-choose {
  background: var(--primary);
  color: var(--white);
}

.why-choose .section-title h2,
.why-choose .section-title p {
  color: var(--white);
}

.feature-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  height: 100%;
  transition: var(--transition);
}

.feature-box:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.feature-box .icon {
  width: 60px;
  height: 60px;
  background: var(--secondary);
  color: var(--primary-dark);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.feature-box h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-box p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* ------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------ */
.testimonials {
  background: var(--light);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 25px;
  border: 1px solid #e3e8f0;
  box-shadow: var(--shadow);
}

.testimonial-card p {
  font-style: italic;
  color: #555;
  margin-bottom: 22px;
  font-size: 1rem;
  line-height: 1.6;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.05rem;
  display: block;
}

/* ------------------------------------------------------------
   Newsletter CTA Section
   ------------------------------------------------------------ */
.newsletter-cta {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  overflow: hidden;
}

.newsletter-cta h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.newsletter-cta p {
  opacity: 0.95;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.newsletter-cta .form-group {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.newsletter-cta .form-control {
  flex: 1;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: none;
}

.newsletter-cta .btn {
  padding: 12px 24px;
}

/* ------------------------------------------------------------
   Contact Page
   ------------------------------------------------------------ */
.contact-info {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.contact-info p {
  opacity: 0.9;
  margin-bottom: 25px;
}

.contact-info .detail {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.contact-info .detail i {
  color: var(--secondary);
  font-size: 1.4rem;
  margin-right: 15px;
  width: 28px;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid #e3e8f0;
}

.form-control {
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #d1d9e6;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 0.2rem rgba(232, 163, 61, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  display: block;
}

#contact-success, #subscribe-success, #unsubscribe-success {
  display: none;
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}

/* ------------------------------------------------------------
   Blog
   ------------------------------------------------------------ */
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e3e8f0;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--gray-light);
}

.blog-card .card-body {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card h3:hover {
  color: var(--secondary);
}

.blog-card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 18px;
  flex: 1;
}

.blog-card .btn {
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;
  align-self: flex-start;
}

/* Single post */
.single-post {
  max-width: 780px;
  margin: 0 auto;
}

.single-post .post-header {
  text-align: center;
  margin-bottom: 40px;
}

.single-post .post-header h1 {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.single-post .post-header .excerpt {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 24px;
}

.single-post .post-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 35px;
  box-shadow: var(--shadow);
}

.single-post .post-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.single-post .post-content p {
  font-size: 1.08rem;
  color: #444;
  margin-bottom: 22px;
  line-height: 1.8;
}

.single-post .post-content strong {
  color: var(--primary);
}

.blog-back {
  text-align: center;
  margin-top: 50px;
}

.blog-back .btn {
  font-size: 0.95rem;
}

/* ------------------------------------------------------------
   Pages: Privacy, Terms, Subscribe, Unsubscribe
   ------------------------------------------------------------ */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-content h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
  text-align: center;
}

.page-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 30px;
  margin-bottom: 14px;
}

.page-content p {
  color: #555;
  margin-bottom: 18px;
  line-height: 1.7;
}

.page-content ul {
  color: #555;
  margin-bottom: 18px;
  padding-left: 22px;
}

.page-content ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.newsletter-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.newsletter-page h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.newsletter-page p {
  color: var(--gray);
  margin-bottom: 30px;
}

.newsletter-page .form-control {
  width: 100%;
  max-width: 380px;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid #d1d9e6;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 70px 0 30px;
}

footer .footer-brand {
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: inline-block;
}

footer .footer-brand span {
  color: var(--secondary);
}

footer h5 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 22px;
}

footer ul li {
  margin-bottom: 12px;
}

footer ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

footer ul li a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

footer .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

footer .contact-item i {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-right: 12px;
  margin-top: 3px;
  width: 24px;
}

footer .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 8px;
  margin-right: 10px;
  font-size: 1.1rem;
  transition: var(--transition);
}

footer .socials a:hover {
  background: var(--secondary);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

footer .border-top {
  border-color: rgba(255, 255, 255, 0.12) !important;
  margin-top: 40px;
  padding-top: 25px;
}

footer .copyright {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .about-img {
    margin-bottom: 40px;
  }
  .contact-info, .contact-form {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 55px 0;
  }
  .hero {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .newsletter-cta .form-group {
    flex-direction: column;
  }
  .newsletter-cta .btn {
    width: 100%;
  }
  .single-post .post-header h1 {
    font-size: 1.9rem;
  }
  .single-post .post-image img {
    height: 280px;
  }
}

@media (max-width: 576px) {
  .logo {
    font-size: 1.3rem;
  }
  .section-title h2 {
    font-size: 1.9rem;
  }
  .contact-info, .contact-form {
    padding: 22px;
  }
}