/* style.css - Modern, User-Friendly, and Professional Stylesheet for K&A Firm Website */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: #2D3748;
    background: #F5F8FA;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: #005B99;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    font-size: 1.1rem;
    color: #6B7280;
}

/* Header and Navigation */
header {
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    color: #005B99;
    font-size: 2rem;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
}

.logo-text span {
    color: #F28C38;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: #2D3748;
    padding: 0.5rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: #F28C38;
}

.phone-contact {
    background: #F5F8FA;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #005B99;
    font-weight: 500;
}

.phone-contact i {
    color: #F28C38;
}

.appointment-button {
    background: #F28C38;
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    border: 2px solid #F28C38;
    border-radius: 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.appointment-button:hover {
    background: transparent;
    color: #F28C38;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #005B99;
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #F28C38;
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    border: 2px solid #F28C38;
    border-radius: 2rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: transparent;
    color: #F28C38;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #2D3748;
    padding: 0.75rem 1.5rem;
    border: 2px solid #2D3748;
    border-radius: 2rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #2D3748;
    color: #FFFFFF;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 550px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: #6B7280;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #F28C38;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    color: #005B99;
}

.modal-form .form-group {
    margin-bottom: 1.25rem;
}

.modal-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #005B99;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E2E8F0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    border-color: #F28C38;
    outline: none;
}

.modal-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Sections */
section {
    padding: 5rem 1.5rem;
}

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

.section-header h2 {
    color: #005B99;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section (from index.php inline styles, moved here) */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hero-swiper {
    height: 100%;
    width: 100vw;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    background: rgba(0, 91, 153, 0.7);
    padding: 2rem;
    text-align: center;
    color: #FFFFFF;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 1rem;
}

.hero-overlay h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-overlay p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.swiper-pagination-bullet {
    background: #FFFFFF;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: #F28C38;
}

.swiper-button-prev,
.swiper-button-next {
    color: #FFFFFF;
}

/* Services Grid */
.services-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #FFFFFF;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    background: linear-gradient(to right, #005B99, #003087);
    color: #FFFFFF;
    font-size: 2.5rem;
    padding: 2rem;
    text-align: center;
}

.service-content {
    padding: 2rem;
}

.service-content ul {
    margin: 1rem 0;
}

.service-content ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #38A169;
}

.service-highlight {
    background: #F5F8FA;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid #005B99;
    margin-top: 1.5rem;
}

/* Events Section */
.events-container {
    background: linear-gradient(135deg, #005B99 0%, #003087 100%);
    border-radius: 1rem;
    padding: 3rem;
    color: #FFFFFF;
    max-width: 1280px;
    margin: 0 auto;
}

.events-container h2 {
    color: #FFFFFF;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-date {
    background: #F28C38;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 500;
}

.event-card h3 {
    color: #FFFFFF;
}

/* Recruitment Steps */
.recruitment-steps {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.step-card {
    background: #FFFFFF;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    background: #005B99;
    color: #FFFFFF;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 600;
}

/* News Section */
.news-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.news-card {
    background: #FFFFFF;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    color: #F28C38;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: block;
}

/* Resources Section */
.resources-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-box {
    background: #FFFFFF;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.resource-box:hover {
    transform: translateY(-5px);
}

.resource-icon {
    font-size: 3rem;
    color: #005B99;
    margin-bottom: 1rem;
}

/* Videos Section */
.videos-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.video-card {
    background: #FFFFFF;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-content {
    padding: 1.5rem;
}

/* FAQ Section */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 1.5rem;
}

.faq-item h3 {
    font-size: 1.25rem;
    color: #005B99;
    margin-bottom: 0.75rem;
}

/* Contact Section */
.contact-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.contact-icon {
    background: #F5F8FA;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #005B99;
    font-size: 1.5rem;
}

.contact-form {
    background: #FFFFFF;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #005B99;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E2E8F0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Login and Register Pages */
.login-container {
    max-width: 600px;
    margin: 8rem auto 3rem;
    padding: 0 1.5rem;
}

.login-box {
    background: #FFFFFF;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.login-box h3 {
    margin-bottom: 1.5rem;
}

#message,
#error-message {
    margin-top: 1rem;
    font-size: 0.9rem;
}

#message.success {
    color: #38A169;
}

#error-message {
    color: #E53E3E;
}

/* Footer */
footer {
    background: #003087;
    color: #FFFFFF;
    padding: 4rem 1.5rem 2rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: #F28C38;
}

.footer-about p {
    opacity: 0.85;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 1.25rem;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #F28C38;
}

.footer-links h3 {
    color: #FFFFFF;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #F28C38;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.85;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 4.5rem;
        left: -100%;
        background: #FFFFFF;
        width: 100%;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: left 0.4s ease;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-overlay h1 {
        font-size: 1.5rem;
    }

    .hero-overlay p {
        font-size: 0.9rem;
    }

    .btn-primary,
    .btn-secondary,
    .appointment-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
/* Robust, accessible visual hiding for honeypot */
.hp-field {
  position: absolute !important;
  left: -100vw !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;

  /* Extra safety across browsers */
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;

  /* Prevent any accidental spacing */
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

/* Ensure the input itself also remains invisible if some layout pulls it back */
.hp-field input {
  opacity: 0 !important;
  pointer-events: none !important;
}