/* CATSCO - China Africa Trade Solutions
   Colors: red #E10600, gold #FFD700, whatsapp green #25D366 */

:root {
  --red: #E10600;
  --red-dark: #b91c1c;
  --gold: #FFD700;
  --whatsapp: #25D366;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #000;
  background-image: url("../images/catsco-truck.jpeg");
  background-attachment: fixed;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  transition: all .3s;
}

.navbar-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.brand span {
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  color: #fff;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--gold);
  transition: color .2s;
}

.nav-toggle {
  display: block;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  padding: 0.25rem;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,.92);
  padding: 1rem 1.5rem 1.5rem;
  gap: 1rem;
  color: #fff;
  font-weight: 500;
}

.mobile-menu.open {
  display: flex;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: background-color .2s, color .2s;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--red-dark);
}

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--gold);
  color: #000;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/catsco-truck.jpeg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 64rem;
}

.hero-content img {
  width: 10rem;
  margin: 0 auto 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin: 0;
}

.hero-content p {
  margin-top: 2rem;
  font-size: 1.125rem;
  color: #e5e7eb;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .hero-content h1 { font-size: 4.5rem; }
  .hero-actions { flex-direction: row; }
}

/* ---------- Sections / Glass cards ---------- */
section {
  padding: 6rem 1.5rem;
}

.card {
  max-width: 90rem;
  margin: 0 auto;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.2);
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.4);
}

.card.narrow {
  max-width: 72rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  text-align: center;
}

.section-header img {
  width: 8rem;
  height: 8rem;
  border-radius: 0.75rem;
  border: 4px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--red);
  margin: 0;
}

.section-header p {
  color: #fff;
  margin-top: 1rem;
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  .section-header { flex-direction: row; text-align: left; }
}

/* About */
.about-text h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--red);
  margin: 0;
}

.about-text p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 2;
  color: #fff;
}

.about-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.about-flex > img {
  width: 8rem;
  height: 8rem;
  border-radius: 0.75rem;
  border: 4px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.5);
  cursor: pointer;
}

@media (min-width: 768px) {
  .about-flex { flex-direction: row; }
}

/* Grid layouts */
.grid-3 {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.grid-2-3 {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-2-3 { grid-template-columns: repeat(3, 1fr); }
}

.dark-card {
  position: relative;
  background: rgba(0,0,0,.6);
  border: 1px solid #4b5563;
  border-radius: 1rem;
  padding: 2rem;
  color: #fff;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.3);
}

.service-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .35s ease, opacity .35s ease;
}

.service-panel.open {
  max-height: 500px;
  opacity: 1;
  margin-top: 1.5rem;
  border-top: 1px solid #6b7280;
  padding-top: 1.5rem;
}

.panel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  background: transparent;
  color: #fff;
}

.panel-close:hover {
  color: var(--red);
}

.service-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-panel li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.service-panel li span {
  color: var(--gold);
}

.done-btn {
  margin-top: 2rem;
  width: 100%;
  background: var(--gold);
  color: #000;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.done-btn:hover {
  background: #facc15;
}

.dark-card .icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 3rem;
  color: var(--red);
}

.dark-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--gold);
  margin: 0;
}

.dark-card.center-icon h3 {
  text-align: left;
}

.dark-card p {
  margin-top: 1rem;
  text-align: center;
}

.dark-card .btn-primary {
  margin-top: 2rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  text-align: center;
}

/* Why choose us */
.check-card {
  background: rgba(0,0,0,.6);
  border: 1px solid #4b5563;
  border-radius: 1rem;
  padding: 2rem;
  color: #fff;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.3);
}

.check-card .check {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  color: var(--gold);
}

.check-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.check-card p {
  margin-top: 1rem;
  color: #d1d5db;
}

/* Who we serve */
.serve-card {
  background: rgba(0,0,0,.6);
  border: 1px solid #4b5563;
  border-radius: 1rem;
  padding: 2rem;
  color: #fff;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.3);
}

.serve-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
}

.serve-card p {
  margin-top: 1.25rem;
  color: #d1d5db;
}

/* Contact */
.contact-title {
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  color: var(--red);
  margin: 0;
}

.contact-sub {
  text-align: center;
  color: #fff;
  margin-top: 1rem;
  font-size: 1.125rem;
  margin-bottom: 3.5rem;
}

.contact-info {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .contact-info { grid-template-columns: repeat(3, 1fr); }
}

.contact-info .dark-card {
  text-align: center;
}

.contact-info .icon-solo {
  font-size: 2.25rem;
  color: var(--gold);
  margin: 0 auto 1rem;
  display: block;
  width: fit-content;
}

.contact-info .icon-solo.whatsapp {
  color: var(--whatsapp);
}

.contact-info h3 {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
}

.contact-info p {
  margin-top: 0.5rem;
}

form.contact-form {
  display: grid;
  gap: 1.5rem;
}

form.contact-form input,
form.contact-form textarea {
  border-radius: 0.75rem;
  padding: 1rem;
  background: #fff;
  color: #000;
  outline: none;
  border: none;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}

form.contact-form textarea {
  resize: none;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
}

form.contact-form button {
  background: var(--red);
  padding: 1rem;
  border-radius: 0.75rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
}

form.contact-form button:hover {
  background: var(--red-dark);
}

.form-message {
  border-radius: 0.75rem;
  padding: 1rem;
  font-weight: 600;
  text-align: center;
}

.form-message.success {
  background: rgba(37, 211, 102, .15);
  color: #25D366;
  border: 1px solid #25D366;
}

.form-message.error {
  background: rgba(225, 6, 0, .15);
  color: #ff6b6b;
  border: 1px solid var(--red);
}

/* ---------- Footer ---------- */
footer {
  background: rgba(0,0,0,.9);
  color: #fff;
  padding: 3.5rem 0;
  margin-top: 5rem;
  border-top: 1px solid var(--gold);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-inner img {
  width: 6rem;
  height: 6rem;
  border-radius: 9999px;
  border: 4px solid var(--gold);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.3);
  object-fit: cover;
}

.footer-inner h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 1.25rem;
}

.footer-inner .tagline {
  margin-top: 0.5rem;
  color: #d1d5db;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.footer-links a:hover {
  color: var(--gold);
  transition: color .2s;
}

.footer-email {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.footer-email svg {
  color: var(--gold);
}

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

.to-top {
  margin-top: 2.5rem;
  background: var(--red);
  padding: 1rem;
  border-radius: 9999px;
  color: #fff;
  transition: background-color .2s;
}

.to-top:hover {
  background: var(--red-dark);
}

.copyright {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 2.5rem;
}

.disclaimer {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 1.25rem;
  max-width: 42rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transition: opacity .7s ease-out, transform .7s ease-out;
}
.reveal.left { transform: translateX(-120px); }
.reveal.right { transform: translateX(120px); }
.reveal.up { transform: translateY(60px); }
.reveal.scale { transform: scale(0.8); }
.reveal.in-view {
  opacity: 1;
  transform: translate(0) scale(1);
}
