/* ═══════════════════════════════════════════════
   Joy Sail Corporation Limited — Website Styles
   Design: Clean professional corporate
   Fonts: Inter (body) + Source Serif 4 (headings)
   ═══════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #1a56a0;
  --blue-dk:     #13417f;
  --blue-lt:     #e8f0fb;
  --blue-mid:    #2a6abf;
  --gray-900:    #111827;
  --gray-700:    #374151;
  --gray-500:    #6b7280;
  --gray-300:    #d1d5db;
  --gray-100:    #f3f4f6;
  --white:       #ffffff;
  --border:      #e5e7eb;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.08);

  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:  'Source Serif 4', 'Georgia', serif;
}

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

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--gray-700);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ── LAYOUT ── */
.container {
  width: min(1140px, 100% - 3rem);
  margin-inline: auto;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ── TYPOGRAPHY ── */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.75;
}

.body-text {
  font-size: 0.975rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dk); border-color: var(--blue-dk); }

.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-full { width: 100%; justify-content: center; }

/* ── TOP BANNER ── */
.top-banner {
  background: var(--blue);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  text-align: center;
  padding: 0.45rem 1rem;
  letter-spacing: 0.02em;
}

/* ── NAV ── */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
}

.brand-tagline {
  font-size: 0.65rem;
  color: var(--gray-500);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-700);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: background 0.12s, color 0.12s;
}

.nav-links a:hover { background: var(--gray-100); color: var(--gray-900); }

.nav-cta { margin-left: 0.75rem; font-size: 0.8rem; padding: 0.5rem 1.1rem; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .brand-tagline { display: none; }
}

/* ── HERO ── */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-image-wrap {
    order: -1;
  }
}

.hero-inner {
  padding: 1rem 0;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.hero-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-lt);
  border: 1px solid rgba(26,86,160,0.18);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item { display: flex; flex-direction: column; gap: 0.2rem; }

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--gray-500);
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--gray-100);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.trust-items {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  white-space: nowrap;
}

.trust-item svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
  flex-shrink: 0;
}

/* ── SECTIONS ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--gray-100); }

.section-header { margin-bottom: 3rem; }
.section-header-center { text-align: center; }
.section-header-center .section-lead { margin-inline: auto; }

/* ── ABOUT ── */
.about-info-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-info-header {
  background: var(--blue);
  color: var(--white);
  padding: 1.25rem 1.5rem;
}

.about-info-header h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
}

.about-info-header p {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-top: 0.2rem;
}

.about-info-rows {
  divide: var(--border);
}

.about-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.about-info-row:last-child { border-bottom: none; }

.about-info-label { color: var(--gray-500); flex-shrink: 0; margin-right: 1rem; }
.about-info-value { color: var(--gray-900); font-weight: 500; text-align: right; }

/* ── CHECK LIST ── */
.check-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: var(--blue-lt);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l3 3 6-6' stroke='%231a56a0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px)  { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.service-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
}

.svc-icon-wrap {
  width: 40px;
  height: 40px;
  background: var(--blue-lt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--blue);
}

.svc-icon-wrap svg { width: 20px; height: 20px; }

.svc-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.svc-text {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ── PRODUCTS ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) { .products-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .products-grid { grid-template-columns: 1fr; } }

.product-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.product-tile:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.product-icon-wrap {
  width: 40px;
  height: 40px;
  background: var(--blue-lt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--blue);
}

.product-icon-wrap svg { width: 20px; height: 20px; }

.product-tile h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.4rem;
}

.product-tile p {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.65;
}

.products-note {
  font-size: 0.85rem;
  color: var(--gray-500);
  text-align: center;
  padding-top: 0.5rem;
}

.products-note a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── CONTACT ── */
.contact-section {
  background: var(--gray-100);
  border-top: 1px solid var(--border);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.contact-icon-wrap {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-top: 1px;
}

.contact-icon-wrap svg { width: 17px; height: 17px; }

.contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.15rem;
}

.contact-value {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.6;
}

a.contact-value:hover { color: var(--blue); }

/* ── CONTACT FORM ── */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-form-wrap h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.3rem; }

.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.875rem;
  color: var(--gray-900);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-300);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,160,0.1);
}

.form-consent {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.form-consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* ── FOOTER ── */
.footer {
  background: var(--gray-900);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--blue-mid);
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.75rem;
}

.footer-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}

.footer-reg {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  flex: 1;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.15s;
}

.footer-links a:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-reg { text-align: left; flex: unset; }
}
