/* ============================================================
   IGRL — Global Design System
   International Gem Research Laboratory
   Version: 1.0
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --navy:        #081A3C;
  --navy-light:  #0d2554;
  --royal-blue:  #123C9C;
  --gold:        #D4AF37;
  --gold-light:  #e8c84a;
  --gold-dim:    rgba(212, 175, 55, 0.15);
  --white:       #FFFFFF;
  --off-white:   #FAF8F2;
  --light-gray:  #F5F5F5;
  --border-gray: #E2E4E9;
  --text-dark:   #1E1E1E;
  --text-muted:  #6B7280;
  --text-light:  #9CA3AF;

  /* Typography */
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Sizing */
  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   10px;

  /* Shadows */
  --shadow-xs:   0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10);

  /* Transitions */
  --transition:  0.25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography Scale --- */
h1, h2, h3, h4, h5 { font-family: var(--font-serif); color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3rem);   font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem);  font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }
h5 { font-size: 0.9375rem; font-weight: 600; }

p  { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.75; }
small { font-size: 0.8125rem; }

/* --- Gold Divider --- */
.gold-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  display: block;
  margin: 12px 0 20px;
}
.gold-divider--center { margin: 12px auto 20px; }

/* --- Section Label --- */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--primary:hover {
  background: var(--navy-light);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212,175,55,0.20);
}

.btn--secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}
.btn--secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 600;
}
.btn--gold:hover {
  background: var(--gold-light);
}

.btn--sm { padding: 7px 16px; font-size: 0.8125rem; }
.btn--lg { padding: 13px 32px; font-size: 1rem; }

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  padding: 24px;
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-sm); }

.card--bordered-gold {
  border-top: 3px solid var(--gold);
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-label span { color: #e53e3e; margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 9px 12px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(8,26,60,0.08);
}
.form-control::placeholder { color: var(--text-light); }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-section-title {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--border-gray);
  padding-bottom: 8px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

/* --- Tables --- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 16px;
  text-align: left;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
thead th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }

tbody tr { background: var(--white); transition: background var(--transition); }
tbody tr:nth-child(even) { background: var(--off-white); }
tbody tr:hover { background: #EEF2FF; }

tbody td {
  padding: 10px 16px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-gray);
  vertical-align: middle;
}

/* --- Badges/Chips --- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 100px;
  text-transform: uppercase;
}
.badge--green  { background: #D1FAE5; color: #065F46; }
.badge--yellow { background: #FEF3C7; color: #92400E; }
.badge--red    { background: #FEE2E2; color: #991B1B; }
.badge--blue   { background: #DBEAFE; color: #1E40AF; }
.badge--gray   { background: var(--light-gray); color: var(--text-muted); }
.badge--navy   { background: var(--navy); color: var(--white); }
.badge--gold   { background: var(--gold-dim); color: #92600A; border: 1px solid rgba(212,175,55,0.4); }

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 0;
}
.pagination__btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--white);
  color: var(--text-dark);
  transition: all var(--transition);
}
.pagination__btn:hover, .pagination__btn--active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.pagination__info { font-size: 0.8125rem; color: var(--text-muted); margin: 0 8px; }

/* --- Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--gray { background: var(--light-gray); }
.section--offwhite { background: var(--off-white); }
.section--navy { background: var(--navy); }
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-white  { color: var(--white); }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm      { gap: 8px; }
.gap-md      { gap: 16px; }
.gap-lg      { gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }

/* --- Alert / Notice --- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert--success { background: #D1FAE5; color: #065F46; border-left: 3px solid #10B981; }
.alert--error   { background: #FEE2E2; color: #991B1B; border-left: 3px solid #EF4444; }
.alert--info    { background: #DBEAFE; color: #1E40AF; border-left: 3px solid #3B82F6; }
.alert--warning { background: #FEF3C7; color: #92400E; border-left: 3px solid var(--gold); }

/* --- Responsive --- */
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
}

/* ── Developer Credit Band ──────────────────────────────── */
.dev-credit-band {
  background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 40%, #111827 100%);
  border-top: 1px solid rgba(212,175,55,0.25);
  padding: 14px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dev-credit-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(212,175,55,0.06) 50%, transparent 100%);
  animation: shimmer-band 4s ease-in-out infinite;
}
@keyframes shimmer-band {
  0%,100% { opacity: 0; }
  50%      { opacity: 1; }
}
.dev-credit-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.dev-credit-icon {
  color: #D4AF37;
  opacity: 0.8;
  display: flex;
  align-items: center;
  filter: drop-shadow(0 0 6px rgba(212,175,55,0.5));
}
.dev-credit-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}
.dev-credit-text strong {
  background: linear-gradient(90deg, #D4AF37, #f5d76e, #D4AF37);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gold-shine 3s linear infinite;
  font-weight: 600;
}
@keyframes gold-shine {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.dev-credit-sep {
  margin: 0 6px;
  color: rgba(212,175,55,0.4);
}
.dev-credit-phone {
  color: rgba(212,175,55,0.75);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.dev-credit-phone:hover {
  color: #D4AF37;
  text-shadow: 0 0 10px rgba(212,175,55,0.4);
}

/* ══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Landing Page
   ══════════════════════════════════════════════════════════ */

/* Nav mobile */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-header { padding: 0 16px; }
  .hero-section { padding: 100px 0 60px; }
  .hero-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .hero-sub { font-size: 0.9375rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .trust-bar { flex-direction: column; gap: 12px; padding: 20px 16px; }
  .trust-item::after { display: none; }

  /* Verify */
  .verify-form { flex-direction: column; gap: 12px; }
  .verify-form .btn { width: 100%; justify-content: center; }

  /* Services grid */
  .services-grid { grid-template-columns: 1fr; }

  /* Process steps */
  .process-steps { flex-direction: column; gap: 24px; }
  .process-step-connector { display: none; }

  /* Library grid */
  .library-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .library-item__img { height: 120px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .about__img-wrap { order: -1; }

  /* Reviews */
  .reviews-grid { grid-template-columns: 1fr; }

  /* Contact / Request */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Verify box */
  .verify-box { padding: 24px 16px; }

  /* Section label & headings */
  .section-header h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section-label { font-size: 0.6875rem; }

  /* Dev credit */
  .dev-credit-inner { flex-direction: column; gap: 6px; }
  .dev-credit-text { font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .library-grid { grid-template-columns: 1fr; }
  .widget-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
}
