/* =============================================
   CJC TRADING — styles.css (Light Theme)
   ============================================= */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  --bg:           #ffffff;
  --bg-alt:       #f7f7f9;
  --bg-card:      #ffffff;
  --border:       #e8e8ed;
  --text-primary: #111118;
  --text-secondary:#4a4a5a;
  --text-muted:   #888899;
  --accent:       #c9a84c;
  --accent-dark:  #a8872e;
  --accent-light: #e2c06a;
  --navy:         #0d1f3c;
  --navy-light:   #1a3360;
  --whatsapp:     #25d366;
  --whatsapp-dark:#1da851;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.07);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 10px 36px rgba(0,0,0,.13);
  --radius:       10px;
  --radius-lg:    16px;
  --nav-h:        70px;
  --font:        'Inter', system-ui, sans-serif;
  --font-display:'Barlow Condensed', sans-serif;
  --transition:   0.22s ease;
}

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { color: var(--text-secondary); line-height: 1.7; }

.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: .75rem;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}
.section-header p { margin-top: .75rem; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-lg { padding: .85rem 1.9rem; font-size: .95rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  border-color: var(--whatsapp);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); border-color: var(--whatsapp-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-svg { width: 32px; height: 37px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.logo-sub  { font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }

.nav-links {
  display: flex;
  gap: .25rem;
  margin-left: auto;
}
.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: .4rem .75rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--navy); background: var(--bg-alt); }

.nav-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-left: .5rem;
}
.nav-phone {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: .4rem .7rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.nav-phone:hover { color: var(--navy); border-color: var(--navy); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  margin-left: auto;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all .3s; }

.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: .25rem;
}
.nav-drawer.open { display: flex; }
.nav-drawer .nav-link { padding: .75rem 1rem; }
.nav-drawer-cta { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* --- HERO --- */
.hero {
  padding-top: calc(var(--nav-h) + 56px);
  padding-bottom: 72px;
  background: var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: .75rem;
}
.hero-title {
  margin-bottom: 1.1rem;
  color: var(--navy);
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* --- TRUST BAR --- */
.trust-bar {
  background: var(--navy);
  padding: 1.1rem 0;
}
.trust-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem 2.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
}
.trust-item i { color: var(--accent); font-size: .9rem; }

/* --- SPLIT LAYOUT --- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.split-visual img { width: 100%; height: 100%; object-fit: cover; }
.split-content { display: flex; flex-direction: column; gap: .9rem; }
.split-content h2 { margin-bottom: .25rem; }
.split-content p { margin: 0; }

/* --- SERVICES GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.service-icon {
  width: 48px; height: 48px;
  background: rgba(201,168,76,.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.service-icon i { font-size: 1.1rem; color: var(--accent); }
.service-card h3 { color: var(--navy); margin-bottom: .6rem; font-size: 1.05rem; }
.service-card p { font-size: .875rem; }

/* --- CONTACT LAYOUT --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-card:last-of-type { border-bottom: none; }
.contact-icon {
  width: 40px; height: 40px;
  background: rgba(201,168,76,.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon i { color: var(--accent); font-size: 1rem; }
.contact-info-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: .2rem; }
.contact-info-val { font-size: .95rem; font-weight: 600; color: var(--navy); }
.contact-info-val a { color: var(--navy); transition: color var(--transition); }
.contact-info-val a:hover { color: var(--accent); }

.hours-grid {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.hours-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text-muted); margin-bottom: .6rem; }
.hours-row { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px solid var(--border); font-size: .875rem; }
.hours-row:last-of-type { border-bottom: none; }
.hours-day { color: var(--text-secondary); }
.hours-time { font-weight: 600; color: var(--navy); }

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

/* --- FORM --- */
.form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--navy); }
.req { color: #ef4444; }
.form-control {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text-primary);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,168,76,.15); }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { cursor: pointer; }

.wa-alt-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(37,211,102,.06);
  border: 1px solid rgba(37,211,102,.2);
  border-radius: var(--radius);
  text-align: center;
}
.wa-alt-box p { font-size: .875rem; color: var(--text-secondary); margin-bottom: .875rem; }
.wa-alt-box strong { color: var(--text-primary); }

/* --- FOOTER --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}
.footer .logo-name { color: #fff; }
.footer .logo-sub { color: rgba(255,255,255,.5); }
.footer-desc { font-size: .85rem; color: rgba(255,255,255,.55); margin-top: .75rem; max-width: 320px; }
.footer-contact { display: flex; flex-direction: column; gap: .6rem; padding-top: .25rem; }
.footer-contact-item { display: flex; align-items: center; gap: .6rem; font-size: .875rem; }
.footer-contact-item i { color: var(--accent); width: 16px; text-align: center; }
.footer-contact-item a { color: rgba(255,255,255,.75); transition: color var(--transition); }
.footer-contact-item a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  text-align: center;
}

/* --- WHATSAPP FLOAT --- */
.wa-float {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.wa-float-label {
  background: var(--navy);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: .4rem .75rem;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(6px);
  transition: all .25s;
  pointer-events: none;
}
.wa-float:hover .wa-float-label { opacity: 1; transform: translateX(0); }
.wa-float-btn {
  width: 52px; height: 52px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  color: #fff;
  font-size: 1.4rem;
  transition: all var(--transition);
}
.wa-float-btn:hover { background: var(--whatsapp-dark); transform: scale(1.08); }

/* --- MOBILE STICKY CTA --- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: .6rem 1rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.mobile-cta-inner { display: flex; gap: .5rem; }

/* --- SCROLL REVEAL --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .05s; }
.d2 { transition-delay: .12s; }
.d3 { transition-delay: .19s; }

/* --- RESPONSIVE --- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto; width: 100%; }
  .split-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .split-visual { max-width: 480px; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 768px) {
  .nav-links, .nav-right { display: none; }
  .nav-burger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding-top: calc(var(--nav-h) + 32px); padding-bottom: 48px; }
  .mobile-cta { display: block; }
  .wa-float { bottom: 5rem; }
  .trust-items { gap: .5rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-form-card { padding: 1.5rem; }
}
