/* ====================================================================
   PAGES SPECIFIC STYLES (pages.css)
   Contains styles specific to individual service pages.
==================================================================== */

/* =====================================================
   ACCOUNTING PAGE
===================================================== */
/* Premium Corporate Financial Services Styling */
.service-section {
    background-color: #f8fafc;
    /* light slate-50 background */
    padding: 5rem 1rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #475569;
    /* slate-600 */
}

.service-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.01);
    line-height: 1.6;
}

.service-section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    /* deep navy/slate-900 */
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.025em;
    position: relative;
    padding-bottom: 1rem;
}

/* Accent Line under H2 */
.service-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #1e3a8a;
    /* primary main */
    border-radius: 2px;
}

/* Service Blocks (H3 + UL) */
.service-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    /* slate-800 */
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid #f59e0b;
    /* accent color amber */
    display: flex;
    align-items: center;
    line-height: 1.35;
}

.service-section h3+ul {
    margin-top: 0.5rem;
}

.service-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.service-section li {
    background: #f1f5f9;
    /* slate-100 */
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    letter-spacing: 0.1px;
    position: relative;
    padding-left: 2.5rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: flex-start;
}

@media (hover: hover) {
    .service-section li:hover {
        background: #ffffff;
        border-color: #cbd5e1;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
        transform: translateY(-1px);
        color: #0f172a;
    }
}

/* Custom Checkmark Bullet */
.service-section li::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #f59e0b;
    /* accent-600 */
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-section {
        padding: 3.5rem 1rem;
    }

    .service-section .container {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .service-section h2 {
        font-size: 1.75rem;
    }

    .service-section ul {
        grid-template-columns: 1fr;
    }

    .service-section h3 {
        font-size: 1.15rem;
    }

    .service-section li {
        padding: 0.9rem 1.1rem 0.9rem 2.4rem;
    }

    .service-section li::before {
        top: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-section li {
        transition: none !important;
    }
}

/* =====================================================
   CONTRACT PAGE
===================================================== */
/* Modern Premium AgriTech Styling */
.agri-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 6rem 1rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #475569;
}

.agri-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Section */
.agri-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.agri-section h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.agri-header p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 1rem;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

.agri-header strong {
    color: #1e3a8a;
    /* Primary blue */
    font-weight: 700;
}

/* Grid Layout for Cards */
.agri-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
    align-items: stretch;
}

/* Card Styling */
.agri-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.01);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #f1f5f9;
    border-left: 4px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    word-break: break-word;
}

@media (hover: hover) {
    .agri-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 22px rgba(15, 23, 42, 0.08);
        border-left-color: #1e3a8a;
    }
}

/* Card Content Hierarchy */
.agri-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
    line-height: 1.35;
    display: flex;
    align-items: flex-start;
}

.agri-card h3::before {
    content: '';
    display: block;
    min-width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    margin-top: 0.2rem;
    background-color: #eff6ff;
    border-radius: 0.4rem;
    box-shadow: inset 0 0 0 2px #dbeafe;
}

.agri-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #64748b;
    margin-bottom: 1rem;
}

.agri-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.agri-card li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.875rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #475569;
}

.agri-card li:last-child {
    margin-bottom: 0;
}

.agri-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
    color: #1e3a8a;
    font-weight: bold;
}

.agri-card li strong {
    color: #334155;
}

/* Highlighted Investment Card */
.agri-card.highlight {
    background: #0f172a;
    color: #f8fafc;
    border-left-color: #38bdf8;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2);
}

.agri-card.highlight h3 {
    color: #ffffff;
}

.agri-card.highlight h3::before {
    background-color: #1e293b;
    box-shadow: inset 0 0 0 2px #334155;
}

.agri-card.highlight p,
.agri-card.highlight li {
    color: #cbd5e1;
}

.agri-card.highlight li strong {
    color: #f8fafc;
}

.agri-card.highlight li::before {
    color: #38bdf8;
}

/* Costing Section */
.costing-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

.costing-header h2 {
    font-size: 2rem;
    margin-bottom: 0;
}

/* Costing Grid */
.costing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.costing-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    word-break: break-word;
}

@media (hover: hover) {
    .costing-card:hover {
        transform: translateY(-2px);
        border-color: #cbd5e1;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
}

.costing-card h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e2e8f0;
    line-height: 1.4;
}

.costing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
    flex-grow: 1;
}

.costing-card li {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: #64748b;
    border-bottom: 1px solid #f8fafc;
    line-height: 1.6;
}

.costing-card li strong {
    color: #334155;
    font-weight: 600;
    margin-left: 1rem;
    text-align: right;
}

.costing-card>p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 600;
    line-height: 1.5;
}

.costing-card>p:last-child {
    background: #dbeafe;
    color: #1e3a8a;
}

/* Entrance Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-load>* {
    will-change: opacity, transform;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.agri-cards-grid .agri-card:nth-child(1) { animation-delay: 0.1s; }
.agri-cards-grid .agri-card:nth-child(2) { animation-delay: 0.2s; }
.agri-cards-grid .agri-card:nth-child(3) { animation-delay: 0.3s; }
.agri-cards-grid .agri-card:nth-child(4) { animation-delay: 0.4s; }
.agri-cards-grid .agri-card:nth-child(5) { animation-delay: 0.5s; }
.agri-cards-grid .agri-card:nth-child(6) { animation-delay: 0.6s; }

.costing-grid .costing-card:nth-child(1) { animation-delay: 0.2s; }
.costing-grid .costing-card:nth-child(2) { animation-delay: 0.3s; }
.costing-grid .costing-card:nth-child(3) { animation-delay: 0.4s; }
.costing-grid .costing-card:nth-child(4) { animation-delay: 0.5s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .agri-section {
        padding: 4rem 1rem;
    }
    .agri-section h2 {
        font-size: 2rem;
    }
    .agri-cards-grid {
        gap: 1.5rem;
    }
    .agri-card {
        padding: 1.75rem 1.4rem;
    }
    .costing-card {
        padding: 1.6rem 1.3rem;
    }
    .costing-card li {
        flex-direction: column;
        gap: 0.25rem;
        border-bottom: 1px solid #f8fafc;
    }
    .costing-card li strong {
        margin-left: 0;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-load>*,
    .agri-card,
    .costing-card {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}


/* =====================================================
   LEGAL PAGE
===================================================== */
/* ---------- SECTION WRAPPER ---------- */
.regulatory-premium {
  position: relative;
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
  overflow: hidden;
}

/* Extra breathing space */
.regulatory-section {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

/* ---------- HEADER POLISH ---------- */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem auto;
}

.section-header h2 {
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-header p {
  line-height: 1.7;
  color: var(--color-slate-600);
}

/* =====================================================
   GRID — HARD OVERLAP FIX
===================================================== */
.regulatory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

/* Tablet */
@media (max-width: 991px) {
  .regulatory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 767px) {
  .regulatory-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* =====================================================
   CARD SAFETY (ANTI-OVERLAP CORE)
===================================================== */
.regulatory-premium .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  padding: 1.75rem;
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Premium but calm hover */
@media (hover: hover) {
  .regulatory-premium .card:hover {
    transform: translateY(-6px);
    box-shadow:
      0 20px 40px rgba(0, 0, 0, 0.08),
      0 8px 18px rgba(30, 58, 138, 0.06);
  }
}

/* =====================================================
   TYPOGRAPHY FIX (VERY IMPORTANT)
===================================================== */
.regulatory-premium h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin-bottom: 14px;
  word-break: break-word;
}

.regulatory-premium ul {
  padding-left: 18px;
  margin: 0;
}

.regulatory-premium li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--color-slate-700);
}

/* prevent text overflow bugs */
.regulatory-premium h3,
.regulatory-premium p,
.regulatory-premium li {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

/* =====================================================
   ENTRANCE ANIMATION (SUBTLE & PROFESSIONAL)
===================================================== */
@media (prefers-reduced-motion: no-preference) {
  .regulatory-premium .card {
    opacity: 0;
    transform: translateY(16px);
    animation: regulatoryFadeUp 0.55s ease forwards;
  }
  .regulatory-premium .card:nth-child(2) { animation-delay: 0.08s; }
  .regulatory-premium .card:nth-child(3) { animation-delay: 0.16s; }
  .regulatory-premium .card:nth-child(4) { animation-delay: 0.24s; }
  .regulatory-premium .card:nth-child(5) { animation-delay: 0.32s; }
}

@keyframes regulatoryFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   MICRO POLISH
===================================================== */
/* Better list spacing on small screens */
@media (max-width: 480px) {
  .regulatory-premium .card {
    padding: 1.4rem;
  }
  .section-header {
    margin-bottom: 2rem;
  }
}

/* Focus accessibility */
.regulatory-premium .card:focus-within {
  outline: 2px solid var(--color-primary-600);
  outline-offset: 2px;
}
