/*--------------------------------------------------------------
# Procare Ayrshire - Modern Professional Stylesheet
--------------------------------------------------------------*/

:root {
  --primary: #1a5276;
  --primary-light: #2980b9;
  --primary-dark: #0e3a53;
  --accent: #6c3483;
  --accent-light: #8e44ad;
  --warm: #e8daef;
  --warm-light: #f4ecf7;
  --text-dark: #1a1a2e;
  --text-body: #4a4a5a;
  --text-muted: #7a7a8a;
  --bg-light: #f8f9fc;
  --bg-white: #ffffff;
  --border-light: #e8ecf1;
  --shadow-sm: 0 2px 8px rgba(26, 82, 118, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 82, 118, 0.10);
  --shadow-lg: 0 8px 40px rgba(26, 82, 118, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-body);
  line-height: 1.7;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--text-dark);
  line-height: 1.3;
}

img {
  max-width: 100%;
}

section {
  padding: 100px 0;
  overflow: hidden;
}

/*--------------------------------------------------------------
# Utility Classes
--------------------------------------------------------------*/
.text-accent {
  color: var(--accent);
}

.section-badge {
  display: inline-block;
  background: var(--warm-light);
  color: var(--accent);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-header {
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.2px;
}

.btn-primary-custom:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 82, 118, 0.3);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  border: 2px solid var(--border-light);
  transition: var(--transition);
}

.btn-outline-custom:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(26, 82, 118, 0.04);
  transform: translateY(-2px);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-xl);
  transition: var(--transition);
}

.btn-cta:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108, 52, 131, 0.3);
}

/*--------------------------------------------------------------
# Back to Top Button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 20px;
  z-index: 996;
  background: var(--primary);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: var(--primary-light);
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  background: var(--bg-white);
  z-index: 997;
  transition: var(--transition);
}

#header .header-top {
  background: var(--primary-dark);
  padding: 8px 0;
  font-size: 13px;
}

#header .header-top .contact-info a {
  color: rgba(255, 255, 255, 0.85);
  margin-right: 24px;
  transition: var(--transition);
  font-weight: 400;
}

#header .header-top .contact-info a:hover {
  color: #fff;
}

#header .header-top .contact-info i {
  margin-right: 6px;
  font-size: 12px;
}

#header .header-top .social-links a {
  color: rgba(255, 255, 255, 0.85);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

#header .header-top .social-links a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

#header .header-main {
  padding: 14px 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

#header.header-scrolled .header-top {
  margin-top: -40px;
}

#header .logo img {
  max-height: 44px;
  border-radius: 6px;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
  gap: 4px;
}

.navbar li {
  position: relative;
}

.navbar a {
  display: flex;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border: none;
}

.navbar a:hover,
.navbar .active,
.navbar li:hover > a {
  color: var(--primary);
  background: rgba(26, 82, 118, 0.06);
}

/* Mobile Navigation */
.mobile-nav-toggle {
  color: var(--text-dark);
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: var(--transition);
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }

  .btn-cta {
    margin-right: 12px;
    padding: 8px 16px;
    font-size: 13px;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(26, 26, 46, 0.92);
  transition: 0.3s;
  z-index: 999;
  backdrop-filter: blur(8px);
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 60px;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 16px;
  background-color: var(--bg-white);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.navbar-mobile > ul > li {
  padding: 0;
}

.navbar-mobile a {
  padding: 14px 20px;
  font-size: 16px;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover > a {
  color: var(--primary);
  background: rgba(26, 82, 118, 0.06);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--accent) 100%);
  padding: 160px 0 100px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108,52,131,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-section h1 {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 24px;
}

.hero-section h1 .text-accent {
  color: var(--warm);
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions .btn-primary-custom {
  background: #fff;
  color: var(--primary);
}

.hero-actions .btn-primary-custom:hover {
  background: var(--warm-light);
  color: var(--primary);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn-outline-custom {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.hero-actions .btn-outline-custom:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@media (max-width: 992px) {
  .hero-section {
    padding: 140px 0 80px;
    min-height: auto;
  }

  .hero-section h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 30px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary-custom,
  .hero-actions .btn-outline-custom {
    text-align: center;
    justify-content: center;
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about-section {
  background: var(--bg-white);
  padding: 100px 0;
}

.about-badge-box h2 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-badge-box p {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-badge-box .btn-primary-custom {
  margin-top: 12px;
}

.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  height: 100%;
}

.stat-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.stat-card.elevated {
  margin-top: 24px;
}

.stat-icon {
  width: 56px;
  height: 56px;
  background: var(--warm-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.stat-icon i {
  font-size: 24px;
  color: var(--accent);
}

.stat-card h3 {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .about-badge-box {
    margin-bottom: 48px;
  }

  .stat-card.elevated {
    margin-top: 0;
  }

  .about-badge-box h2 {
    font-size: 32px;
  }
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services-section {
  background: var(--bg-light);
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  height: 100%;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.service-icon i {
  font-size: 28px;
  color: #fff;
}

.service-card h4 {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.service-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

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

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.contact-card:hover .contact-card-icon {
  background: var(--accent);
}

.contact-card-icon i {
  font-size: 20px;
  color: #fff;
}

.contact-card h5 {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.contact-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.contact-form-wrapper {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-light);
}

.contact-form-wrapper .form-label {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.contact-form-wrapper .form-control {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: var(--transition);
}

.contact-form-wrapper .form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.12);
}

.contact-form-wrapper .form-control::placeholder {
  color: #b0b0c0;
}

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

@media (max-width: 991px) {
  .contact-info-cards {
    margin-bottom: 32px;
  }

  .contact-form-wrapper {
    padding: 28px;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

#footer .footer-main {
  padding: 80px 0 40px;
}

#footer .footer-about h3 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

#footer .footer-about p {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 360px;
}

#footer .footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #fff;
  margin-right: 8px;
  transition: var(--transition);
}

#footer .footer-social a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

#footer .footer-links h4,
#footer .footer-contact h4 {
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
}

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

#footer .footer-links ul li {
  padding: 6px 0;
}

#footer .footer-links ul a {
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

#footer .footer-links ul a:hover {
  color: #fff;
  padding-left: 6px;
}

#footer .footer-contact p {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
  line-height: 1.6;
}

#footer .footer-contact i {
  color: var(--accent-light);
  margin-right: 8px;
  font-size: 13px;
}

#footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

#footer .footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

#footer .footer-bottom strong {
  color: rgba(255, 255, 255, 0.75);
}

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

.hero-badge,
.hero-section h1,
.hero-subtitle,
.hero-actions {
  animation: fadeInUp 0.8s ease-out both;
}

.hero-section h1 {
  animation-delay: 0.1s;
}

.hero-subtitle {
  animation-delay: 0.2s;
}

.hero-actions {
  animation-delay: 0.3s;
}

/*--------------------------------------------------------------
# Preloader (kept for compatibility)
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 4px solid var(--primary);
  border-top-color: var(--warm);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 0.8s linear infinite;
}

@keyframes animate-preloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
