/*
Theme Name: Sree Financial Services
Theme URI: https://sreefinancialservices.com
Author: Sree Financial Services
Author URI: https://sreefinancialservices.com
Description: Professional Financial DSA WordPress Theme
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: sree-financial
*/

/* ===========================
   CSS VARIABLES
=========================== */
:root {
  --blue-dark: #0F4C81;
  --blue-light: #3FA9F5;
  --bg: #f5f9fc;
  --text: #111;
  --muted: #666;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 20px;
  --radius-pill: 40px;

  /* Offer bar height — JS in header.php sets this dynamically.
     42px is the fallback for when JS hasn't run yet.         */
  --ob-height: 42px;
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

/* WordPress wraps content in these divs — remove any padding/margin */
.wp-site-blocks,
#page,
#content,
#primary,
main,
.site,
.site-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

/* ===========================
   OFFER BAR
   The bar itself is position:fixed in header.php so it
   stays at the very top of the viewport at all times.
=========================== */
#sree-offer-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
}

/* ===========================
   NAVBAR
   Sits below the offer bar by --ob-height.
   JS in header.php updates --ob-height on load + resize.
   When the bar is dismissed, body gets .ob-bar-hidden and
   --ob-height is set to 0px so the navbar snaps back up.
=========================== */
/* ===========================
   NAVBAR
=========================== */
/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed;
  top: var(--ob-height);
  left: 0;
  width: 100%;
  background: var(--white);
  padding: 0 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: top 0.3s ease;
  height: 90px;
}

body.ob-bar-hidden .navbar {
  top: 0;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 90px;
  width: auto;
  display: block;
}

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

.nav-links {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
}

.nav-links a:hover,
.nav-links a.current_page_item > a,
.nav-links .current-menu-item > a {
  color: var(--blue-dark);
}

.nav-links .apply-btn {
  background: var(--blue-dark);
  color: var(--white) !important;
  padding: 12px 25px;
  border-radius: 30px;
}

.nav-links .apply-btn:hover {
  background: #08365b;
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--blue-dark);
  border-radius: 3px;
  transition: 0.3s;
}

/* ===========================
   HERO SLIDER
=========================== */
/* ===========================
   HERO SLIDER — offset fix
=========================== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-left: 0;
  left: 0;
  /* Push hero below offer bar + navbar */
  margin-top: calc(var(--ob-height) + 90px);
  height: calc(100vh - var(--ob-height) - 90px);
}

body.ob-bar-hidden .hero {
  margin-top: 90px;
  height: calc(100vh - 90px);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
  padding-top: 240px;
  margin-left: 8%;
}

.hero-content h1 {
  font-size: 60px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-block;
  padding: 15px 35px;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 500;
}

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

.btn-primary:hover {
  background: #08365b;
  transform: translateY(-3px);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

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

/* ===========================
   SECTIONS
=========================== */
section,
.page-section {
  padding: 100px 8%;
}

.section-title {
  font-size: 40px;
  color: var(--blue-dark);
  margin-bottom: 15px;
  line-height: 1.2;
}

.section-text {
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

/* ===========================
   ABOUT
=========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-grid img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  height: 420px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.feature {
  background: var(--blue-dark);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
}

/* ===========================
   SERVICES
=========================== */
.services-section {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: 0.3s;
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  border-bottom-color: var(--blue-light);
}

.service-icon {
  font-size: 52px;
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 14px;
  color: var(--blue-dark);
  font-size: 22px;
  font-weight: 700;
}

.service-card p {
  line-height: 1.9;
  color: var(--muted);
  font-size: 15px;
}

/* ===========================
   WHY US
=========================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.why-card {
  background: var(--white);
  padding: 35px 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

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

.why-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.why-card h3 {
  margin-bottom: 10px;
  color: var(--blue-dark);
  font-size: 17px;
}

.why-card p {
  color: var(--muted);
  font-size: 14px;
}

/* ===========================
   STATS
=========================== */
.stats-section {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-light));
  color: var(--white);
  padding: 80px 8%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}

.stats-grid h2 {
  font-size: 52px;
  margin-bottom: 8px;
  font-weight: 700;
}

.stats-grid p {
  font-size: 16px;
  opacity: 0.9;
}

/* ===========================
   PARTNER PAGE
=========================== */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  margin-top: 50px;
}

.partner-card {
  background: var(--white);
  padding: 35px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: 0.3s;
}

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

.partner-card .picon {
  font-size: 38px;
  margin-bottom: 15px;
}

.partner-card h3 {
  color: var(--blue-dark);
  font-size: 17px;
  margin-bottom: 10px;
}

.partner-card p {
  color: var(--muted);
  font-size: 14px;
}

.partner-form-wrap {
  margin-top: 60px;
  background: var(--white);
  padding: 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 700px;
}

.partner-form-wrap h3 {
  font-size: 26px;
  color: var(--blue-dark);
  margin-bottom: 30px;
}

/* ===========================
   FORMS (shared)
=========================== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid #dde4ee;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #fafcff;
  transition: 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue-light);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(63,169,245,0.12);
}

/* ===========================
   CONTACT PAGE
=========================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-form-box {
  background: var(--white);
  padding: 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form-box h2 {
  font-size: 32px;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.contact-form-box p {
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 15px;
}

.contact-info-box {
  background: linear-gradient(145deg, var(--blue-dark), #1a6db8);
  color: var(--white);
  padding: 50px 40px;
  border-radius: var(--radius);
  position: sticky;
  top: 100px;
}

.contact-info-box h2 {
  font-size: 26px;
  margin-bottom: 35px;
  font-weight: 700;
}

.info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.info-item:last-of-type {
  border-bottom: none;
}

.info-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-item h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.75;
  margin-bottom: 5px;
}

.info-item p {
  font-size: 15px;
  line-height: 1.6;
}

.map-embed {
  margin-top: 30px;
  border-radius: 14px;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 200px;
  border: none;
}

/* ===========================
   PAGE HERO (inner pages)
=========================== */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #1a6db8 60%, var(--blue-light) 100%);
  color: var(--white);
  padding: 160px 8% 80px;
  text-align: center;
}

.page-hero h1 {
  font-size: 50px;
  margin-bottom: 15px;
}

.page-hero p {
  font-size: 18px;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: #07121F;
  color: var(--white);
  padding: 80px 8% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand .logo {
  font-size: 22px;
  margin-bottom: 15px;
  display: block;
}

.footer-brand p {
  color: #aaa;
  line-height: 1.8;
  font-size: 14px;
  margin-bottom: 25px;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 42px;
  height: 42px;
  background: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  transition: 0.3s;
}

.social-icons a:hover {
  background: var(--blue-light);
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 22px;
  color: var(--white);
}

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

.footer-col ul li a {
  color: #aaa;
  font-size: 14px;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: var(--blue-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 25px;
  text-align: center;
  color: #666;
  font-size: 14px;
}

/* ===========================
   WPCF7 form override
=========================== */
.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #dde4ee;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  margin-bottom: 5px;
  outline: none;
  transition: 0.3s;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(63,169,245,0.12);
}

.wpcf7-submit {
  background: var(--blue-dark) !important;
  color: var(--white) !important;
  padding: 14px 35px !important;
  border-radius: var(--radius-pill) !important;
  cursor: pointer !important;
  font-weight: 600 !important;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero-content h1 { font-size: 38px; }
  .section-title { font-size: 30px; }
  .about-grid,
  .contact-layout { grid-template-columns: 1fr; }
  .about-grid img { height: 280px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .stats-grid h2 { font-size: 38px; }
  .page-hero h1 { font-size: 34px; }
  .partner-form-wrap { padding: 30px; }
  .contact-form-box { padding: 30px; }
  .contact-info-box { position: static; }
  section, .page-section { padding: 70px 6%; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--white);
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    padding: 20px 8%;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }
  .hero-content { margin-left: 6%; }
  .hero-content h1 { font-size: 32px; }
  .hero-content p { font-size: 16px; }
  .hero-buttons { gap: 12px; }
  .btn { padding: 12px 24px; font-size: 14px; }
}

/* ===========================
   FULL-BLEED UTILITY
=========================== */
.hero,
.stats-section {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* ===========================
   SERVICES PAGE
=========================== */
.service-list {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  color: var(--muted);
  font-size: 14px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 50px;
  counter-reset: steps;
}

.step-card {
  background: var(--bg);
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  border-top: 4px solid var(--blue-dark);
  transition: 0.3s;
}

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

.step-number {
  font-size: 52px;
  font-weight: 800;
  color: var(--blue-light);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 15px;
}

.step-card h3 {
  color: var(--blue-dark);
  font-size: 18px;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.sree-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-weight: 500;
}
.sree-notice--success {
  background: #ecfdf5;
  border-left: 4px solid #10b981;
  color: #065f46;
}
.sree-notice--error {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
}