/* ============================================
   CSS VARIABLES - CUSTOMIZABLE THEME
   ============================================ */

:root {
  /* MonotaRO TECH India Brand Colors */
  --primary-color: #E60012;
  --primary-dark: #B91C1C;
  --primary-light: #EF4444;
  --secondary-color: #1a1a1a;
  --accent-color: #E60012;
  
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-light: #737373;
  
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-dark: #1a1a1a;
  
  --border-color: #e5e5e5;
  --brand-red: #E60012;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Typography - Clean sans-serif to match logo */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', var(--font-primary);
  
  --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;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  
  /* Layout */
  --container-max-width: 1200px;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

h1 {
  font-size: var(--font-size-5xl);
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--font-size-4xl);
  letter-spacing: -0.025em;
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

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

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

ul, ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-xl);
}

li {
  margin-bottom: var(--spacing-xs);
}

/* ============================================
   LAYOUT & GRID SYSTEM
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

.section {
  padding: var(--spacing-4xl) 0;
}

.section-sm {
  padding: var(--spacing-3xl) 0;
}

.section-lg {
  padding: var(--spacing-4xl) 0;
}

.grid {
  display: grid;
  gap: var(--spacing-xl);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.flex {
  display: flex;
}

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

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.gap-sm {
  gap: var(--spacing-sm);
}

.gap-md {
  gap: var(--spacing-md);
}

.gap-lg {
  gap: var(--spacing-lg);
}

.gap-xl {
  gap: var(--spacing-xl);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg) 0;
}

.logo {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary-color);
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo img {
    height: 36px;
  }
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
  padding: 0;
  margin: 0;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  background-color: var(--primary-color);
}

/* Section title underline - MonotaRO TECH motif */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: var(--spacing-sm);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Services section - red + grey underline */
.section-title-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: var(--spacing-sm);
  margin-bottom: var(--spacing-2xl);
}

.section-title-bar .bar-red {
  width: 40px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section-title-bar .bar-grey {
  width: 120px;
  height: 4px;
  background-color: #9ca3af;
  border-radius: 2px;
  margin-left: 2px;
}

/* Services list with external link icon */
.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li {
  margin-bottom: 0;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.services-list li:last-child {
  border-bottom: none;
}

.services-list a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.services-list a:hover {
  color: var(--primary-color);
}

.services-list .ext-link-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.services-list .ext-link-icon.material-symbols-outlined {
  width: auto;
  height: auto;
  font-size: 18px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.services-list a:hover .ext-link-icon {
  color: var(--primary-color);
}

.services-card-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.services-card-title .sub {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--text-secondary);
}

/* Material Symbols Outlined - icon sizing */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: 400;
  font-style: normal;
  font-size: 1.75em;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  color: currentColor;
}

.material-symbols-outlined.icon-sm {
  font-size: 1.35em;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}

.material-symbols-outlined.icon-lg {
  font-size: 2.5em;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 40;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: all var(--transition-base);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
  font-family: var(--font-primary);
}

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

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

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-large {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: var(--font-size-lg);
}

.btn-small {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: var(--font-size-sm);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background-color: var(--bg-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card-header {
  margin-bottom: var(--spacing-lg);
}

.card-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
}

.card-body {
  margin-bottom: var(--spacing-lg);
}

.card-footer {
  margin-top: auto;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--spacing-md);
  font-size: var(--font-size-base);
  font-family: var(--font-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

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

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

.form-error {
  color: #ef4444;
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-xs);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--bg-dark);
  color: #e5e5e5;
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

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

.footer-section h3 {
  color: white;
  margin-bottom: var(--spacing-lg);
}

.footer-section p,
.footer-section a {
  color: #cbd5e1;
  font-size: var(--font-size-sm);
}

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

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

.footer-links li {
  margin-bottom: var(--spacing-sm);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: #94a3b8;
  font-size: var(--font-size-sm);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
  padding: 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all var(--transition-base);
}

.social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-light {
  color: var(--text-light);
}

.bg-primary {
  background-color: var(--bg-primary);
}

.bg-secondary {
  background-color: var(--bg-secondary);
}

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--spacing-xs); }
.pt-2 { padding-top: var(--spacing-sm); }
.pt-3 { padding-top: var(--spacing-md); }
.pt-4 { padding-top: var(--spacing-lg); }
.pt-5 { padding-top: var(--spacing-xl); }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--spacing-xs); }
.pb-2 { padding-bottom: var(--spacing-sm); }
.pb-3 { padding-bottom: var(--spacing-md); }
.pb-4 { padding-bottom: var(--spacing-lg); }
.pb-5 { padding-bottom: var(--spacing-xl); }

.hidden {
  display: none;
}

.visible {
  display: block;
}

.opacity-0 {
  opacity: 0;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-100 {
  opacity: 1;
}

/* ============================================
   SINGLE-PAGE LAYOUT & COMPONENTS
   ============================================ */

main.main-offset {
  padding-top: 80px;
}

section[id] {
  scroll-margin-top: 80px;
}

.grid-align-center {
  align-items: center;
}

.grid-align-start {
  align-items: start;
}

.gap-4 {
  gap: 4rem;
}

.gap-2xl {
  gap: var(--spacing-2xl);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  max-width: 700px;
  margin: 0 auto;
}

.hero-video-wrap {
  height: 400px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-box {
  width: 60px;
  height: 60px;
  background-color: var(--primary-light);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  color: white;
  font-size: 1.5rem;
}

.icon-box-lg,
.icon-box-accent {
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  color: white;
  font-size: 2rem;
}

.icon-box-lg {
  background-color: var(--primary-color);
}

.icon-box-accent {
  background-color: var(--accent-color);
}

.about-image-wrap {
  height: 400px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

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

.values-icon-wrap {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  display: flex;
  justify-content: center;
}

.team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto var(--spacing-lg);
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-avatar.team-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #E60012, #B91C1C);
  color: white;
  font-size: 3rem;
  font-weight: bold;
}

.contact-icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  color: white;
  font-size: 2rem;
}

.role-title {
  font-weight: 600;
}

.contact-link {
  font-weight: 600;
}

.card-border {
  border: 1px solid var(--border-color);
}

.card-hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin-bottom: var(--spacing-md);
}

.mb-4xl {
  margin-bottom: var(--spacing-4xl);
}

.logo img.logo-header {
  height: 50px;
}

/* Scroll progress bar (single-page.js) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #E60012, #B91C1C);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Section indicators (single-page.js) */
.section-indicators {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: none;
}

.section-indicators a {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-color);
  margin: 12px 0;
  transition: all 0.3s ease;
}

.section-indicators a:hover,
.section-indicators a.active {
  background-color: var(--primary-color);
  transform: scale(1.3);
}
