/* ==========================================================================
   Surg4Vet - Stylesheet
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-dark: #202020;
  --color-aqua: #02ABB0;
  --color-aqua-dark: #028f93;
  --color-blue: #3535A6;
  --color-white: #FFFFFF;
  --color-light-gray: #F5F7F8;
  --color-mid-gray: #E8ECED;
  --color-text: #202020;
  --color-text-light: #5A6268;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-nav: 'Lato', sans-serif;

  --max-width: 1200px;
  --header-height: 80px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.7;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-dark);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-nav);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--color-aqua);
  color: var(--color-white);
  border-color: var(--color-aqua);
}

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

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

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

.btn-outline {
  background: transparent;
  color: var(--color-aqua);
  border-color: var(--color-aqua);
}

.btn-outline:hover {
  background: var(--color-aqua);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
  transition: all var(--transition);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.logo img {
  height: 44px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-list a {
  font-family: var(--font-nav);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-aqua);
}

.nav-list a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--color-aqua);
  border-radius: 1px;
}

.nav-list .btn {
  padding: 10px 24px;
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a1a2e 50%, var(--color-blue) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(2, 171, 176, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(2, 171, 176, 0.15);
  border: 1px solid rgba(2, 171, 176, 0.3);
  border-radius: 50px;
  color: var(--color-aqua);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--color-white);
  font-size: 3.2rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--color-aqua);
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 540px;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../assets/images/Hero.png') center center / cover no-repeat;
  opacity: 0.3;
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--color-light-gray);
}

.section-dark {
  background: var(--color-dark);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-header .label {
  display: inline-block;
  color: var(--color-aqua);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.05rem;
}

/* --- USP Cards --- */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.usp-card {
  background: var(--color-white);
  padding: 36px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition);
}

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

.usp-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: rgba(2, 171, 176, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.usp-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-aqua);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.usp-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.usp-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Product Categories --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card-image {
  height: 220px;
  background: var(--color-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 28px;
}

.product-card-body h3 {
  margin-bottom: 10px;
}

.product-card-body p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.product-card-body .btn {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* --- Social Proof / Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--color-white);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--color-aqua);
  opacity: 0.2;
  position: absolute;
  top: 12px;
  left: 24px;
  font-family: serif;
  line-height: 1;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  fill: #F5A623;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-mid-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-aqua);
  font-size: 0.9rem;
}

.testimonial-author-info strong {
  display: block;
  font-size: 0.9rem;
}

.testimonial-author-info span {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-aqua), var(--color-blue));
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 32px;
}

/* --- Steps / How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-aqua);
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.step-card h3 {
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.9rem;
}

/* --- Advantages List --- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.advantage-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.advantage-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(2, 171, 176, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-aqua);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.advantage-item h4 {
  margin-bottom: 6px;
}

.advantage-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- About / Content Sections --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text .label {
  display: inline-block;
  color: var(--color-aqua);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.about-text p {
  margin-bottom: 16px;
}

.about-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Values --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.value-card {
  text-align: center;
  padding: 40px 28px;
}

.value-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: rgba(2, 171, 176, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-aqua);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Contact / Forms --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--color-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-mid-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-dark);
  transition: border-color var(--transition);
  background: var(--color-white);
}

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

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

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #e74c3c;
}

.form-error {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.form-group input.error + .form-error,
.form-group textarea.error + .form-error,
.form-group select.error + .form-error {
  display: block;
}

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

.contact-info {
  padding: 40px;
  background: var(--color-dark);
  border-radius: var(--radius-md);
  color: var(--color-white);
}

.contact-info h3 {
  color: var(--color-white);
  margin-bottom: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-info-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-aqua);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-info-item a {
  color: var(--color-aqua);
}

/* --- Tabs (for contact page) --- */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  background: var(--color-light-gray);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  background: none;
  border: none;
  font-family: var(--font-nav);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-light);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.tab-btn.active {
  background: var(--color-white);
  color: var(--color-aqua);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 20px;
  max-width: 280px;
}

.footer-brand img {
  height: 36px;
}

.footer h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer ul a:hover {
  color: var(--color-aqua);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: var(--color-aqua);
}

/* --- Page Header (subpages) --- */
.page-header {
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a1a2e 100%);
  padding: 140px 0 80px;
  text-align: center;
}

.page-header h1 {
  color: var(--color-white);
  font-size: 2.6rem;
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb span {
  color: var(--color-aqua);
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.3);
}

/* --- Intro Section (about page) --- */
.intro-section {
  padding: 100px 0;
}

.intro-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-text h2 {
  margin-bottom: 20px;
}

.intro-text p {
  font-size: 1.05rem;
}

/* --- Example Sets (custom procedure sets) --- */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.example-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.example-card-header {
  background: linear-gradient(135deg, var(--color-aqua), var(--color-blue));
  padding: 24px 28px;
  color: var(--color-white);
}

.example-card-header h3 {
  color: var(--color-white);
  margin-bottom: 4px;
}

.example-card-header span {
  font-size: 0.85rem;
  opacity: 0.85;
}

.example-card-body {
  padding: 28px;
}

.example-card-body ul {
  list-style: none;
}

.example-card-body ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-mid-gray);
  font-size: 0.9rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.example-card-body ul li:last-child {
  border-bottom: none;
}

.example-card-body ul li svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-aqua);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Success Message --- */
.form-success {
  display: none;
  background: rgba(2, 171, 176, 0.1);
  border: 1px solid var(--color-aqua);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  color: var(--color-aqua);
  font-weight: 600;
}

.form-success.show {
  display: block;
}

/* --- Spinner --- */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--color-white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  h1 { font-size: 2.4rem; }
  .hero h1 { font-size: 2.6rem; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero h1 { font-size: 2.2rem; }

  .section { padding: 70px 0; }

  .nav-toggle { display: flex; }

  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-md);
    gap: 4px;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 16px;
    width: 100%;
  }

  .nav-list .btn {
    margin-left: 0;
    margin-top: 8px;
    justify-content: center;
  }

  .hero { min-height: 70vh; padding-top: 120px; padding-bottom: 60px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; justify-content: center; }

  .usp-grid,
  .products-grid,
  .testimonials-grid,
  .steps-grid,
  .values-grid { grid-template-columns: 1fr; }

  .about-grid,
  .contact-grid,
  .advantages-grid,
  .examples-grid { grid-template-columns: 1fr; }

  .about-grid { gap: 40px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

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

  .page-header { padding: 120px 0 60px; }
  .page-header h1 { font-size: 2rem; }
}
