/*
Theme Name: Astra Child
Template: astra
Version: 1.1.0
*/

/* ============================================
   PARISHAD BHAVAN - MODERN HOMEPAGE STYLES
   ============================================ */

/* Global Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Hero Section */
body.home .pb-hero {
  position: relative;
  overflow: hidden;
}

body.home .pb-hero.wp-block-cover {
  padding: 0;
}

body.home .pb-hero .wp-block-cover__inner-container {
  width: 100%;
  padding: clamp(80px, 10vw, 140px) 16px;
}

body.home .pb-hero .wp-block-cover__image-background {
  animation: subtle-zoom 25s ease-in-out infinite alternate;
}

@keyframes subtle-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

body.home .pb-kicker {
  margin: 0 0 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.home .pb-title {
  margin: 0 0 8px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.home .pb-subtitle {
  margin: 0 0 24px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

body.home .pb-motto {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.home .pb-motto:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* Button Animations */
body.home .wp-block-button__link {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

body.home .wp-block-button__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

body.home .wp-block-button__link:active {
  transform: translateY(-1px);
}

body.home .pb-btn-primary .wp-block-button__link:hover {
  background: #f0fdf4 !important;
}

body.home .pb-btn-secondary .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

/* Section Styling */
body.home .pb-section {
  position: relative;
}

body.home .pb-section h2 {
  margin: 0;
  position: relative;
}

body.home .pb-lead {
  margin: 0;
  max-width: 720px;
}

/* Feature Cards */
body.home .pb-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  height: 100%;
}

body.home .pb-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

body.home .pb-card h3 {
  margin: 0;
  color: #0f172a;
}

body.home .pb-card p {
  margin: 0;
  color: #475569;
}

/* CTA Section */
body.home .pb-cta {
  position: relative;
  overflow: hidden;
}

body.home .pb-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

body.home .pb-cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 782px) {
  body.home .pb-hero .wp-block-cover__inner-container {
    padding: clamp(60px, 8vw, 100px) 16px;
  }

  body.home .wp-block-columns {
    gap: 16px;
  }
  
  body.home .pb-cta .wp-block-columns {
    text-align: center;
  }
  
  body.home .pb-cta .wp-block-column:first-child p {
    text-align: center !important;
  }
}

/* Smooth fade-in animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.home .pb-section > .wp-block-group {
  animation: fadeInUp 0.6s ease-out;
}

/* Links in sections */
body.home .pb-section a:not(.wp-block-button__link) {
  color: #0b3b5a;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

body.home .pb-section a:not(.wp-block-button__link):hover {
  border-bottom-color: #0b3b5a;
}

/* Focus styles for accessibility */
body.home .wp-block-button__link:focus-visible {
  outline: 3px solid rgba(11, 59, 90, 0.5);
  outline-offset: 3px;
}

body.home a:focus-visible {
  outline: 2px solid #0b3b5a;
  outline-offset: 2px;
}

/* ============================================
   HEADER & NAVIGATION STYLES
   ============================================ */

/* Header Background */
.site-header .main-header-bar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
}

.site-header .ast-builder-grid-row {
  align-items: center;
}

@media (min-width: 922px) {
  .site-header .site-header-section-left {
    max-width: 420px;
  }

  .site-header .site-title {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    color: #0f172a;
  }
}

.site-header .site-header-primary-section-right {
  gap: 12px;
  align-items: center;
}

.site-header #primary-site-navigation-desktop .main-navigation,
.site-header #primary-site-navigation-desktop .main-navigation > ul,
.site-header #primary-site-navigation-desktop .main-header-menu {
  align-items: center;
}

.site-header #primary-site-navigation-desktop .main-header-menu {
  justify-content: flex-end;
  gap: 6px;
  row-gap: 10px;
  margin: 0;
}

.site-header #primary-site-navigation-desktop .main-header-menu > .menu-item {
  flex: 0 0 auto;
}

.site-header .main-navigation .main-header-menu > .menu-item > .menu-link {
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.15;
  white-space: nowrap;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
}

.site-header .main-navigation .main-header-menu > .menu-item:hover > .menu-link,
.site-header .main-navigation .main-header-menu > .menu-item:focus-within > .menu-link {
  background: rgba(11, 59, 90, 0.08);
  color: #0b3b5a;
}

.site-header .main-navigation .main-header-menu > .menu-item.current-menu-item > .menu-link,
.site-header .main-navigation .main-header-menu > .menu-item.current-menu-ancestor > .menu-link {
  background: rgba(11, 59, 90, 0.12);
  color: #0b3b5a;
}

.site-header .main-navigation .main-header-menu > .menu-item > .menu-link:focus-visible,
.site-header .menu-toggle:focus-visible {
  outline: 3px solid rgba(11, 59, 90, 0.35);
  outline-offset: 2px;
}

/* Header CTA button */
.site-header .ast-header-button-1 .ast-custom-button {
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b3b5a 0%, #164e63 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(11, 59, 90, 0.25);
  transition: all 0.25s ease;
}

.site-header .ast-header-button-1 .ast-custom-button-link:hover .ast-custom-button,
.site-header .ast-header-button-1 .ast-custom-button-link:focus-visible .ast-custom-button {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 59, 90, 0.35);
}

.site-header .ast-header-button-1 .ast-builder-button-wrap > a.menu-link {
  display: none !important;
}

/* Dropdown Menus */
.site-header .main-navigation .main-header-menu .sub-menu {
  border-radius: 16px;
  padding: 10px 8px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
}

.site-header .main-navigation .main-header-menu .sub-menu .menu-link {
  border-radius: 10px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.site-header .main-navigation .main-header-menu .sub-menu .menu-link:hover {
  background: rgba(11, 59, 90, 0.08);
}

.ast-container, .ast-container-fluid {
  padding-left: 0px;
  padding-right: 0px;
}

#primary {
  margin: 0;
}

/* Mobile Menu */
@media (max-width: 921px) {
  .site-header .menu-toggle {
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 8px 12px;
    transition: all 0.2s ease;
  }

  .site-header .menu-toggle:hover {
    background: rgba(11, 59, 90, 0.1);
  }

  .ast-builder-menu-mobile .main-navigation .main-header-menu,
  .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-link,
  .ast-builder-menu-mobile .main-navigation .main-header-menu .sub-menu {
    background: #ffffff !important;
  }

  .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item > .menu-link {
    color: #0f172a;
    font-weight: 600;
    padding: 14px 16px;
    border-radius: 10px;
    margin: 2px 8px;
  }

  .ast-builder-menu-mobile .main-navigation .menu-item:hover > .menu-link,
  .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item > .menu-link,
  .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-ancestor > .menu-link {
    background: rgba(11, 59, 90, 0.08);
    color: #0b3b5a;
  }
}

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

.site-footer {
  background: #0f172a;
  color: #94a3b8;
}

.site-footer a {
  color: #e2e8f0;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer .ast-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   GENERAL ENHANCEMENTS
   ============================================ */

/* Better text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Selection color */
::selection {
  background: rgba(11, 59, 90, 0.2);
  color: #0f172a;
}

/* Smooth page transitions */
.entry-content {
  animation: pageLoad 0.4s ease-out;
}

@keyframes pageLoad {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================
   CUSTOM SVG ICONS
   ============================================ */

.pb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #000;
  color: #ffffff;
  flex-shrink: 0;
}

.pb-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.pb-icon-lg {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.pb-icon-lg svg {
  width: 28px;
  height: 28px;
}

.pb-icon-sm {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.pb-icon-sm svg {
  width: 20px;
  height: 20px;
}

/* Card icon styling */
body.home .pb-card .pb-icon {
  margin-bottom: 16px;
}

/* Inline icon in text */
.pb-icon-inline {
  display: inline-flex;
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.15em;
  margin-right: 0.3em;
  background: none;
  color: inherit;
}

.pb-icon-inline svg {
  width: 100%;
  height: 100%;
}

/* Service Cards Enhancement */
.pb-service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.pb-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(11, 59, 90, 0.15);
}

/* Page Header Styling */
.pb-page-header {
  position: relative;
}

.pb-page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0b3b5a 0%, #22d3ee 50%, #0b3b5a 100%);
}

/* Bank Details Box */
.pb-bank-details {
  position: relative;
  overflow: hidden;
}

.pb-bank-details::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(11, 59, 90, 0.1) 0%, transparent 100%);
  border-radius: 0 0 0 100%;
}

/* Highlight Box */
.pb-highlight-box {
  position: relative;
}

/* Page Section Animations */
.pb-page-section {
  position: relative;
}

/* Leadership Cards */
.pb-card p[style*="uppercase"] {
  letter-spacing: 1.5px;
}

/* Responsive adjustments for inner pages */
@media (max-width: 768px) {
  .pb-page-header {
    padding: 40px 20px !important;
  }
  
  .pb-page-section {
    padding: 50px 20px !important;
  }
  
  .pb-service-card {
    margin-bottom: 16px;
  }
}
