/* ========================================
   SPHN&M LIMITED - MAIN STYLESHEET
   Design System: Warm Clinical Editorial
   Primary: #1B4D3E | Secondary: #F7F3ED | Accent: #C97B4D
   ======================================== */

/* ---- CSS Variables ---- */
:root {
  --primary: #1B4D3E;
  --primary-dark: #14382D;
  --primary-light: #E8F3EF;
  --secondary: #F7F3ED;
  --accent: #C97B4D;
  --accent-hover: #B56A3F;
  --text: #1A1A1A;
  --text-muted: #5C5C5C;
  --white: #FFFFFF;
  --border: #E0DDD7;
  --shadow: 0 4px 24px rgba(27, 77, 62, 0.08);
  --shadow-hover: 0 8px 32px rgba(27, 77, 62, 0.14);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--primary);
}

h1 { font-size: clamp(2.25rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.375rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.375rem); }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---- Layout Containers ---- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.main-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

@media (min-width: 1024px) {
  .main-nav {
    display: block;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  padding: 140px 0 100px;
  background: var(--secondary);
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  background: rgba(27, 77, 62, 0.12);
  top: -100px;
  right: -100px;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: rgba(201, 123, 77, 0.1);
  bottom: -80px;
  left: -80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  margin-bottom: 20px;
}

.hero-content .lead {
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-image {
  position: relative;
  z-index: 2;
}

.hero-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hover);
  object-fit: cover;
  width: 100%;
  height: 400px;
}

.hero-badge {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.hero-badge-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.hero-badge-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
  }
  .hero-image img {
    height: 520px;
  }
}

/* ---- Trust Bar ---- */
.trust-bar {
  background: var(--primary);
  padding: 24px 0;
  overflow: hidden;
}

.trust-track {
  display: flex;
  gap: 48px;
  animation: scroll-track 30s linear infinite;
  white-space: nowrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  font-weight: 500;
  flex-shrink: 0;
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

@keyframes scroll-track {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Section Styles ---- */
.section {
  padding: 80px 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  margin-bottom: 0;
}

.section-bg {
  background: var(--secondary);
}

.section-bg-light {
  background: var(--primary-light);
}

/* ---- Feature Cards ---- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Split Section ---- */
.split-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.split-image {
  position: relative;
}

.split-image img {
  border-radius: var(--radius-xl);
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.split-image-decor {
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.15;
  z-index: -1;
}

.split-content h2 {
  margin-bottom: 20px;
}

.split-content ul {
  list-style: none;
  margin: 24px 0;
}

.split-content li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.split-content li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
  .split-image img {
    height: 480px;
  }
}

/* ---- Stats Section ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- Service Cards (Horizontal Scroll) ---- */
.services-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.services-scroll::-webkit-scrollbar {
  height: 6px;
}

.services-scroll::-webkit-scrollbar-track {
  background: var(--border);
  border-radius: 3px;
}

.services-scroll::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.service-card {
  flex: 0 0 300px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  scroll-snap-align: start;
  border: 1px solid var(--border);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.service-card-image {
  width: 100%;
  height: 180px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.service-card-body {
  padding: 24px;
}

.service-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.service-card-body p {
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.service-card-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-card-link:hover {
  gap: 10px;
}

@media (min-width: 1024px) {
  .service-card {
    flex: 0 0 340px;
  }
}

/* ---- Process Steps ---- */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  counter-reset: step;
}

.process-step {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 32px;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
}

.process-step h3 {
  margin-top: 16px;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.process-step p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Info Blocks ---- */
.info-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.info-block h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}

.info-block ul {
  list-style: disc;
  padding-left: 20px;
}

.info-block li {
  margin-bottom: 10px;
  color: var(--text-muted);
}

/* ---- Contact Page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.contact-details {
  display: grid;
  gap: 24px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.contact-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.9375rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.08);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
  }
}

/* ---- Map Embed ---- */
.map-embed {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: var(--radius-xl);
  margin-top: 24px;
}

/* ---- Legal Content ---- */
.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-content h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content a {
  text-decoration: underline;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  max-width: 300px;
}

.footer-nav h4 {
  color: var(--white);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---- Floating CTA ---- */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---- Cookie Banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  z-index: 1001;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cookie-inner p {
  margin-bottom: 0;
  font-size: 0.9375rem;
  text-align: center;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .cookie-inner {
    flex-direction: row;
  }
  .cookie-inner p {
    text-align: left;
  }
}

/* ---- Mobile Nav ---- */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--white);
  z-index: 1002;
  padding: 100px 32px 32px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav li {
  margin-bottom: 20px;
}

.mobile-nav a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
}

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; }
.mb-1 { margin-bottom: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* ---- Page Header ---- */
.page-header {
  padding: 140px 0 60px;
  background: var(--secondary);
  text-align: center;
}

.page-header h1 {
  margin-bottom: 12px;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

/* ---- Accordion ---- */
.accordion-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-body-inner {
  padding: 0 24px 20px;
}

.accordion-item.open .accordion-body {
  max-height: 500px;
}

/* ---- Table Styles ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9375rem;
}

.data-table th,
.data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.data-table tr:last-child td {
  border-bottom: none;
}
