/* ============================================
   SGOLD Electric Motors — Global Styles
   ============================================ */

/* Google Fonts are loaded through the HTML head for faster rendering */

/* ============================================
   CSS Variables / Design Tokens
   ============================================ */
:root {
  --red:         #C0201A;
  --red-dark:    #a01815;
  --red-light:   #e8302a;
  --dark:        #1a1a1a;
  --dark-2:      #111111;
  --bg:          #fafafa;
  --white:       #ffffff;
  --border:      #eeeeee;
  --muted:       #888888;
  --text:        #222222;
  --text-light:  #555555;
  --font-head:   'Montserrat', sans-serif;
  --font-body:   'Lato', sans-serif;
  --radius-card: 10px;
  --radius-btn:  5px;
  --shadow:      0 2px 16px rgba(0,0,0,0.08);
  --shadow-hover:0 8px 32px rgba(0,0,0,0.16);
  --transition:  all 0.25s ease;
  --container:   1200px;
}

/* ============================================
   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(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 3px solid rgba(192,32,26,0.65);
  outline-offset: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(192,32,26,0.65);
  outline-offset: 4px;
}


a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--text);
  scroll-margin-top: 96px;
}

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

/* ============================================
   Section Spacing
   ============================================ */
.section {
  padding: clamp(60px, 7vw, 100px) 0;
}

.section-light {
  background: var(--bg);
}

.section-gray {
  background: #f4f4f4;
}

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

/* ============================================
   Section Headers
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(192, 32, 26, 0.08);
  border: 1px solid rgba(192, 32, 26, 0.2);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Dark section header */
.section-dark .section-header h2 {
  color: var(--white);
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.65);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 13px 28px;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 32, 26, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

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

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

.btn-outline-red:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 32, 26, 0.35);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* ============================================
   Page Hero (inner pages)
   ============================================ */
.page-hero {
  background: var(--dark);
  padding: 110px 0 40px;
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
}

.breadcrumb a {
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--red-light);
}

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

/* ============================================
   Utility Classes
   ============================================ */
.text-red    { color: var(--red); }
.text-center { text-align: center; }
.text-white  { color: var(--white); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ============================================
   Grid Utilities
   ============================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   Responsive Breakpoints
   ============================================ */

/* Laptop */
@media (max-width: 1024px) {
  .section { padding: 64px 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .container { padding: 0 16px; }
  .section-header { margin-bottom: 40px; }
}

/* Mobile */
@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .btn { padding: 12px 22px; font-size: 0.85rem; }
}
