/* ============================================
   KEIDAL LLP WEBSITE - MAIN STYLESHEET
   Complete styling for all pages and components
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    font-size: 16px;
}

/* === SKIP TO CONTENT (Accessibility) === */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* === HEADER === */
header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.header-info {
    text-align: right;
}

.company-tagline {
    font-size: 14px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.company-contact {
    font-size: 13px;
}

.company-contact a {
    color: #93c5fd;
    text-decoration: none;
}

.company-contact a:hover {
    text-decoration: underline;
}

/* === NAVIGATION === */
.main-nav {
    background: #1f2937;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-menu {
    max-width: 1200px;
    margin: 0 auto;
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
    background: #374151;
}

.nav-menu a.active {
    background: #3b82f6;
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

.mobile-menu-toggle .hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* === BREADCRUMB === */
.breadcrumb {
    background: #f3f4f6;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-item {
    font-size: 14px;
}

.breadcrumb-item a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #6b7280;
}

/* === MAIN CONTENT === */
main {
    min-height: calc(100vh - 400px);
}

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

h1 {
    color: #1e40af;
    font-size: 2.5em;
    margin-bottom: 20px;
    border-bottom: 3px solid #3b82f6;
    padding-bottom: 10px;
}

h2 {
    color: #1e40af;
    font-size: 1.8em;
    margin: 30px 0 15px 0;
}

h3 {
    color: #1f2937;
    font-size: 1.3em;
    margin: 20px 0 10px 0;
}

p {
    margin-bottom: 15px;
}

.intro {
    font-size: 1.1em;
    color: #4b5563;
    margin-bottom: 30px;
    padding: 20px;
    background: #f0f9ff;
    border-left: 4px solid #3b82f6;
    border-radius: 4px;
}

ul, ol {
    margin: 15px 0 15px 30px;
}

li {
    margin-bottom: 8px;
}

a {
    color: #3b82f6;
    transition: color 0.3s ease;
}

a:hover {
    color: #2563eb;
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: white;
    border: none;
    font-size: 3em;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.4em;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero p {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #10b981;
    color: white;
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

/* === GRID LAYOUTS === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.service-card {
    background: #f9fafb;
    padding: 25px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-5px);
}

.service-card h3 {
    color: #1e40af;
    margin-top: 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature {
    padding: 20px;
    background: #f0f9ff;
    border-radius: 6px;
}

.feature h3 {
    color: #1e40af;
    margin-top: 0;
    font-size: 1.1em;
}

/* === CTA SECTIONS === */
.cta-section,
.cta-box {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.cta-section h2,
.cta-box h2 {
    color: white;
    margin-top: 0;
}

.cta-section p,
.cta-box p {
    font-size: 1.1em;
    margin-bottom: 25px;
}

/* === INFO BOXES === */
.info-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.info-box h3 {
    color: #92400e;
    margin-top: 0;
}

/* === APPROACH STEPS === */
.approach-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.step {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border-top: 4px solid #3b82f6;
}

.step h3 {
    color: #1e40af;
    margin-top: 0;
}

/* === CONTACT FORM === */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 30px 0;
}

.contact-form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
}

.required {
    color: #dc2626;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
}

.btn-submit {
    width: 100%;
}

.form-message {
    padding: 15px;
    margin-top: 15px;
    border-radius: 6px;
    white-space: pre-line;
}

.form-message.success {
    background: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
}

.form-message.error {
    background: #fee2e2;
    border: 2px solid #ef4444;
    color: #991b1b;
}

.contact-details {
    margin-bottom: 25px;
}

.contact-details h3 {
    color: #1e40af;
    margin-bottom: 10px;
}

/* === FOOTER === */
footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 40px 0 20px 0;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: white;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-section a {
    color: #93c5fd;
    text-decoration: none;
}

.footer-section a:hover {
    color: #dbeafe;
    text-decoration: underline;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 20px 20px 0 20px;
    border-top: 1px solid #374151;
    text-align: center;
    font-size: 14px;
}

.footer-compliance {
    margin-top: 10px;
    opacity: 0.8;
}

/* === BACK TO TOP BUTTON === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #3b82f6;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    background: #2563eb;
    transform: translateY(-5px);
}

/* === RESOURCE CARDS === */
.resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.resource-card {
    background: #f0f9ff;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.resource-card h3 {
    color: #1e40af;
    margin-top: 0;
}

/* === CASE STUDY === */
.case-study {
    background: #f9fafb;
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid #10b981;
    margin: 30px 0;
}

.case-study h3 {
    color: #065f46;
    margin-top: 0;
}

/* === EXPERTISE & TOOLS === */
.expertise-areas,
.tools-frameworks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.expertise,
.tool {
    background: #f0f9ff;
    padding: 20px;
    border-radius: 8px;
}

.expertise h3,
.tool h3 {
    color: #1e40af;
    margin-top: 0;
    font-size: 1.1em;
}

/* === INDUSTRIES LIST === */
.industries ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

/* === BENEFITS LIST === */
.benefits ul {
    background: #f0f9ff;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .header-info {
        text-align: center;
        margin-top: 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu.active {
        max-height: 500px;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid #374151;
    }
    
    .hero h1 {
        font-size: 2em;
    }
    
    .hero-subtitle {
        font-size: 1.2em;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .features,
    .approach-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.4em;
    }
    
    .hero h1 {
        font-size: 1.6em;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* === PRINT STYLES === */
@media print {
    .main-nav,
    .mobile-menu-toggle,
    .hero-buttons,
    .cta-section,
    .cta-box,
    .back-to-top,
    .cookie-consent-banner,
    .cookie-modal {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
        color: #000;
    }
}

/* === ACCESSIBILITY === */
:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
