/* css/styles.css - FINAL Warm Light Orange Theme + Side-by-Side Layouts + Better Text + FIXED One-Row Grids & Small Images + About Section Perfect Fix */

:root {
  --primary: #f97316;           /* Warm orange main */
  --primary-dark: #ea580c;
  --gradient-start: #f97316;    /* Orange */
  --gradient-end: #c084fc;      /* Soft purple for contrast & hover */
  --accent: #f59e0b;            /* Yellow-orange accent */
  --success: #16a34a;
  --warning: #eab308;
  --light-bg: #fff7ed;          /* Very light warm orange body background */
  --card-bg: #fffaf0;           /* Creamy light orange cards (no pure white) */
  --card-border: rgba(249, 115, 22, 0.18); /* Subtle orange border */
  --dark: #1f2937;              /* Deep charcoal text for readability */
  --grey: #6b7280;
  --footer-dark: #1e293b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light-bg);
  color: var(--dark);
  line-height: 1.8;
  scroll-behavior: smooth;
}

/* Gradient Button */
.gradient-btn {
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.4s ease;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

.gradient-btn:hover {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 20px 40px rgba(249, 115, 22, 0.45);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(255, 247, 237, 0.96);
  box-shadow: 0 6px 25px rgba(249, 115, 22, 0.12);
  height: 120px;
  transition: all 0.3s ease;
}

nav {
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo img {
  height: 100px !important;
  width: auto;
  max-height: 120px;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.logo img:hover {
  transform: scale(1.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.8rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg);
  box-shadow: 0 12px 35px rgba(249, 115, 22, 0.18);
  border-radius: 12px;
  min-width: 240px;
  padding: 1rem 0;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border: 1px solid var(--card-border);
}

.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.9rem 1.6rem;
  color: var(--dark);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
  background: rgba(249, 115, 22, 0.1);
  color: var(--primary);
}

/* Sections */
section {
  padding: 120px 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Hero */
.hero {
  min-height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
    url('images/hero-bg.avif');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  text-shadow: 0 3px 15px rgba(0,0,0,0.6);
}

.hero h1 {
  font-size: 5.2rem;
  margin-bottom: 1.8rem;
  line-height: 1.1;
  background: linear-gradient(to right, #ff5100, #f08903);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero p {
  font-size: 1.7rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.08);
  transition: all 0.4s ease;
  border: 1px solid var(--card-border);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(249, 115, 22, 0.25);
  border-color: var(--gradient-end);
}

/* Side-by-Side Layouts (About & Services) */
.about-content,
.service-content {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4rem !important;
  align-items: center;
}

@media (max-width: 992px) {
  .about-content,
  .service-content {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
}

/* Titles & Text */
h2.section-title {
  font-size: 3.6rem;
  text-align: center;
  margin-bottom: 5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h3 {
  font-size: 2.4rem;
  margin-bottom: 1.8rem;
  color: var(--primary);
  font-weight: 600;
}

p {
  font-size: 1.18rem;
  color: #4b5563;
  margin-bottom: 1.6rem;
  line-height: 1.9;
}

strong {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Lists with icons */
ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  font-size: 1.18rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-left: 2.2rem;
}

ul li::before {
  content: "→";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.4rem;
}

/* Grids - FIXED for one-row layout */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

/* Force 4 columns in one row for Team & Stats (About) on desktop */
#team .grid,
#about .grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem !important;
}

@media (max-width: 1023px) {
  #team .grid,
  #about .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  #team .grid,
  #about .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* Images - Fixed size & style */
.section-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  margin: 0;
  display: block;
  border: 3px solid rgba(249, 115, 22, 0.2);
  transition: transform 0.4s ease;
}

.section-image:hover {
  transform: scale(1.03);
}

/* Team Image - Force small size */
#team img {
  width: 160px !important;
  height: 160px !important;
  object-fit: cover !important;
  max-width: 160px !important;
  max-height: 160px !important;
}

/* Footer */
footer {
  background: var(--footer-dark);
  color: #cbd5e1;
  padding: 6rem 3rem 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

footer h4 {
  color: white;
  margin-bottom: 1.8rem;
  font-size: 1.4rem;
}

footer ul {
  list-style: none;
}

footer a,
footer p {
  color: #94a3b8;
  text-decoration: none;
  line-height: 2.2;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--accent);
}

.copyright {
  text-align: center;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #334155;
  font-size: 1rem;
  color: #cbd5e1;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--dark);
}

@media (max-width: 992px) {
  header {
    height: 100px;
  }

  .logo img {
    height: 85px !important;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    padding: 2.5rem 1.5rem;
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.18);
    border-radius: 0 0 12px 12px;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 3.8rem;
  }

  section {
    padding: 90px 1.5rem;
  }

  nav {
    padding: 0 1.5rem;
  }

  .grid-3, .grid-6 {
    grid-template-columns: 1fr;
  }
}