/* ========================================
   DJK Services - Business Planning Website
   Professional Corporate Design
   ======================================== */

/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5282;      /* Professional Blue */
    --secondary-color: #4a5568;    /* Slate Gray */
    --accent-color: #3182ce;       /* Bright Blue */
    --success-color: #38a169;      /* Green */
    --text-dark: #1a202c;          /* Almost Black */
    --text-medium: #4a5568;        /* Medium Gray */
    --text-light: #718096;         /* Light Gray */
    --background-light: #f7fafc;   /* Very Light Blue-Gray */
    --background-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    color: var(--text-dark);
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* === HEADER === */
header {
    background-color: var(--background-white);
    border-bottom: 2px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.logo .tagline {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-medium);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

/* === HERO COMPACT SECTION === */
.hero-compact {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    padding: 3rem 0;
}

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

.hero-content h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons-compact {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-upload {
    display: flex;
    justify-content: center;
}

.upload-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
}

.upload-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.upload-card p {
    color: var(--text-color);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.btn-upload {
    background-color: var(--accent-color);
    color: white;
    padding: 0.75rem 2rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.btn-upload:hover {
    background-color: var(--primary-color);
    transform: translateY(-1px);
}

.upload-features {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.875rem 2rem;
}

.btn-primary:hover {
    background-color: var(--background-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    font-weight: 600;
    padding: 0.875rem 2rem;
}

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

.btn-primary-large {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-primary-large:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* === FEATURES COMPACT SECTION === */
.features-compact {
    padding: 3rem 0;
    background-color: white;
}

.features-compact h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
}

.feature-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background-color: #f7fafc;
    padding: 1.5rem;
    border-radius: 6px;
    box-shadow: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    background-color: white;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.feature-card p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-size: 0.925rem;
    line-height: 1.5;
}

.card-link {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    color: var(--primary-color);
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, #38a169 0%, #2c5282 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.25rem;
    font-size: 2.25rem;
    font-weight: 700;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-white {
    background-color: white !important;
    color: #2c5282 !important;
    border: none;
}

.cta-white:hover {
    background-color: #f7fafc !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-checklist {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-top: 2rem;
    margin-bottom: 0;
}

/* === QUICK LINKS SECTION === */
.quick-links {
    padding: 2.5rem 0;
    background-color: var(--background-light);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.quick-link-card {
    background: white;
    padding: 1.75rem;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.quick-link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.quick-link-card h3 {
    color: var(--primary-color);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.quick-link-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.quick-link-card a {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.quick-link-card a:hover {
    color: var(--primary-color);
}

/* === TWO COLUMN LAYOUT === */
.two-column-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.column-card {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.column-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

@media (max-width: 1024px) {
    .two-column-grid,
    .three-column-grid {
        grid-template-columns: 1fr;
    }
}

.resource-item {
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.resource-item:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.resource-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.resource-item p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.resource-item a {
    color: var(--accent-color);
    font-weight: 600;
}

/* === FOOTER === */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* === CONTENT PAGES === */
.page-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.content-section {
    padding: 2.5rem 0;
}

.content-section h2 {
    color: var(--primary-color);
    margin: 2rem 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-color);
    font-size: 1.5rem;
}

.content-section h2:first-of-type {
    margin-top: 0;
}

.content-section h3 {
    color: var(--secondary-color);
    margin: 1.25rem 0 0.75rem;
    font-size: 1.125rem;
}

.content-box {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-color);
}

.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.checklist li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.example-box {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.example-box h4 {
    color: #92400e;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.example-box p {
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.tip-box {
    background-color: #ecfdf5;
    border-left: 4px solid var(--success-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.warning-box {
    background-color: #fef2f2;
    border-left: 4px solid #dc2626;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

/* === CALCULATOR STYLES === */
.calculator-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
}

.calculator-input {
    margin-bottom: 1.5rem;
}

.calculator-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.calculator-input input,
.calculator-input select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.calculator-input input:focus,
.calculator-input select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.calculator-result {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    border: 2px solid var(--success-color);
}

.calculator-result h3 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.result-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

/* === TABLE STYLES === */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: white;
    box-shadow: var(--shadow-sm);
}

th {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

tr:hover {
    background-color: var(--background-light);
}

/* === CALCULATOR TABS === */
.calculator-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: var(--primary-color);
    background-color: var(--background-light);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .feature-grid-compact {
        grid-template-columns: 1fr;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media print {
    header, footer, nav, .hero-buttons, .cta-section {
        display: none;
    }

    .content-section {
        padding: 0;
    }

    .page-header {
        background: none;
        color: var(--text-dark);
        padding: 1rem 0;
    }

    .page-header h1 {
        color: var(--text-dark);
    }
}
