/* ========================================
   Modern Medical Practice Website Redesign
   ======================================== */

/* Color Variables */
:root {
  --primary-color: #d946ef;
  --primary-dark: #c026d3;
  --secondary-color: #1f2937;
  --accent-light: #fce7f3;
  --text-dark: #1a1a1a;
  --text-gray: #666666;
  --text-light: #999999;
  --bg-light: #f9f7f4;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --success: #10b981;
  --error: #ef4444;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.footer-bottom p {
  color: #fff;
  margin-bottom: 1rem;
}


a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Container */
.container-modern {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary-large {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: 0.75rem;
}

.btn-primary-large:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-secondary-large {
  background: transparent;
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border: 2px solid var(--primary-color);
  border-radius: 0.75rem;
}

.btn-secondary-large:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-white-large {
  background: white;
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: 0.75rem;
  font-weight: 700;
}

.btn-white-large:hover {
  background: var(--accent-light);
}

/* ========================================
   Navigation Header
   ======================================== */
.navbar-modern {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--primary-color);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

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

.navbar-brand {
  flex: 1;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: #fef3c7;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
  margin: 0;
}

.nav-link {
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #fef3c7;
  transition: var(--transition);
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 100%;
}

.nav-cta {
  background: #fef3c7;
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
  margin-top: 80px;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a5e31 100%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  animation: slideInLeft 0.8s ease-out;
}

.hero-badge {
  display: inline-block;
  background: #fef3c7;
  color: #15803d;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: white;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.hero-feature i {
  color: var(--success);
  font-size: 1.25rem;
}

.hero-visual {
  animation: slideInRight 0.8s ease-out;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.hero-badge-float {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  animation: float 3s ease-in-out infinite;
}

.badge-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
}

.badge-text {
  font-size: 0.75rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   Trust Section
   ======================================== */
.trust-section {
  padding: 4rem 0;
  background: white;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.trust-card {
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--bg-light);
  transition: var(--transition);
}

.trust-card:hover {
  background: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.trust-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: var(--primary-color);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.75rem;
}

.trust-card h3 {
  margin-bottom: 0.75rem;
}

.trust-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
  padding: 5rem 0;
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-left {
  animation: slideInLeft 0.8s ease-out;
}

.about-image-container {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image {
  width: 100%;
  display: block;
  transition: var(--transition);
}

.about-image-container:hover .about-image {
  transform: scale(1.05);
}

.about-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(24, 68, 76, 0.9), transparent);
  padding: 2rem;
  color: white;
  transform: translateY(100%);
  transition: var(--transition);
}

.about-image-container:hover .about-overlay {
  transform: translateY(0);
}

.about-right {
  animation: slideInRight 0.8s ease-out;
}

.about-right h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.about-intro {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.highlight-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.highlight-item:last-child {
  border-bottom: none;
}

.highlight-item h4 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.highlight-item i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.highlight-item p {
  margin: 0;
  font-size: 0.95rem;
}

.about-location {
  font-weight: 600;
  color: var(--text-dark);
}

/* ========================================
   Services Section
   ======================================== */
.services-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(4, 158, 187, 0.03) 0%, transparent 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  border-radius: 1.25rem;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--primary-color);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
}

.service-card-1 { --card-color: #049ebb; }
.service-card-2 { --card-color: #2563eb; }
.service-card-3 { --card-color: #10b981; }
.service-card-4 { --card-color: #f59e0b; }
.service-card-5 { --card-color: #8b5cf6; }
.service-card-6 { --card-color: #ec4899; }

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--card-color, var(--primary-color)) 0%, rgba(4, 158, 187, 0.2) 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-color, var(--primary-color));
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-gray);
  font-size: 0.9rem;
}

.service-list li:before {
  content: '✓';
  color: var(--card-color, var(--primary-color));
  font-weight: 700;
  width: 20px;
  text-align: center;
}

/* ========================================
   Why Choose Section
   ======================================== */
.why-choose-section {
  padding: 5rem 0;
  background: white;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.why-card {
  padding: 2rem;
  border-radius: 1rem;
  background: var(--bg-light);
  position: relative;
  transition: var(--transition);
}

.why-card:hover {
  background: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.why-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  opacity: 0.2;
  margin-bottom: -0.5rem;
}

.why-card h4 {
  margin-bottom: 0.75rem;
  color: var(--secondary-color);
}

.why-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(4, 158, 187, 0.05) 0%, transparent 100%);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-details h4 {
  margin-bottom: 0.5rem;
}

.contact-details p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

.text-small {
  font-size: 0.85rem;
  color: var(--text-light);
}

.contact-form-wrapper {
  background: white;
  padding: 2.5rem;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--bg-light);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(4, 158, 187, 0.1);
}

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

.form-agreement {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.form-agreement input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.form-agreement label {
  margin: 0;
  cursor: pointer;
  line-height: 1.5;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a5e31 100%);
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
  margin-bottom: 1rem;
  font-size: 2.25rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* ========================================
   Footer
   ======================================== */
.footer-modern {
  padding: 4rem 0 2rem;
  background: var(--primary-color);
  color: white;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition);
}

.footer-section a:hover {
  color: black;
}

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

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.social-link:hover {
  background: #fef3c7;
  color: var(--primary-color);
}

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

/* ========================================
   Scroll to Top Button
   ======================================== */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* ========================================
   Animations
   ======================================== */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }

  .navbar-menu.active {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .why-choose-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .hero-section,
  .about-section,
  .services-section,
  .why-choose-section,
  .contact-section {
    padding: 3rem 0;
  }

  .trust-section {
    padding: 2.5rem 0;
  }

  .cta-section {
    padding: 2.5rem 0;
  }

  .footer-modern {
    padding: 2.5rem 0 1.5rem;
  }

  .hero-badge-float {
    right: 1rem;
    bottom: 1rem;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .container-modern {
    padding: 0 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .navbar-container {
    padding: 0.75rem 1rem;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .btn-primary-large,
  .btn-secondary-large,
  .btn-white-large {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero-features {
    gap: 0.75rem;
  }

  .hero-cta-group {
    gap: 1rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }

  .hero-badge-float {
    display: none;
  }

  .scroll-top-btn {
    width: 45px;
    height: 45px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}
