/* ============================================================
   Cjtech Solutions Theme — main.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --red:      #1B3A6B;
  --red-mid:  #254F8F;
  --amber:    #7A8FA6;
  --dark:     #0F1F3D;
  --charcoal: #1B2D4F;
  --mid:      #4A5568;
  --muted:    #8899A6;
  --light:    #F0F4F8;
  --white:    #FFFFFF;
  --border:   rgba(27,58,107,0.1);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;
  --max-w: 1100px;
  --nav-h: 90px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 5%; }

.section-label { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--red); padding-left: 12px; border-left: 2px solid var(--red); margin-bottom: 14px; }
.section-label--light { color: rgba(255,255,255,0.5); border-left-color: var(--amber); }
.section-title { font-family: var(--font-display); font-size: clamp(32px,4vw,50px); font-weight: 600; line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 14px; }
.section-title--light { color: #fff; }
.section-sub { font-size: 17px; color: var(--mid); max-width: 480px; line-height: 1.75; font-weight: 300; }
.section-sub--light { color: rgba(255,255,255,0.55); }

/* NAV */
#site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 999; height: var(--nav-h); background: rgba(255,255,255,0.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); transition: box-shadow 0.3s; }
#site-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.07); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 80px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 13px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); position: relative; transition: color 0.2s; }
.nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1.5px; background: var(--red); transition: width 0.25s; }
.nav-links a:hover { color: var(--dark); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: var(--red) !important; color: #fff !important; padding: 10px 22px !important; border-radius: 3px; letter-spacing: 1px !important; transition: background 0.2s !important; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--red-mid) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.3s; }

/* TAGLINE */
#hero-tagline { background: var(--light); border-bottom: 1px solid var(--border); padding: 20px 0; margin-top: var(--nav-h); }
#hero-tagline p { font-family: var(--font-display); font-size: clamp(18px,2.5vw,26px); color: var(--dark); font-weight: 400; font-style: italic; letter-spacing: -0.3px; }

/* SERVICES */
#services { padding: 80px 0 100px; background: var(--light); }
.svc-header { margin-bottom: 52px; }
.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(27,58,107,0.18); border: 1px solid rgba(27,58,107,0.18); border-radius: 6px; overflow: hidden; }
.svc-card { background: var(--white); padding: 40px 32px; transition: background 0.25s; }
.svc-card:hover { background: var(--light); }
.svc-card::before { content: ''; display: block; width: 28px; height: 2px; background: var(--red); border-radius: 2px; margin-bottom: 24px; transition: width 0.3s; }
.svc-card:hover::before { width: 48px; }
.svc-num { font-family: var(--font-display); font-size: 52px; color: rgba(27,58,107,0.07); line-height: 1; margin-bottom: 14px; font-weight: 400; }
.svc-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--dark); margin-bottom: 10px; line-height: 1.25; }
.svc-card p { font-size: 16px; color: var(--mid); line-height: 1.75; font-weight: 300; }

/* ABOUT */
#about { padding: 100px 0; background: var(--dark); position: relative; overflow: hidden; }
#about::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg,rgba(27,58,107,0.15) 0%,transparent 50%), linear-gradient(225deg,rgba(122,143,166,0.08) 0%,transparent 50%); pointer-events: none; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; position: relative; }
.about-body { font-size: 16px; color: rgba(255,255,255,0.58); line-height: 1.85; font-weight: 300; margin-top: 20px; }
.about-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 36px; }
.about-monogram { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg,#1B3A6B,#4A7FA5); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.about-name { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.about-role { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--amber); margin-bottom: 20px; font-weight: 500; }
.about-card p { font-size: 15px; color: rgba(255,255,255,0.52); line-height: 1.8; font-weight: 300; }
.about-divider { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 20px 0; }
.about-contact-links { display: flex; flex-direction: column; gap: 8px; }
.about-contact-link { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.42); transition: color 0.2s; font-weight: 300; }
.about-contact-link:hover { color: rgba(255,255,255,0.8); }
.about-contact-link svg { opacity: 0.5; flex-shrink: 0; }

/* CONTACT */
#contact { padding: 100px 0; background: var(--light); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.35fr; gap: 72px; align-items: start; }
.contact-detail-list { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.contact-item { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--white); border: 1px solid var(--border); border-radius: 5px; text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.15s; }
.contact-item:hover { border-color: var(--red); transform: translateX(4px); }
.contact-item-icon { width: 34px; height: 34px; background: rgba(27,58,107,0.08); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--red); }
.contact-item-text strong { display: block; font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-item-text span { font-size: 15px; color: var(--dark); }
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 40px; }
.contact-form h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--dark); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 9px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 13px; border: 1.5px solid var(--border); border-radius: 4px; font-family: var(--font-body); font-size: 13px; color: var(--dark); background: var(--white); outline: none; transition: border-color 0.2s; appearance: none; font-weight: 300; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-submit { width: 100%; padding: 12px; background: var(--red); color: #fff; border: none; border-radius: 4px; font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: background 0.2s, transform 0.15s; margin-top: 4px; }
.btn-submit:hover { background: var(--red-mid); transform: translateY(-1px); }
.form-message { display: none; padding: 12px 16px; border-radius: 4px; font-size: 13px; margin-top: 12px; }
.form-message.success { display: block; background: rgba(20,100,50,0.08); color: #1a6432; border: 1px solid rgba(20,100,50,0.2); }
.form-message.error { display: block; background: rgba(27,58,107,0.07); color: var(--red); border: 1px solid rgba(27,58,107,0.2); }

/* FOOTER */
#site-footer { background: var(--charcoal); padding: 28px 0; border-top: 3px solid var(--red); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.32); font-weight: 300; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.32); transition: color 0.2s; font-weight: 300; }
.footer-links a:hover { color: rgba(255,255,255,0.65); }

/* ANIMATIONS */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .svc-grid, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-inner { gap: 48px; }
  .contact-inner { gap: 48px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 70px; }
  .nav-logo img { height: 56px; }
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open { display: flex; position: fixed; top: var(--nav-h); left: 0; right: 0; background: #fff; padding: 16px 0; border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
  .nav-links.open a { padding: 14px 5%; display: block; width: 100%; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .contact-form { padding: 28px 20px; }
  .about-card { padding: 24px; }
}
