/*
Theme Name: Goha Agency Theme
Theme URI: https://goha.agency
Description: Premium Custom Theme for Contracting, Maintenance, and Finishing (شركة بيراميدز كونستراكشنز)
Version: 1.0.0
Author: Mohamed El Saaty
Author URI: https://goha.agency
Text Domain: goha-agency
*/

/* ==========================================================================
   CSS Variables & Base (Premium Look: Blue & Gold/Yellow)
   ========================================================================== */
:root {
    --primary-color: #0d2c54;
    /* Deep Navy Blue */
    --secondary-color: #f7b801;
    /* Golden Yellow */
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* Base Reset & Typography */
html {
    box-sizing: border-box;
    font-size: 16px;
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Tajawal', 'Cairo', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ==========================================================================
   Header Styles
   ========================================================================== */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    padding: 5px 0;
    background-color: var(--white);
}

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

.site-branding .site-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Main Navigation - Raiq Style */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    display: block;
    padding: 10px 0;
}

.main-navigation a:hover {
    color: var(--secondary-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.search-btn:hover {
    background-color: rgba(13, 44, 84, 0.05);
    color: var(--secondary-color);
}

/* Search Overlay - Modern & Fakhama */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 44, 84, 0.9);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    transform: scale(1.1);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.search-overlay-close {
    position: absolute;
    top: 40px;
    right: 40px;
    color: var(--white);
    font-size: 50px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
    opacity: 0.7;
}

.search-overlay-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.search-form-wrapper {
    width: 100%;
    max-width: 800px;
    padding: 40px;
    text-align: center;
    transform: translateY(30px);
    transition: all 0.6s ease 0.2s;
    opacity: 0;
}

.search-overlay.active .search-form-wrapper {
    transform: translateY(0);
    opacity: 1;
}

.search-form-wrapper h2 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
}

.search-form-wrapper form {
    display: flex;
    position: relative;
}

.search-form-wrapper input[type="search"] {
    flex-grow: 1;
    background: none;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 3rem;
    padding: 20px 0;
    outline: none;
    font-family: inherit;
    font-weight: 300;
    transition: border-color 0.3s ease;
}

.search-form-wrapper input[type="search"]:focus {
    border-color: var(--secondary-color);
}

.search-form-wrapper button[type="submit"] {
    background: none;
    border: none;
    color: var(--secondary-color);
    padding: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.search-form-wrapper button[type="submit"]:hover {
    transform: translateX(-10px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-bar {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Main Content & Footer
   ========================================================================== */
.site-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 60vh;
}

/* ==========================================================================
   Pre-footer & Footer
   ========================================================================== */
.pre-footer-cta {
    background-color: var(--primary-color);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.pre-footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)" /></svg>');
}

.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    transform: translateY(40px);
}

.cta-content h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cta-content p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.site-footer {
    background-color: #081d38;
    /* Slightly darker than primary */
    color: var(--white);
    padding: 120px 20px 40px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
    text-align: right;
}

.footer-column h4.footer-col-title {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-desc {
    opacity: 0.8;
    line-height: 1.8;
    margin-top: 20px;
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--secondary-color);
    opacity: 1;
    padding-right: 5px;
}

.contact-info li {
    display: flex;
    gap: 10px;
}

.info-label {
    color: var(--secondary-color);
    font-weight: bold;
}

.site-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.site-info p {
    margin: 0;
}

.site-info a {
    color: var(--secondary-color);
    opacity: 1;
}

/* Footer Logo Adjustments */
.footer-logo img {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Make logo white for footer if needed */
}

/* ==========================================================================
   Buttons & Utils
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
}

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

.btn-secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white) !important;
}

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

.btn-large {
    font-size: 1.1rem;
    padding: 15px 35px;
}

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

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

/* ==========================================================================
   Front Page - Hero Section
   ========================================================================== */
.front-page-content {
    margin: 0;
    max-width: 100%;
    padding: 0;
}

.hero-section {
    position: relative;
    background: linear-gradient(rgba(13, 44, 84, 0.85), rgba(13, 44, 84, 0.85)), url('https://images.unsplash.com/photo-1541888946425-d81bb19480c5?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 160px 20px;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    opacity: 0.5;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Front Page - Services Section
   ========================================================================== */
/* ==========================================================================
   Front Page - Sections Upgrade
   ========================================================================== */

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--white);
}

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

.main-img-wrapper {
    position: relative;
}

.main-img-wrapper img {
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 20px;
    color: var(--primary-color);
    text-align: center;
    box-shadow: 0 15px 30px rgba(247, 184, 1, 0.3);
}

.experience-badge .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 1rem;
    font-weight: 600;
}

.sub-title {
    color: var(--secondary-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.about-desc {
    font-size: 1.1rem;
    color: #666;
    margin: 25px 0;
    line-height: 1.8;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.check-icon {
    color: var(--secondary-color);
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.process-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.process-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(13, 44, 84, 0.1);
}

.process-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(13, 44, 84, 0.05);
    line-height: 1;
}

.process-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(247, 184, 1, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.process-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.process-item p {
    color: #777;
    font-size: 0.95rem;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 1s ease;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0) !important;
}

.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translateX(0) !important;
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(50px);
}

.reveal-right {
    transform: translateX(-50px);
}

.reveal-text {
    opacity: 0;
    transform: scale(0.95);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-text.active {
    opacity: 1;
    transform: scale(1);
}

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

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--secondary-color);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(13, 44, 84, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
    background: var(--primary-color);
    transform: scale(1.1);
}

.service-icon-wrapper .fallback-icon {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon-wrapper .fallback-icon {
    color: var(--white);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.service-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-excerpt {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.btn-text {
    font-weight: bold;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-card:hover .btn-text {
    color: var(--secondary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100%;
        background-color: var(--white);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        padding: 80px 30px;
        transition: 0.4s ease;
        z-index: 999;
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 20px;
    }

    .main-navigation a {
        font-size: 1.2rem;
    }

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .header-container {
        padding: 10px 20px;
    }

    .btn-primary {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 20px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 991px) {

    .about-grid,
    .process-grid,
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-image {
        margin-bottom: 50px;
    }

    .experience-badge {
        right: 0;
        bottom: 0;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ==========================================================================
   Floating Contact Buttons
   ========================================================================== */
.floating-contact-buttons {
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fab-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: var(--transition);
}

.fab-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.fab-whatsapp {
    background-color: #25d366;
}

.fab-call {
    background-color: #007bff;
}

.fab-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: -1;
    animation: fab-pulse 2s infinite;
}

.fab-whatsapp .fab-pulse {
    background-color: rgba(37, 211, 102, 0.4);
}

.fab-call .fab-pulse {
    background-color: rgba(0, 123, 255, 0.4);
}

@keyframes fab-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .floating-contact-buttons {
        bottom: 30px;
        right: 20px;
        gap: 15px;
    }

    .fab-btn {
        width: 55px;
        height: 55px;
    }
}