/* ==========================================================================
   AY TRADING PLC — Design System
   Direction: "Viewfinder" — corner-bracket reticle motif drawn from CCTV/
   surveillance framing, monospace technical headings + clean sans body.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Color tokens */
  --ink:        #0E1720;
  --ink-soft:   #16222E;
  --paper:      #F5F6F3;
  --paper-dim:  #E9EBE6;
  --amber:      #E8A33D;
  --steel:      #3B5568;
  --rec-red:    #C4402B;
  --slate:      #1F2A33;
  --white:      #FFFFFF;

  /* Type */
  --font-display: 'JetBrains Mono', 'Courier New', monospace;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-w: 1180px;
  --radius: 2px; /* deliberately near-sharp — technical, not soft/app-like */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--slate);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Eyebrow / status-label (evokes on-screen camera labels) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--rec-red);
  box-shadow: 0 0 0 3px rgba(196,64,43,0.15);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3.2vw, 36px); }
h3 { font-size: 20px; }
p  {
	text-align: justify;
    text-justify: inter-word;
	margin: 0 0 16px; 
	color: var(--slate);
	
}
.lede { font-size: 18px; color: var(--steel); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #f0b25a; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline-light { border-color: var(--paper); color: var(--paper); background: transparent; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--ink);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(245,246,243,0.08);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--paper);
  letter-spacing: 0.02em;
}
.logo span { color: var(--amber); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 14px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav-links a { opacity: 0.8; transition: opacity 0.15s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--amber); }
.nav-toggle { display: none; background: none; border: none; color: var(--paper); font-size: 24px; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { border-top: 1px solid rgba(245,246,243,0.08); }
  .nav-links a { display: block; padding: 16px 24px; }
  .nav-toggle { display: block; }
}

/* ---------- Viewfinder frame — the signature element ---------- */
.viewfinder {
  position: relative;
  padding: 18px;
}
.viewfinder::before,
.viewfinder::after,
.viewfinder .vf-tr,
.viewfinder .vf-bl {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid var(--amber);
}
.viewfinder::before        { top: 0; left: 0; border-right: none; border-bottom: none; }
.viewfinder .vf-tr         { top: 0; right: 0; border-left: none; border-bottom: none; }
.viewfinder::after         { bottom: 0; left: 0; border-right: none; border-top: none; }
.viewfinder .vf-bl         { bottom: 0; right: 0; border-left: none; border-top: none; }
.viewfinder .vf-tag {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.06em;
  background: rgba(14,23,32,0.75);
  color: var(--paper);
  padding: 4px 8px;
  z-index: 2;
}
.viewfinder .vf-media { overflow: hidden; }
.viewfinder .vf-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { color: var(--white); }
.hero .lede { color: rgba(245,246,243,0.75); }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-visual {
  aspect-ratio: 4/3;
  background: var(--ink-soft);
}

/* ---------- Section scaffolding ---------- */
.section { padding: 80px 0; }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dim { background: var(--paper-dim); }
.section-head { max-width: 640px; margin-bottom: 48px; }

/* ---------- Service / feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid rgba(31,42,51,0.1);
  padding: 28px;
  border-radius: var(--radius);
}
.card .icon {
  width: 40px; height: 40px;
  margin-bottom: 20px;
  color: var(--amber);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--steel); margin-bottom: 0; }

/* ---------- Product / project card with viewfinder image ---------- */
.item-card { background: var(--white); border: 1px solid rgba(31,42,51,0.1); }
.item-card .vf-media { aspect-ratio: 4/3; background: var(--paper-dim); }
.item-card .item-body { padding: 20px; }
.item-card .item-cat {
  font-family: var(--font-display);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--steel); margin-bottom: 8px; display: block;
}
.item-card h3 { font-size: 17px; margin-bottom: 8px; }
.item-card p { font-size: 14px; color: var(--steel); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-family: var(--font-display); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; color: var(--steel);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 14px; border: 1px solid rgba(31,42,51,0.2);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 15px;
  background: var(--white); color: var(--slate);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-info-item .label { font-family: var(--font-display); font-size: 12px; text-transform: uppercase; color: var(--steel); letter-spacing: 0.05em; }
.contact-info-item .value { font-size: 16px; color: var(--ink); font-weight: 600; }

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }
.alert-success { background: rgba(232,163,61,0.15); border: 1px solid var(--amber); color: var(--ink); }
.alert-error { background: rgba(196,64,43,0.1); border: 1px solid var(--rec-red); color: var(--rec-red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(245,246,243,0.7); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--paper); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(245,246,243,0.1);
  padding-top: 24px;
  font-size: 13px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: white; }

/* ---------- Testimonial carousel ---------- */
.testimonial-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid rgba(31,42,51,0.1);
  padding: 28px;
  border-radius: var(--radius);
}
@media (max-width: 500px) {
  .testimonial-card { flex-basis: 85%; }
}
.carousel-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.carousel-btn:hover { background: var(--ink); color: var(--paper); }

/* ---------- Scroll-reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.1s; }
.reveal-delay-2.in-view { transition-delay: 0.2s; }

/* Hover motion on viewfinder media (service photos etc.) */
.viewfinder .vf-media img,
.viewfinder.vf-media img {
  transition: transform 0.5s ease;
}
.viewfinder:hover .vf-media img,
.viewfinder.vf-media:hover img {
  transform: scale(1.04);
}
.hero-visual { transition: transform 0.5s ease; }

/* Numbered step marker used on the services page */
.step-marker {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--amber);
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 10px;
  opacity: 0.9;
}

/* ---------- Filters (products page) ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  font-family: var(--font-display); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 9px 16px; border: 1px solid var(--ink);
  background: transparent; color: var(--ink); cursor: pointer; border-radius: var(--radius);
}
.filter-btn.active, .filter-btn:hover { background: var(--ink); color: var(--paper); }

.empty-state {
  text-align: center; padding: 60px 20px; color: var(--steel);
  font-family: var(--font-display); font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em;
}
