/*
Theme Name:  Somisto Pharma
Theme URI:   https://somistopharma.com
Author:      Manoj Singh
Author URI:  https://github.com/manoj-singh
Description: A modern, professional pharmaceutical company WordPress theme featuring product showcases, smooth animations, and a clean healthcare-focused design.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: somisto-pharma
Tags:        pharmaceutical, healthcare, one-page, product-showcase, responsive
*/

/* ===================================================
   CSS CUSTOM PROPERTIES
   =================================================== */
:root {
  /* Colors */
  --color-primary:       #0ea5e9;
  --color-primary-dark:  #0284c7;
  --color-primary-light: #38bdf8;
  --color-accent:        #06b6d4;
  --color-dark:          #0f172a;
  --color-dark-mid:      #1e293b;
  --color-dark-soft:     #334155;
  --color-text:          #374151;
  --color-text-light:    #6b7280;
  --color-text-lighter:  #9ca3af;
  --color-white:         #ffffff;
  --color-bg:            #f8fafc;
  --color-bg-alt:        #f1f5f9;
  --color-border:        #e2e8f0;
  --color-success:       #10b981;

  /* Gradients */
  --gradient-hero:    linear-gradient(135deg, #0f172a 0%, #0c4a6e 50%, #0369a1 100%);
  --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  --gradient-card:    linear-gradient(145deg, rgba(14,165,233,0.08) 0%, rgba(2,132,199,0.04) 100%);
  --gradient-dark:    linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);

  /* Typography */
  --font-primary:   'Poppins', sans-serif;
  --font-body:      'Inter', sans-serif;
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-lg:   1.125rem;
  --font-size-xl:   1.25rem;
  --font-size-2xl:  1.5rem;
  --font-size-3xl:  1.875rem;
  --font-size-4xl:  2.25rem;
  --font-size-5xl:  3rem;
  --font-size-6xl:  3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl:  0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --shadow-2xl: 0 25px 50px rgba(0,0,0,0.15);
  --shadow-primary: 0 8px 25px rgba(14,165,233,0.35);

  /* Border Radius */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   all 0.15s ease;
  --transition-base:   all 0.3s ease;
  --transition-slow:   all 0.5s ease;

  /* Header */
  --header-height: 72px;
  --topbar-height: 40px;
}

/* ===================================================
   RESET & BASE
   =================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

/* ===================================================
   LAYOUT UTILITIES
   =================================================== */
.sp-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.sp-container--wide {
  max-width: 1400px;
}

.sp-section {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.sp-section--sm {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.sp-section--lg {
  padding-top: var(--space-32);
  padding-bottom: var(--space-32);
}

.sp-grid {
  display: grid;
}

.sp-flex { display: flex; }
.sp-flex-center { display: flex; align-items: center; justify-content: center; }
.sp-text-center { text-align: center; }
.sp-text-left { text-align: left; }

/* Section Header */
.sp-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-16);
}

.sp-section-label {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(14, 165, 233, 0.1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.sp-section-title {
  font-size: var(--font-size-4xl);
  color: var(--color-dark);
  margin-bottom: var(--space-4);
}

.sp-section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Dark section overrides */
.sp-section--dark .sp-section-label {
  color: var(--color-primary-light);
  background: rgba(56, 189, 248, 0.15);
}
.sp-section--dark .sp-section-title { color: var(--color-white); }
.sp-section--dark .sp-section-subtitle { color: rgba(255,255,255,0.7); }

/* ===================================================
   BUTTONS
   =================================================== */
.sp-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}

.sp-btn--primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-primary);
}
.sp-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(14,165,233,0.45);
  color: var(--color-white);
}

.sp-btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.sp-btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.sp-btn--white {
  background: var(--color-white);
  color: var(--color-primary-dark);
}
.sp-btn--white:hover {
  background: var(--color-bg-alt);
  transform: translateY(-2px);
}

.sp-btn--ghost-white {
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}
.sp-btn--ghost-white:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.6);
  color: var(--color-white);
  transform: translateY(-2px);
}

.sp-btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-xs);
}

.sp-btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-base);
}

/* ===================================================
   CARDS
   =================================================== */
.sp-card {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}
.sp-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

/* ===================================================
   FORM BASE
   =================================================== */
.sp-form-group {
  margin-bottom: var(--space-5);
}

.sp-form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.sp-form-group input,
.sp-form-group textarea,
.sp-form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-white);
  transition: var(--transition-fast);
  outline: none;
}

.sp-form-group input:focus,
.sp-form-group textarea:focus,
.sp-form-group select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

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

/* ===================================================
   WORDPRESS ALIGNMENT CLASSES
   =================================================== */
.alignleft  { float: left; margin-right: var(--space-6); margin-bottom: var(--space-4); }
.alignright { float: right; margin-left: var(--space-6); margin-bottom: var(--space-4); }
.aligncenter { display: block; margin: var(--space-6) auto; }
.alignwide   { width: 100%; }
.alignfull   { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--font-size-sm); color: var(--color-text-light); text-align: center; margin-top: var(--space-2); }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
