/*
Theme Name: Psych Care Elementor
Theme URI: https://example.com
Author: Madras Academy
Description: Minimal Elementor-friendly theme for psychologists, therapists & coaches.
Version: 1.2
Text Domain: psych-care-elementor
*/

/* ====================================
   GLOBAL VARIABLES & BASE STYLES
==================================== */
:root {
  --pc-bg: #f4f5f6;
  --pc-white: #ffffff;
  /* --pc-primary: #d39259; */
  --pc-primary: #29355a;
  --pc-dark: #2a2a2a;
  --pc-muted: #808080;
  --pc-radius-lg: 20px;
  --pc-shadow: 0 20px 50px rgba(0,0,0,0.04);
}

html, body {
  overflow-x: hidden !important;
}

body {
  background: var(--pc-bg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--pc-dark);
  line-height: 1.6;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.pc-container {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ====================================
   TOP BAR
==================================== */
.top-bar {
  background: var(--pc-primary);
  color: #fff;
  font-size: 14px;
  padding: 8px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-left,
.top-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-right a {
  color: #fff;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.top-right a:hover {
  opacity: 0.8;
}

.pc-appointment-btn {
  background: #b97b43;
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  display: inline-block;
  white-space: nowrap;
}

/* ====================================
   HEADER CONTAINER & BRANDING
==================================== */
header.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.site-header-inner {
  width: min(1180px, 90%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  padding: 15px 0;
  box-sizing: border-box;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-branding img {
  height: auto;
  max-height: 70px;
  transition: all 0.3s ease;
}

.site-branding h1,
.site-branding a {
  font-weight: 700;
  font-size: 1.25rem;
  color: #000;
}

/* ====================================
   NAVIGATION (PRIMARY MENU)
==================================== */
.primary-menu {
  display: flex;
  align-items: center;
}

.primary-menu ul {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu li {
  position: relative;
}

.primary-menu a {
  color: #222;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color 0.3s, background 0.3s;
  display: inline-block;
}

.primary-menu a:hover,
.primary-menu ul li.current-menu-item > a {
  color: var(--pc-primary);
}

/* --- Dropdowns --- */
.primary-menu ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  padding: 10px 0;
  border-radius: 6px;
  z-index: 9999;
  gap:2px;
}

.primary-menu ul ul a {
  padding: 10px 15px;
  font-weight: 500;
  display: block;
}

.primary-menu ul ul a:hover {
  background: #f8f8f8;
  color: var(--pc-primary);
}

.primary-menu ul ul ul {
  left: 100%;
  top: 0;
}

@media (min-width: 992px) {
  .primary-menu li:hover > ul {
    display: flex;
  }
}

/* --- Mobile Menu --- */
.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .primary-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
  }

  .primary-menu.active {
    display: block;
  }

  .primary-menu ul {
    flex-direction: column;
    gap: 0;
  }

  .primary-menu li {
    border-bottom: 1px solid #eee;
  }

  .primary-menu li ul {
    position: static;
    box-shadow: none;
    display: none;
    padding-left: 20px;
  }

  .primary-menu li.show > ul {
    display: block;
  }

  .primary-menu li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
  }

  .submenu-toggle {
    cursor: pointer;
    font-size: 16px;
    color: var(--pc-primary);
  }
}

/* ====================================
   FOOTER
==================================== */
.site-footer {
  background: #29355a;;
  color: #fff;
  padding: 60px 0 40px;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

.footer-inner {
  width: min(1180px, 90%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
}

.footer-col {
  min-width: 0;
  word-break: break-word;
}

.footer-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.footer-subtitle {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.footer-menu,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 8px;
}

.footer-menu a {
  color: #fff;
  opacity: 0.9;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
}

.footer-menu a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-contact {
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  justify-content: flex-start;
}

.footer-bottom {
  width: min(1180px, 90%);
  margin: 40px auto 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ====================================
   RESPONSIVE ADJUSTMENTS
==================================== */
@media (max-width: 768px) {
  .top-bar-inner { flex-direction: column; text-align: center; gap: 8px; }
  .top-left, .top-right { justify-content: center; gap: 10px; }
  .pc-appointment-btn { margin-top: 6px; font-size: 12px; padding: 7px 12px; }

  .footer-inner {
    text-align: center;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 15px;
  }
  .footer-contact li { justify-content: center; }
  .footer-bottom { font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .footer-title { font-size: 1.2rem; }
  .footer-subtitle { font-size: 1rem; }
  .footer-contact { font-size: 0.9rem; }
}