/* ===========================================================
   Ceylon Trust Cooperation — Main Stylesheet
   Theme: Deep Navy + Bright Gold
   =========================================================== */

:root {
  --navy: #0a1d37;
  --navy-deep: #061223;
  --navy-light: #142c4f;
  --navy-tint: #eef2f8;
  --gold: #cda434;
  --gold-bright: #e6c35c;
  --cream: #faf8f3;
  --white: #ffffff;
  --text: #1c2430;
  --text-muted: #5c6673;
  --border: #e3e7ee;
  --shadow: 0 20px 50px -20px rgba(10, 29, 55, 0.25);
  --radius: 16px;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--navy); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: 2px solid transparent; transition: all .25s ease; white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--navy-deep); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(205,164,52,.55); }
.btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn-whatsapp { background: #25D366; color: #fff; padding: 10px 18px; font-size: 14px; }
.btn-whatsapp:hover { background: #1ebe5b; }
.btn-whatsapp i { font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  z-index: 200; transition: width .12s ease-out;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; padding: 18px 0; transition: all .35s ease;
}
.site-header.scrolled {
  background: rgba(10, 29, 55, 0.92); backdrop-filter: blur(10px);
  padding: 12px 0; box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #fff; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; display: block; border: 1.5px solid rgba(205,164,52,.4);
}
.brand-text em { color: var(--gold); font-style: normal; }
.brand-footer { color: #fff; margin-bottom: 16px; }
.brand-footer .brand-text em { color: var(--gold); }

.main-nav { display: flex; gap: 32px; }
.main-nav a { color: rgba(255,255,255,.85); font-weight: 600; font-size: 15px; position: relative; padding: 4px 0; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  background: radial-gradient(ellipse at top right, var(--navy-light) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff; overflow: hidden; padding-top: 100px;
}
.hero-bg-image {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(120deg, rgba(6,18,35,.94), rgba(10,29,55,.88) 55%, rgba(20,44,79,.82));
}
.hero::before {
  content: ''; position: absolute; inset: -60px; z-index: 1;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(205,164,52,.12) 0, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(205,164,52,.08) 0, transparent 45%);
  pointer-events: none;
  transform: translate(calc(var(--mx, 0) * 1px), calc(var(--my, 0) * 1px));
  transition: transform .25s ease-out;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); color: #fff; margin-bottom: 22px; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,.78); max-width: 520px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats .stat-num { font-family: var(--font-display); font-size: 32px; color: var(--gold); font-weight: 600; }
.hero-stats .stat-label { font-size: 13px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .05em; }

.hero-card {
  position: relative; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 32px; backdrop-filter: blur(6px);
  transition: transform .12s ease-out;
  will-change: transform;
}
.hero-visual { position: relative; }
.hero-illustration {
  position: absolute; top: -70px; right: -30px; width: 220px; opacity: .9;
  pointer-events: none; z-index: 0; animation: floatSlow 6s ease-in-out infinite;
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-card-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.hero-card-row:last-child { border-bottom: none; }
.hero-card-row .label { color: rgba(255,255,255,.65); font-size: 14px; }
.hero-card-row .value { font-weight: 700; color: #fff; }
.hero-card-badge {
  position: absolute; top: -18px; right: 24px; background: var(--gold); color: var(--navy-deep);
  padding: 8px 18px; border-radius: 999px; font-weight: 800; font-size: 13px; box-shadow: var(--shadow);
}
.hero-scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.55); font-size: 12px;
}
.mouse { width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.4); border-radius: 12px; position: relative; }
.mouse::before {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: var(--gold); border-radius: 2px; animation: scrollDown 1.6s infinite;
}
@keyframes scrollDown { 0% { opacity: 1; top: 6px; } 100% { opacity: 0; top: 18px; } }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-navy { background: var(--navy); color: #fff; }
.section-tint { background: var(--navy-tint); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-navy .section-head h2 { color: #fff; }
.section-head p { color: var(--text-muted); font-size: 17px; margin-top: 14px; }
.section-navy .section-head p { color: rgba(255,255,255,.7); }

/* ---------- Trust bar ---------- */
.trust-bar { padding: 40px 0; border-bottom: 1px solid var(--border); }
.trust-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; text-align: center; }
.trust-item { flex: 1; min-width: 150px; }
.trust-item .num { font-family: var(--font-display); font-size: 30px; color: var(--navy); font-weight: 600; }
.trust-item .lbl { color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }

/* ---------- Service cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: transform .15s ease-out, box-shadow .3s ease, border-color .3s ease;
  will-change: transform; cursor: pointer;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.service-icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--navy-tint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--gold);
}
.service-icon i { font-size: 22px; }
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 15px; }
.service-card .learn-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 14px; color: var(--navy); }
.service-card .learn-more svg { transition: transform .2s ease; }
.service-card:hover .learn-more svg { transform: translateX(4px); }

/* ---------- Process steps ---------- */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-step { position: relative; padding: 32px 24px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); }
.process-step .step-num {
  position: absolute; top: -18px; left: 24px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--gold); font-family: var(--font-display); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.process-step h4 { font-size: 16px; margin: 14px 0 8px; }
.process-step p { font-size: 14px; color: var(--text-muted); }

/* ---------- Why choose us ---------- */
.feature-row { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.feature-row:last-child { border-bottom: none; }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(205,164,52,.15); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-row h4 { color: #fff; font-size: 17px; margin-bottom: 6px; }
.feature-row p { color: rgba(255,255,255,.68); font-size: 14.5px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, var(--navy-light));
  border-radius: 24px; padding: 64px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-banner::after {
  content: ''; position: absolute; width: 320px; height: 320px; background: radial-gradient(circle, rgba(205,164,52,.25), transparent 70%);
  top: -100px; right: -80px;
}
.cta-banner h2 { color: #fff; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,.72); max-width: 520px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- FAQ accordion ---------- */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-q {
  width: 100%; text-align: left; background: none; border: none; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; cursor: pointer;
  font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--navy);
}
.accordion-q .icon { flex-shrink: 0; margin-left: 16px; width: 24px; height: 24px; position: relative; }
.accordion-q .icon::before, .accordion-q .icon::after { content: ''; position: absolute; background: var(--navy); transition: transform .25s ease; }
.accordion-q .icon::before { width: 14px; height: 2px; top: 11px; left: 5px; }
.accordion-q .icon::after { width: 2px; height: 14px; top: 5px; left: 11px; }
.accordion-item.open .accordion-q .icon::after { transform: rotate(90deg); opacity: 0; }
.accordion-item.open .accordion-q { color: var(--gold); }
.accordion-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion-a p { padding-bottom: 22px; color: var(--text-muted); font-size: 15px; max-width: 720px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 700; color: var(--navy); }
input, select, textarea {
  padding: 13px 16px; border: 1.5px solid var(--border); border-radius: 10px; font-family: var(--font-body);
  font-size: 15px; color: var(--text); background: #fff; transition: border-color .2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 10px; }
#formMessage { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-size: 14px; font-weight: 600; display: none; }
#formMessage.success { display: block; background: #e6f7ec; color: #1a7f3f; }
#formMessage.error { display: block; background: #fdeceb; color: #c0392b; }

/* ---------- Contact page layout ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-info-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 36px; }
.contact-info-card h3 { color: #fff; margin-bottom: 6px; }
.contact-info-card p { color: rgba(255,255,255,.7); margin-bottom: 28px; font-size: 14.5px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info-item .ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(205,164,52,.18); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-item .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.55); }
.contact-info-item .val { font-weight: 700; }
.contact-form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-about p { font-size: 14.5px; margin: 16px 0 20px; max-width: 320px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: background .2s ease; }
.footer-social a i { font-size: 16px; }
.footer-social a:hover { background: var(--gold); color: var(--navy-deep); }
.footer-links h4, .footer-contact h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-links a { display: block; font-size: 14.5px; margin-bottom: 12px; transition: color .2s ease; }
.footer-links a:hover { color: var(--gold); }
.footer-contact p { font-size: 14.5px; margin-bottom: 12px; }
.footer-contact a:hover { color: var(--gold); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; flex-wrap: wrap; gap: 10px; }
.footer-bottom-inner p { font-size: 13px; }
.disclaimer { color: rgba(255,255,255,.45); }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.5); z-index: 90; animation: pulse 2.4s infinite;
}
.whatsapp-float i { font-size: 28px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.visible { transition-delay: .1s; }
.reveal-delay-2.visible { transition-delay: .2s; }
.reveal-delay-3.visible { transition-delay: .3s; }
.reveal-delay-4.visible { transition-delay: .4s; }

/* ---------- Service description modal ---------- */
html.no-scroll, html.no-scroll body { overflow: hidden; height: 100%; }
.modal-overlay {
  position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(6, 18, 35, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.service-modal {
  position: relative; background: #fff; border-radius: 20px; padding: 44px; width: 100%; max-width: 560px;
  max-height: 85vh; overflow-y: auto; transform: translateY(24px) scale(.97); transition: transform .3s ease;
}
.modal-overlay.open .service-modal { transform: translateY(0) scale(1); }
.service-modal .service-icon { width: 60px; height: 60px; margin-bottom: 22px; }
.service-modal .service-icon i { font-size: 26px; }
.service-modal h3 { font-size: 24px; margin-bottom: 16px; }
.service-modal p { color: var(--text-muted); font-size: 16px; margin-bottom: 28px; }
.modal-close {
  position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy-tint); color: var(--navy); border: none; display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: background .2s ease;
}
.modal-close i { font-size: 15px; }
.modal-close:hover { background: var(--gold); color: var(--navy-deep); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: radial-gradient(ellipse at top right, var(--navy-light) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff; padding: 160px 0 90px; text-align: center;
}
.page-header h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); }
.page-header p { color: rgba(255,255,255,.72); max-width: 560px; margin: 16px auto 0; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Value/about blocks ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.value-list li { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.value-list .check { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-split, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .process-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand-text em { display: none; }
  .brand-text { font-size: 14px; white-space: nowrap; }
  .header-actions { gap: 8px; }
  .btn-whatsapp { padding: 10px; border-radius: 50%; }
  .btn-whatsapp .btn-label { display: none; }
  .service-modal { padding: 32px 24px; max-height: 90vh; }
  .service-modal h3 { font-size: 21px; }
  .modal-overlay { padding: 16px; }
  .hero-illustration { width: 130px; top: -40px; right: -10px; opacity: .6; }
  .main-nav {
    position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 320px;
    background: var(--navy-deep); flex-direction: column; padding: 100px 32px 32px; gap: 24px;
    transition: right .35s ease; z-index: 99;
  }
  .main-nav.open { right: 0; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-2, .process-steps, .footer-grid { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .cta-banner { padding: 40px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero-stats { gap: 24px; }
  .trust-grid { justify-content: flex-start; }
}
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .brand { gap: 6px; }
  .brand-mark { width: 34px; height: 34px; font-size: 14px; }
  .brand-text { font-size: 12px; }
  .contact-info-card, .contact-form-card { padding: 24px; }
  .login-card { padding: 28px; }
  .service-card { padding: 24px; }
  .service-modal { padding: 24px 18px; }
  .cta-banner { padding: 32px 18px; }
  .hero-card { padding: 22px; }
}
