/*
Theme Name: Ethics Fleet Serve
Theme URI: https://ethics-fleet.com
Author: Your Name
Author URI: https://example.com
Description: A custom WordPress theme for Ethics Fleet Serve, an ISO‑certified ship repair and marine supply company in Bangladesh.
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ethics-fleet
*/


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

:root {
  --primary: #002366;
  --gold: #d4af37;
  --dark: #0a0e17;
  --light: #ffffff;
  --text-muted: #b0b8c1;
  --card-bg: #0d1321;
  --border: #1a2332;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Navigation */
header {
  background: linear-gradient(135deg, var(--primary), #001a4d);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--light);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

nav a:hover {
  color: var(--gold);
}

/* Hero Slider */
.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--primary);
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 35, 102, 0.7);
}

.slide-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--light);
  max-width: 900px;
  padding: 2rem;
  animation: slideUp 0.8s ease-out;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #e0e0e0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--gold);
  color: var(--primary);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s;
  border: 2px solid var(--gold);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  margin-left: 1rem;
}

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

/* Sections */
section {
  padding: 5rem 0;
  position: relative;
}

.img-bg {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.content-overlay {
  background: rgba(10, 14, 23, 0.95);
  padding: 3rem;
  border-radius: 8px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--light);
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 1rem auto 0;
}

.section-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
}

.card-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(0, 35, 102, 0.1));
  border-bottom: 1px solid var(--border);
}

.card-header h3 {
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.card-content {
  padding: 1.5rem;
  color: var(--text-muted);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Testimonials */
.testimonials-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  background: var(--card-bg);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.testimonial-content {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--gold);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}

.faq-question:hover {
  background: rgba(212, 175, 55, 0.05);
}

.faq-question h3 {
  font-size: 1.1rem;
  margin: 0;
}

.faq-toggle {
  color: var(--gold);
  font-size: 1.3rem;
  transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.8;
  border-top: 1px solid var(--border);
}

.faq-item.active .faq-answer {
  display: block;
  animation: slideDown 0.3s ease;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary), #001a4d);
  color: var(--text-muted);
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--border);
}

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

.footer-section h4 {
  color: var(--light);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--gold), #c99a1f);
  color: var(--primary);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cta-buttons a {
  padding: 12px 28px;
  background: var(--primary);
  color: var(--light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  border: 2px solid var(--primary);
  transition: all 0.3s;
}

.cta-buttons a:hover {
  background: transparent;
  color: var(--primary);
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

.animate-on-scroll {
  opacity: 0;
  animation: slideUp 0.6s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

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

  .btn {
    display: block;
    margin: 1rem auto;
  }

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

  .cta-buttons a {
    width: 100%;
  }
}