/*
Theme Name: Omar Consulting
Theme URI: https://omarjarrah.com/
Author: Omar Al-Jarrah
Author URI: https://omarjarrah.com/
Description: A modern, professional, single-page WordPress theme for institutional and ISO consulting services, based on the enhanced design.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-logo, custom-menu, one-column, one-page, block-editor-styles
Text Domain: omar-consulting
*/

/* --- Global Styles and Variables (Enhanced Design) --- */
:root {
    --color-primary: #1A2E3D; /* Deep Navy/Charcoal for Authority */
    --color-secondary: #F4F6F9; /* Off-White/Light Gray for Contrast Sections */
    --color-accent: #008C8C; /* Sophisticated Teal for Highlights and CTAs */
    --color-dark-accent: #006B6B;
    --color-text: #333333;
    --color-light: #FFFFFF;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    --spacing-large: 80px;
    --spacing-medium: 40px;
    --spacing-small: 20px;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-light);
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Base Section Styling */
section {
    padding: var(--spacing-large) 0;
}
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-medium);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

/* --- Buttons (CTAs) --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-light);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-dark-accent);
    border-color: var(--color-dark-accent);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-light);
}

/* --- 2. Navigation --- */
.navbar {
    background-color: var(--color-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.navbar.sticky {
    position: fixed;
    top: 0;
    width: 100%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1300px;
    margin: 0 auto;
}

.nav-name .name-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text);
    padding: 10px 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--color-accent);
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-logo .logo-img {
    height: 40px; /* Adjust size */
    width: auto;
}

/* Hamburger menu (mobile functionality is handled by script.js) */
.hamburger {
    display: none;
}

/* --- 3. Hero Section --- */
.hero {
    background: linear-gradient(rgba(26, 46, 61, 0.9), rgba(26, 46, 61, 0.9)), url('placeholder-bg.jpg') center/cover; /* Use a placeholder image or remove background image */
    color: var(--color-light);
    text-align: center;
    padding: 180px 0 120px 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-highlight {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-accent);
    min-height: 50px; /* Ensure space for rotating text */
    margin-bottom: 30px;
}

.hero-subtitle h2 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
}

.hero-buttons .btn {
    font-size: 1.1rem;
}

/* --- 4. About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-size: 1.6rem;
    margin-bottom: var(--spacing-small);
}

.about-text p {
    margin-bottom: var(--spacing-medium);
}

.about-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Credentials Tabs */
.credentials-tabs {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: var(--spacing-medium);
}

.tab-buttons {
    display: flex;
    background-color: var(--color-secondary);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--color-accent);
}

.tab-btn.active {
    background-color: var(--color-light);
    color: var(--color-accent);
    border-bottom: 3px solid var(--color-accent);
    margin-bottom: -1px;
}

.tab-content {
    padding: var(--spacing-small);
    background-color: var(--color-light);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.tab-panel {
    display: none;
}

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

.credentials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.credential-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.credential-item i {
    color: var(--color-accent);
    margin-right: 10px;
    font-size: 1.1rem;
}

/* About Stats - Data Counters */
.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-medium);
    border-top: 1px solid #e0e0e0;
    padding-top: var(--spacing-medium);
}

.stat {
    text-align: center;
    flex: 1;
    padding: 0 10px;
}

.stat h4 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.stat p {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-top: 5px;
    margin-bottom: 0;
}


/* --- 5. Certificates & Participation Sections --- */
.certificates-section, .participation-section {
    background-color: var(--color-secondary);
}

.certificates-grid, .participation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.certificate-item, .participation-item {
    background: var(--color-light);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.certificate-item:hover, .participation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.certificate-image img, .participation-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.certificate-info, .participation-info {
    padding: var(--spacing-small);
}

.certificate-info h3, .participation-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.certificate-info p, .participation-info p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}

.certificate-year, .participation-date {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent);
}

/* --- 6. Speaking Section (Text and Image side-by-side) --- */
.speaking-section {
    padding: 100px 0;
}

.speaking-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.speaking-info h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-small);
}

.speaking-info p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-medium);
}

.speaking-photo {
    text-align: center;
}

.speaking-photo img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- 7. Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--color-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid transparent;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-top-color: var(--color-accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.service-card.primary-accent {
    background-color: var(--color-accent);
    color: var(--color-light);
    border-top-color: var(--color-dark-accent);
}

.service-card.primary-accent .service-icon i,
.service-card.primary-accent h3 {
    color: var(--color-light);
}

.service-card.primary-accent p {
    color: rgba(255, 255, 255, 0.9);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-icon i {
    color: var(--color-accent);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-cta {
    margin-top: 15px;
}

.service-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.service-card.primary-accent .service-link {
    color: var(--color-light);
}

/* --- 8. Case Studies Section (Portfolio) --- */
.portfolio {
    background-color: var(--color-secondary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: var(--color-light);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-content {
    padding: var(--spacing-small);
}

.portfolio-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.portfolio-result {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.result-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-right: 15px;
    line-height: 1;
}

.result-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-primary);
    text-transform: uppercase;
}

.case-study-details p {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.case-study-details strong {
    color: var(--color-accent);
}

/* --- 9. Service Packages Section --- */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.package-card {
    background: var(--color-light);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: all 0.3s ease;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.package-header {
    background-color: var(--color-secondary);
    padding: var(--spacing-small);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.package-header h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-primary);
}

.package-price {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-top: 5px;
}

.package-content {
    padding: var(--spacing-small);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package-features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--spacing-small);
}

.package-features li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 0.95rem;
}

.package-features i {
    color: var(--color-accent);
    margin-right: 10px;
}

.package-cta {
    margin-top: 20px;
}

.package-card.featured {
    transform: scale(1.05);
    background: var(--color-accent);
    color: var(--color-light);
    border-color: var(--color-dark-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.package-card.featured .package-header {
    background-color: var(--color-dark-accent);
}

.package-card.featured .package-header h3,
.package-card.featured .package-price {
    color: var(--color-light);
}

.package-card.featured .package-features li,
.package-card.featured .package-features i {
    color: var(--color-light);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.package-badge {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    position: relative;
    top: 0;
}

/* --- 10. Testimonials Section --- */
.testimonials {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.testimonials .section-header h2 {
    color: var(--color-light);
}

.testimonials .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

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

.testimonial {
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-small);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-content {
    margin-bottom: var(--spacing-small);
}

.testimonial-content p {
    font-style: italic;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.author-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--color-accent);
}

.author-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-light);
}

.author-info p {
    font-size: 0.9rem;
    color: var(--color-accent);
}

/* --- 11. Resources Section --- */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.resource-card {
    text-align: center;
    background: var(--color-light);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding-bottom: var(--spacing-small);
}

.resource-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-bottom: 15px;
}

.resource-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
    padding: 0 15px;
}

.resource-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    padding: 0 15px;
}

.resource-download {
    display: inline-block;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--color-accent);
    border-radius: 4px;
}

.resource-download:hover {
    background-color: var(--color-accent);
    color: var(--color-light);
}

/* --- 12. Learning Journeys Section --- */
.learning-journeys {
    background-color: var(--color-secondary);
}

.learning-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    align-items: center;
    padding: var(--spacing-medium) 0;
}

.learning-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.learning-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.learning-text p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-medium);
}

.learning-buttons .btn-secondary {
    margin-left: 15px;
}

/* --- 13. Contact Section & Form --- */
.contact {
    background-color: var(--color-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-info {
    padding-top: var(--spacing-small);
}

.contact-photo {
    position: relative;
    margin-bottom: var(--spacing-medium);
}

.contact-photo img {
    width: 100%;
    height: 250px;
    object-fit:scale-down;
    border-radius: 8px;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 46, 61, 0.85);
    color: var(--color-light);
    padding: 15px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.photo-overlay h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.photo-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-small);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    width: 40px;
}

.contact-details h4 {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-primary);
}

.contact-details p a {
    color: var(--color-text);
    text-decoration: none;
}

.contact-details p a:hover {
    color: var(--color-accent);
}

.contact-form .form-group {
    margin-bottom: var(--spacing-small);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 140, 140, 0.2);
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 10px;
}

/* --- 14. Newsletter Section --- */
.newsletter-section {
    background-color: var(--color-accent);
    color: var(--color-light);
    padding: var(--spacing-large) 0;
}

.newsletter-content {
    text-align: center;
}

.newsletter-content h2 {
    color: var(--color-light);
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-medium);
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.newsletter-form .btn-primary {
    padding: 15px 30px;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.newsletter-form .btn-primary:hover {
    background-color: #000;
    border-color: #000;
}

/* --- 15. Footer --- */
.footer {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding-top: var(--spacing-medium);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: var(--spacing-medium);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.footer-section p, .footer-section a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--color-light);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 35px;
    margin-right: 10px;
}

.footer-logo h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
}

.social-links a {
    font-size: 1.4rem;
    margin-right: 15px;
    color: var(--color-accent);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--color-light);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- 16. Responsive Design --- */
@media (max-width: 1024px) {
    .about-content, .speaking-content, .learning-content, .contact-content {
        grid-template-columns: 1fr;
    }
    .hero-title, .hero-highlight {
        font-size: 2.8rem;
    }
    .about-photo, .speaking-photo {
        text-align: center;
    }
    .about-photo img, .speaking-photo img {
        max-width: 400px;
        margin: 0 auto;
    }
    .learning-text {
        text-align: center;
    }
    .learning-image img {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px; /* Adjust based on navbar height */
        left: 0;
        width: 100%;
        background-color: var(--color-light);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 15px 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hero {
        padding: 150px 0 80px 0;
    }
    
    .hero-title, .hero-highlight {
        font-size: 2rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-secondary {
        margin-left: 0;
    }

    .about-stats {
        flex-wrap: wrap;
    }
    .stat {
        width: 50%;
        margin-bottom: var(--spacing-small);
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input, .newsletter-form .btn {
        width: 100%;
    }
}
