/* Citran Technologies - Modern Responsive CSS */

/* Color Variables */
:root {
  --brand-orange: #f7941d;
  --brand-orange-dark: #d97d0e;
  --brand-green: #4caf50;
  --brand-navy: #0f2e46;
  --brand-blue-accent: #3da9fc;
  --gray-light: #f5f7fa;
  --gray-dark: #6b7280;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* Global Resets */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: var(--brand-navy);
  background-color: var(--gray-light);
  line-height: 1.6;
}

/* Containers */
.container {
  max-width: var(--max-width);
  margin: auto;
  padding: 0 20px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo img {
  height: 78px;
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
nav a {
  text-decoration: none;
  color: var(--brand-navy);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
nav a:hover, nav a.active {
  background: var(--brand-orange);
  color: var(--white);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
}
@media (max-width: 900px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 20px;
    top: 80px;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 10px;
    border-radius: var(--radius);
  }
  nav ul.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(90deg, rgba(247,148,29,0.1), rgba(61,169,252,0.1));
  padding: 50px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.hero-grid img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: bold;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary {
  background: var(--brand-orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--brand-orange-dark);
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid var(--brand-orange);
  color: var(--brand-orange);
}
.btn-outline:hover {
  background: var(--brand-orange);
  color: var(--white);
}

/* Sections */
section {
  padding: 50px 0;
}
h1, h2, h3 {
  margin-top: 0;
}
.text-center {
  text-align: center;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: transform var(--transition);
}
.card:hover {
  transform: translateY(-5px);
}
.card img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Forms */
form input, form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  margin-bottom: 10px;
}
form button {
  background: var(--brand-orange);
  color: var(--white);
  padding: 10px;
  border: none;
  border-radius: var(--radius);
  font-weight: bold;
  cursor: pointer;
}
form button:hover {
  background: var(--brand-orange-dark);
}

/* Footer */
footer {
  background: var(--brand-navy);
  color: var(--white);
  padding: 20px 0;
}
footer a {
  color: var(--brand-orange);
  text-decoration: none;
}

/* Fix About section overlap issue */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  align-items: center;
}
.grid-2 img {
  max-width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-2 > div {
    text-align: center;
  }
  .grid-2 .btn {
    margin-top: 10px;
  }
}


.services-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr !important; /* 1 column on tablets and below */
  }
}


