/*
Theme Name: Aparna Associates Premium
Theme URI: https://aparnaassociates.in
Author: Aparna Associates
Description: Premium Company Secretaries theme with advanced features
Version: 3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aparna-associates
*/

:root {
  --primary-color: #2c3e50;
  --secondary-color: #34495e;
  --accent-color: #e74c3c;
  --accent-light: #c0392b;
  --gold: #f39c12;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #ecf0f1;
  --bg-dark: #34495e;
  --white: #ffffff;
  --success: #27ae60;
}

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

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-light);
}

/* Top Bar */
.top-bar {
  background: var(--bg-dark);
  color: var(--white);
  padding: 0.75rem 0;
  font-size: 0.9rem;
}

.top-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  gap: 2rem;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
}

.top-bar-contact:hover {
  color: var(--gold);
}

.top-bar-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  color: var(--white);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

/* Main Header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1000;
  padding: 1rem 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  max-height: 50px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Navigation */
.main-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}

.main-navigation > ul > li {
  position: relative;
}

.main-navigation a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.main-navigation > ul > li > a:hover,
.main-navigation > ul > li.current-menu-item > a {
  color: var(--accent-color);
}

/* Dropdown Arrow */
.main-navigation li.menu-item-has-children > a::after {
  content: ' ▾';
  font-size: 0.8rem;
  margin-left: 0.25rem;
}

/* Dropdown Menu */
.main-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 250px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 0.5rem 0;
}

.main-navigation li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation .sub-menu li {
  display: block;
}

.main-navigation .sub-menu a {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  text-transform: none;
  border-left: 3px solid transparent;
}

.main-navigation .sub-menu a:hover {
  background: var(--bg-light);
  border-left-color: var(--accent-color);
  color: var(--accent-color);
}

/* CTA Button in Header */
.header-cta {
  margin-left: 1rem;
}

.cta-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--accent-color);
  color: var(--white);
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid var(--accent-color);
}

.cta-button:hover {
  background: var(--white);
  color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-dark) 100%);
  color: var(--white);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(231, 76, 60, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(243, 156, 18, 0.1) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-color);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease;
}

.hero-title {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.cta-button-primary {
  padding: 1rem 2.5rem;
  background: var(--accent-color);
  color: var(--white);
  border: 2px solid var(--accent-color);
}

.cta-button-secondary {
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

/* Content Sections */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  font-size: 2.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title-underline {
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  margin: 1rem auto 2rem;
  border-radius: 2px;
}

/* Feature Cards */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border-top: 4px solid var(--accent-color);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-color), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border-left: 4px solid var(--accent-color);
}

.service-card:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.service-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Why Choose Us Section */
.why-choose-section {
  background: var(--bg-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-light);
  font-size: 1rem;
}

/* Contact Section */
.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  background: var(--bg-light);
  padding: 2.5rem;
  border-radius: 15px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 10px;
}

.contact-icon-wrapper {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-color), var(--gold));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--white);
}

.contact-details h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-details p,
.contact-details a {
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

.contact-details a:hover {
  color: var(--accent-color);
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-button {
  width: 100%;
  background: var(--accent-color);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
}

/* Footer */
.site-footer {
  background: var(--bg-dark) !important;
  color: var(--white) !important;
  padding: 4rem 2rem 2rem !important;
  display: block !important;
  width: 100% !important;
  clear: both !important;
}

.footer-content {
  max-width: 1200px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 3rem !important;
  margin-bottom: 3rem !important;
}

.footer-about h3,
.footer-links h3,
.footer-services h3,
.footer-contact h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-about p {
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.footer-links ul,
.footer-services ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-services li {
  margin-bottom: 0.75rem;
}

.footer-links a,
.footer-services a {
  color: rgba(255,255,255,0.8);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.footer-links a:hover,
.footer-services a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.footer-contact p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-contact a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-contact small {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}

.footer-social-icon:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255,255,255,0.7);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 768px) {
  .top-bar-container {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .header-container {
    flex-wrap: wrap;
  }
  
  .main-navigation {
    width: 100%;
    margin-top: 1rem;
  }
  
  .main-navigation ul {
    flex-direction: column;
    width: 100%;
  }
  
  .main-navigation .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
  }
  
  .header-cta {
    width: 100%;
    margin: 1rem 0 0;
  }
  
  .cta-button {
    width: 100%;
    text-align: center;
  }
  
  .logo-img {
    max-height: 40px;
    max-width: 140px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  
  .contact-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .content-section {
    padding: 3rem 1.5rem;
  }
}

/* WordPress Core Compatibility */
.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
