/* Responsive Frontend CSS for Aruniva Clinic */
/* This file contains comprehensive responsive styles for all frontend pages */

/* Base responsive typography */
@media (max-width: 1200px) {
  h1 {
    font-size: 3.5rem;
  }
  h2 {
    font-size: 2.75rem;
  }
  h3 {
    font-size: 2rem;
  }
  h4 {
    font-size: 1.75rem;
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.25rem;
  }
  h3 {
    font-size: 1.75rem;
  }
  h4 {
    font-size: 1.5rem;
  }
  h5 {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  h2 {
    font-size: 2rem;
    line-height: 1.3;
  }
  h3 {
    font-size: 1.5rem;
  }
  h4 {
    font-size: 1.25rem;
  }
  h5 {
    font-size: 1.125rem;
  }
  h6 {
    font-size: 1rem;
  }
  p {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  h2 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  h3 {
    font-size: 1.375rem;
  }
  h4 {
    font-size: 1.125rem;
  }
  h5 {
    font-size: 1rem;
  }
  h6 {
    font-size: 0.95rem;
  }
  p {
    font-size: 0.9rem;
  }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: var(--color-accent, #C4AEA1);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle:hover .hamburger-line {
  background-color: var(--color-secondary, #FFB3A7);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav-menu {
  background: rgba(255, 249, 247, 0.98);
  border-top: 1px solid var(--color-border, #E0D2CA);
  backdrop-filter: blur(10px);
}

.mobile-nav-menu .btn-custom {
  text-align: center;
  width: 100%;
  margin-bottom: 0.5rem;
}

.mobile-nav-menu .btn-custom:last-child {
  margin-bottom: 0;
}

/* Header responsive styles */
@media (max-width: 992px) {
  header {
    padding: 1rem 0;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .btn-custom {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  header .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .d-flex.gap-3 {
    gap: 0.75rem !important;
  }
  
  .btn-custom {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  header .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .navbar-brand {
    font-size: 1.125rem;
  }
  
  .d-flex.gap-3 {
    gap: 0.5rem !important;
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-custom {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    text-align: center;
  }
}

/* Hero section responsive styles */
@media (max-width: 992px) {
  #hero {
    padding: 4rem 2rem;
  }
  
  #hero .subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  #hero {
    padding: 3rem 1.5rem;
    text-align: center;
  }
  
  #hero .subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .btn-custom.btn-accent {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  #hero {
    padding: 2rem 1rem;
  }
  
  #hero .subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }
  
  .btn-custom.btn-accent {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 280px;
  }
}

/* Process section responsive styles */
@media (max-width: 992px) {
  #process-section {
    flex-direction: column;
  }
  
  .process-visual,
  .process-steps {
    width: 100%;
  }
  
  .process-visual {
    height: 300px;
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .process-visual {
    height: 250px;
    margin-bottom: 1.5rem;
  }
  
  .step {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .step-number {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .process-visual {
    height: 200px;
    margin-bottom: 1rem;
  }
  
  .step {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .step-number {
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
  }
}

/* Services section responsive styles */
@media (max-width: 768px) {
  #services .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .service-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  #services .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .service-card {
    padding: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .service-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }
  
  .col-lg-4.col-md-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Products section responsive styles */
@media (max-width: 768px) {
  #products .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .product-card {
    margin-bottom: 1rem;
  }
  
  .product-content {
    padding: 1rem;
  }
  
  .product-price {
    font-size: 1.125rem;
  }
}

@media (max-width: 576px) {
  #products .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .product-card {
    margin-bottom: 0.75rem;
  }
  
  .product-content {
    padding: 0.75rem;
  }
  
  .product-price {
    font-size: 1rem;
  }
  
  .col-lg-4.col-md-6 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Form responsive styles */
@media (max-width: 768px) {
  .form-control {
    font-size: 16px;
    padding: 0.75rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .form-control {
    font-size: 16px;
    padding: 0.875rem;
  }
  
  .btn-lg {
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    width: 100%;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .col-md-6 {
    margin-bottom: 1rem;
  }
}

/* Container responsive adjustments */
@media (max-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 960px;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 720px;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 576px) {
  .container {
    max-width: 540px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Grid system responsive adjustments */
@media (max-width: 768px) {
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media (max-width: 576px) {
  .row {
    margin-left: -0.375rem;
    margin-right: -0.375rem;
  }
  
  .row > * {
    padding-left: 0.375rem;
    padding-right: 0.375rem;
  }
}

/* Button responsive styles */
@media (max-width: 768px) {
  .btn-custom {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .btn-custom {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .btn-lg {
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* Footer responsive styles */
@media (max-width: 768px) {
  footer {
    padding: 2rem 1rem;
  }
  
  footer .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 576px) {
  footer {
    padding: 1.5rem 0.75rem;
  }
  
  footer .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  footer small {
    font-size: 0.8rem;
  }
}

/* Floating CTA responsive styles */
.floating-cta-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 90;
}

.consultation-cta {
  background: linear-gradient(135deg, var(--color-accent, #C4AEA1), var(--color-secondary, #FFB3A7));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 25px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(196, 174, 161, 0.4);
  transition: all 0.3s var(--ease-out-expo, cubic-bezier(0.19, 1, 0.22, 1));
  animation: pulse 2s infinite;
  cursor: pointer;
  font-size: 1rem;
  white-space: nowrap;
}

.consultation-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(196, 174, 161, 0.5);
  color: white;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@media (max-width: 768px) {
  .floating-cta-wrapper {
    bottom: 20px;
    right: 20px;
  }
  
  .consultation-cta {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .floating-cta-wrapper {
    bottom: 15px;
    right: 15px;
  }
  
  .consultation-cta {
    padding: 10px 15px;
    font-size: 0.85rem;
    border-radius: 40px;
  }
  
  .consultation-cta i {
    font-size: 1.1rem;
  }
}

@media (max-width: 420px) {
  .floating-cta-wrapper {
    bottom: 10px;
    right: 10px;
  }
  
  .consultation-cta {
    padding: 8px 12px;
    font-size: 0.8rem;
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Preloader responsive styles */
@media (max-width: 768px) {
  .preloader-logo {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .preloader-logo {
    font-size: 1.25rem;
  }
}

/* Animation responsive adjustments */
@media (max-width: 768px) {
  .fade-in-up {
    animation-duration: 0.6s;
  }
}

@media (max-width: 576px) {
  .fade-in-up {
    animation-duration: 0.5s;
  }
}

/* Spacing responsive adjustments */
@media (max-width: 768px) {
  .py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  
  .mt-4 {
    margin-top: 1.5rem !important;
  }
}

@media (max-width: 576px) {
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .mb-5 {
    margin-bottom: 1.5rem !important;
  }
  
  .mt-4 {
    margin-top: 1rem !important;
  }
}

/* Text alignment responsive */
@media (max-width: 576px) {
  .text-center {
    text-align: center !important;
  }
  
  .text-start {
    text-align: left !important;
  }
}

/* Image responsive */
@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }
}

/* Table responsive */
@media (max-width: 768px) {
  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Card responsive */
@media (max-width: 768px) {
  .card {
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 1.25rem;
  }
}

@media (max-width: 576px) {
  .card {
    margin-bottom: 0.75rem;
  }
  
  .card-body {
    padding: 1rem;
  }
}

/* List responsive */
@media (max-width: 576px) {
  .list-unstyled li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }
}

/* Form check responsive */
@media (max-width: 576px) {
  .form-check {
    margin-bottom: 0.75rem;
  }
  
  .form-check-label {
    font-size: 0.9rem;
  }
}

/* Utility classes for responsive design */
.d-block-mobile {
  display: none;
}

.d-none-mobile {
  display: block;
}

@media (max-width: 768px) {
  .d-block-mobile {
    display: block !important;
  }
  
  .d-none-mobile {
    display: none !important;
  }
}

/* Responsive text sizes */
.text-responsive {
  font-size: 1rem;
}

@media (max-width: 768px) {
  .text-responsive {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .text-responsive {
    font-size: 0.85rem;
  }
}

/* Responsive margins and paddings */
@media (max-width: 768px) {
  .p-responsive {
    padding: 1rem !important;
  }
  
  .m-responsive {
    margin: 1rem !important;
  }
}

@media (max-width: 576px) {
  .p-responsive {
    padding: 0.75rem !important;
  }
  
  .m-responsive {
    margin: 0.75rem !important;
  }
}

/* Fix for iOS zoom on input focus */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  select,
  textarea,
  input[type="text"],
  input[type="password"],
  input[type="datetime"],
  input[type="datetime-local"],
  input[type="date"],
  input[type="month"],
  input[type="time"],
  input[type="week"],
  input[type="number"],
  input[type="email"],
  input[type="url"],
  input[type="search"],
  input[type="tel"],
  input[type="color"] {
    font-size: 16px;
  }
}

/* Responsive overflow handling */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
}

/* Responsive line heights */
@media (max-width: 576px) {
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
  }
  
  p {
    line-height: 1.5;
  }
}

/* Responsive word wrapping */
@media (max-width: 576px) {
  .text-wrap {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}