/* =========================================================
   Maryland IT Consultants — Main Stylesheet
   Adapted from salon_project/salon/static/css/styles.css
   ========================================================= */

/* === Reset & Base === */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Inter', Arial, sans-serif;
    color: #333;
    scroll-behavior: smooth;
    background-color: #f5f7fa;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a { color: inherit; }

img, video {
    max-width: 100%;
}

/* === Hero Section === */
.hero-section {
    position: relative;
    min-height: 90vh;
    background: linear-gradient(135deg, #0a2540 0%, #0d3b6e 50%, #1a5276 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 60px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(0, 170, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00aaff, #0073e6);
}

.hero-content {
    max-width: 680px;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-block;
    color: #00aaff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-title {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: #adc8e6;
    line-height: 1.6;
    margin: 0 0 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    width: 100%;
    position: relative;
    z-index: 2;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #00aaff;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: #adc8e6;
    margin-top: 4px;
}

/* === Buttons === */
.btn-primary {
    display: inline-block;
    background: #00aaff;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.25s, transform 0.15s;
}

.btn-primary:hover {
    background: #0088cc;
    transform: translateY(-1px);
    color: #fff;
}

.btn-primary.btn-lg {
    font-size: 18px;
    padding: 16px 36px;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: border-color 0.25s, background 0.25s;
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: #0073e6;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    border: 2px solid #0073e6;
    text-decoration: none;
    transition: background 0.25s, color 0.25s;
}

.btn-outline:hover {
    background: #0073e6;
    color: #fff;
}

.btn-sm {
    display: inline-block;
    background: #0073e6;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-sm:hover {
    background: #005bb5;
    color: #fff;
}

.btn-submit {
    display: inline-block;
    background: #0a2540;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s;
}

.btn-submit:hover {
    background: #0073e6;
}

/* === Sections === */
.section {
    padding: 80px 0;
}

.section-alt {
    background-color: #eef2f7;
}

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

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #0a2540;
    margin: 0 0 12px;
}

.section-header p {
    font-size: 17px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* === Service Categories (homepage) === */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-category {
    flex: 1 1 220px;
    max-width: 280px;
    padding: 28px 20px;
    background: #fff;
    border: 1px solid #e0e7ef;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
}

.service-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 115, 230, 0.12);
}

.category-icon {
    font-size: 2.4rem;
    color: #0073e6;
    margin-bottom: 14px;
}

.category-link {
    text-decoration: none;
    color: inherit;
}

.category-link h3 {
    color: #0a2540;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
}

.service-category p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.service-details {
    display: none;
    text-align: left;
    margin-top: 16px;
}

/* === Service Cards (inside category details) === */
.service-card {
    background: #f0f6ff;
    border: 1px solid #d0e4f7;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    text-align: left;
}

.service-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0a2540;
    margin: 0 0 6px;
}

.service-card p {
    font-size: 13px;
    color: #555;
    margin: 0 0 10px;
    line-height: 1.5;
}

.service-card ul {
    margin: 0 0 12px;
    padding-left: 18px;
    font-size: 13px;
    color: #555;
}

/* === Why Choose Us === */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.why-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px;
    border: 1px solid #e0e7ef;
    transition: box-shadow 0.2s;
}

.why-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.why-icon {
    font-size: 2rem;
    color: #0073e6;
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0a2540;
    margin: 0 0 10px;
}

.why-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* === CTA Banner === */
.cta-banner {
    background: linear-gradient(135deg, #0073e6 0%, #0a2540 100%);
    padding: 72px 24px;
    text-align: center;
}

.cta-banner-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-banner h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.cta-banner p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 28px;
}

/* === Team Cards === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.team-grid-full {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.team-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e7ef;
    transition: box-shadow 0.2s, transform 0.2s;
}

.team-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.team-photo {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #e9eef5;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #0073e6;
    background: #dce9f7;
}

.team-info {
    padding: 20px;
}

.team-info h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0a2540;
    margin: 0 0 4px;
}

.team-title {
    font-size: 13px;
    color: #0073e6;
    font-weight: 600;
    margin: 0 0 10px;
}

.team-bio {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 12px;
}

.team-links {
    display: flex;
    gap: 10px;
}

.team-linkedin, .team-email {
    font-size: 18px;
    color: #0073e6;
    transition: color 0.2s;
}

.team-linkedin:hover, .team-email:hover {
    color: #005bb5;
}

/* === Testimonials === */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #e0e7ef;
    position: relative;
}

.testimonial-stars {
    color: #f4a261;
    font-size: 18px;
    margin-bottom: 14px;
}

.testimonial-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    font-style: italic;
    margin: 0 0 20px;
}

.testimonial-author strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0a2540;
}

.testimonial-author span {
    font-size: 13px;
    color: #888;
}

/* === Page Hero (inner pages) === */
.page-hero {
    background: linear-gradient(135deg, #0a2540 0%, #0d3b6e 100%);
    padding: 80px 24px;
    text-align: center;
}

.page-hero-sm {
    padding: 60px 24px;
}

.page-hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.page-hero-content p {
    font-size: 17px;
    color: #adc8e6;
    margin: 0;
}

/* === Services Page === */
.service-section {
    margin-bottom: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid #e0e7ef;
}

.service-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.service-section-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
}

.service-section-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #0073e6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
}

.service-section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0a2540;
    margin: 0 0 8px;
}

.service-section-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.service-item {
    background: #fff;
    border: 1px solid #e0e7ef;
    border-radius: 10px;
    padding: 24px;
    transition: box-shadow 0.2s;
}

.service-item:hover {
    box-shadow: 0 6px 20px rgba(0, 115, 230, 0.1);
}

.service-item h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0a2540;
    margin: 0 0 8px;
}

.service-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 14px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.feature-list li {
    font-size: 13px;
    color: #555;
    padding: 4px 0;
}

.feature-list li i {
    color: #0073e6;
    margin-right: 6px;
}

/* === Contact Page === */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: flex-start;
}

.contact-info h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #0a2540;
    margin: 0 0 12px;
}

.contact-info > p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 32px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.contact-detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #e8f0fe;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #0073e6;
}

.contact-detail strong {
    display: block;
    font-size: 14px;
    color: #0a2540;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-detail p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.contact-detail a {
    color: #0073e6;
    text-decoration: none;
}

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

.contact-form-wrapper {
    background: #fff;
    border: 1px solid #e0e7ef;
    border-radius: 12px;
    padding: 36px;
}

.contact-form-wrapper h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0a2540;
    margin: 0 0 24px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    padding: 11px 14px;
    border: 1px solid #d0d8e4;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafc;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073e6;
    box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.12);
    background: #fff;
}

.form-errors {
    background: #fff3f3;
    border: 1px solid #fcc;
    color: #c0392b;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}

.field-error {
    font-size: 12px;
    color: #c0392b;
    margin-top: 4px;
}

.form-submit {
    margin-top: 8px;
}

/* === About Page === */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: flex-start;
}

.about-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0a2540;
    margin: 0 0 16px;
}

.about-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 16px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.value-card {
    background: #fff;
    border: 1px solid #e0e7ef;
    border-radius: 10px;
    padding: 24px;
}

.value-card i {
    font-size: 1.8rem;
    color: #0073e6;
    margin-bottom: 12px;
    display: block;
}

.value-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0a2540;
    margin: 0 0 8px;
}

.value-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* === Timeline === */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #d0e4f7;
}

.timeline-item {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-dot {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: #0073e6;
    border-radius: 50%;
    margin-top: 6px;
    position: relative;
    z-index: 1;
    border: 3px solid #eef2f7;
}

.timeline-content {
    flex: 1;
    background: #fff;
    border: 1px solid #e0e7ef;
    border-radius: 10px;
    padding: 20px 24px;
}

.timeline-year {
    display: inline-block;
    background: #0073e6;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0a2540;
    margin: 0 0 6px;
}

.timeline-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* === Certifications === */
.certs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e0e7ef;
    border-radius: 10px;
    padding: 24px 32px;
    font-size: 2rem;
    color: #0073e6;
    transition: box-shadow 0.2s;
}

.cert-badge:hover {
    box-shadow: 0 4px 16px rgba(0, 115, 230, 0.15);
}

.cert-badge span {
    font-size: 13px;
    font-weight: 600;
    color: #0a2540;
}

/* === Contact Success === */
.success-icon {
    font-size: 4.5rem;
    color: #27ae60;
    margin-bottom: 20px;
}

/* === Messages === */
.messages-container {
    max-width: 900px;
    margin: 16px auto;
    padding: 0 24px;
}

.message {
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 8px;
}

.message-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.message-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.message-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* === Empty Notice === */
.empty-notice {
    color: #888;
    font-size: 15px;
}

/* === Footer === */
.footer {
    background-color: #0a2540;
    color: #ccd6f6;
    padding: 60px 24px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 48px;
}

.footer-brand h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    color: #fff;
    margin: 0 0 12px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    color: #8892b0;
    margin: 0 0 20px;
    max-width: 320px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccd6f6;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.social-icons a:hover {
    background: #0073e6;
    color: #fff;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px;
}

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

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

.footer-links ul li a {
    color: #8892b0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-contact h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px;
}

.footer-contact p {
    font-size: 14px;
    color: #8892b0;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact a {
    color: #8892b0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: #00aaff;
}

.footer-cta-btn {
    display: inline-block;
    background: #0073e6;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 12px;
    transition: background 0.2s;
}

.footer-cta-btn:hover {
    background: #005bb5;
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #8892b0;
    margin: 0;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .about-values {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 24px;
        min-height: 80vh;
    }

    .hero-stats {
        gap: 24px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

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

    .contact-form-wrapper {
        padding: 24px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .services-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        text-align: center;
    }

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

    .service-section-header {
        flex-direction: column;
    }

    .cta-banner {
        padding: 48px 20px;
    }
}
