/* ===================================
   LOHAKAR - BASE STYLESHEET
   ===================================

   TABLE OF CONTENTS:
   1. CSS Custom Properties
   2. Base Reset Styles
   3. Typography
   4. Reusable Utility Classes
   5. Header & Navigation Styles
   6. Footer Styles
   7. Responsive Breakpoints

   =================================== */

/* ===================================
   1. CSS CUSTOM PROPERTIES
   =================================== */

:root {
  /* Brand Colors - Steel & Industrial Theme */
  --primary-color: #0a0a0a; /* Deep black for text and headers */
  --secondary-color: #c0392b; /* Industrial red accent */
  --accent-color: #e74c3c; /* Bright red accent */
  --text-color: #0a0a0a; /* Main text color - black */
  --text-light: #7f8c8d; /* Lighter text for descriptions */
  --bg-color: #ffffff; /* Main background */
  --bg-light: #ecf0f1; /* Light background for sections */
  --bg-dark: #1a1a1a; /* Dark background for footer */
  --bg-black: #0a0a0a; /* Black background for hero sections */

  /* Typography */
  --font-primary: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  /* Spacing */
  --header-height: 70px;
  --section-padding: 4rem 1rem;
  --container-max-width: 1200px;

  /* Transitions */
  --transition-speed: 0.3s;
  --transition-ease: ease-in-out;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ===================================
   2. BASE RESET STYLES
   =================================== */

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

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

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed) var(--transition-ease);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===================================
   3. TYPOGRAPHY
   =================================== */

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

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* ===================================
   4. REUSABLE UTILITY CLASSES
   =================================== */

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

.section {
  padding: var(--section-padding);
}

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

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

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 4px;
  transition: all var(--transition-speed) var(--transition-ease);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

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

.btn--primary:hover,
.btn--primary:focus {
  background-color: #1a252f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: var(--secondary-color);
  color: #ffffff;
}

.btn--secondary:hover,
.btn--secondary:focus {
  background-color: #a02e21;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn--outline:hover,
.btn--outline:focus {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn--large {
  padding: 1.25rem 3rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Title & Description - Common across pages */
.section__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: #0a0a0a;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  padding: 4rem 2rem 1rem;
  text-align: left;
}

.section__description {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  margin-bottom: 3rem;
  color: #7f8c8d;
  padding: 0 2rem;
  text-align: left;
  border-left: 6px solid #c0392b;
  padding-left: 2rem;
  max-width: 800px;
}

/* ===================================
   5. HEADER & NAVIGATION STYLES
   =================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #0a0a0a;
  border-bottom: 3px solid #c0392b;
  z-index: 1000;
  height: var(--header-height);
}
.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 1rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.header__logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.header__logo-link:hover {
  color: #c0392b;
  transform: translateX(3px);
}

.header__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.header__brand-name {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.header__brand-tagline {
  font-size: 0.625rem;
  font-weight: 600;
  color: #c0392b;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.15rem;
} /* Navigation */
.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.nav__link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: #c0392b;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav__link:hover,
.nav__link:focus {
  color: #ffffff;
}

.nav__link:hover::before,
.nav__link:focus::before {
  width: 80%;
}

.nav__link--active {
  color: #c0392b;
}

.nav__link--active::before {
  width: 80%;
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.nav__toggle-line {
  width: 28px;
  height: 3px;
  background-color: #ffffff;
  transition: all var(--transition-speed) var(--transition-ease);
  border-radius: 0;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #0a0a0a;
    border-top: 1px solid rgba(192, 57, 43, 0.3);
    padding: 1rem 0;
    gap: 0;
    transform: translateX(-100%);
    transition: transform var(--transition-speed) var(--transition-ease);
  }

  .nav__list--active {
    transform: translateX(0);
  }

  .nav__item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav__link {
    padding: 1.25rem 2rem;
    width: 100%;
    justify-content: flex-start;
    color: rgba(255, 255, 255, 0.8);
  }

  .nav__link:hover,
  .nav__link--active {
    background-color: rgba(192, 57, 43, 0.1);
    color: #c0392b;
    border-left: 4px solid #c0392b;
  }

  .nav__link::before {
    display: none;
  }

  /* Hamburger Animation */
  .nav__toggle--active .nav__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .nav__toggle--active .nav__toggle-line:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle--active .nav__toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

/* ===================================
   6. FOOTER STYLES
   =================================== */

.footer {
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 4rem 2rem 2rem;
  margin-top: 0;
  border-top: 3px solid #c0392b;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.02) 2px,
    rgba(255, 255, 255, 0.02) 4px
  );
  pointer-events: none;
}
.footer__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__section-title {
  font-size: 1.125rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 3px solid #c0392b;
  padding-bottom: 0.75rem;
  display: inline-block;
}
.footer__text {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  padding: 0.35rem 0;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  position: relative;
  padding-left: 0;
  transition: padding-left 0.3s ease;
}

.footer__link::before {
  content: "▸";
  color: #c0392b;
  opacity: 0;
  margin-right: 0.5rem;
  transition: opacity 0.3s ease;
}

.footer__link:hover,
.footer__link:focus {
  color: #c0392b;
  padding-left: 1rem;
}

.footer__link:hover::before,
.footer__link:focus::before {
  opacity: 1;
}

.footer__bottom {
  border-top: 2px solid rgba(192, 57, 43, 0.3);
  padding-top: 2rem;
  text-align: center;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer__end-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-decoration-color: rgba(192, 57, 43, 0.5);
  text-underline-offset: 3px;
  transition: all 0.3s ease;
}

.footer__end-link:hover,
.footer__end-link:focus {
  color: #c0392b;
  text-decoration-color: #c0392b;
}

/* ===================================
   7. RESPONSIVE BREAKPOINTS
   =================================== */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  :root {
    --header-height: 80px;
    --section-padding: 5rem 2rem;
  }

  .container {
    padding: 0 2rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  :root {
    --section-padding: 6rem 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  :root {
    --section-padding: 7rem 2rem;
  }
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===================================
   END OF BASE STYLESHEET
   =================================== */
