/*
Theme Name: Ryft Consulting
Theme URI: https://ryft.ca
Author: Ryft Technical Consulting
Description: Custom WordPress theme for Ryft Technical Consulting
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ryft
*/

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 20, 40, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.3s;
}

/* Push header down when WordPress admin bar is visible */
.admin-bar #site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar #site-header {
        top: 46px;
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    height: 160px;
    width: 100%;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Custom logo uploaded via Customizer */
.site-logo .custom-logo-link {
    display: flex;
    align-items: center;
    line-height: 0;
}

.site-logo .custom-logo {
    height: 120px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .site-logo .custom-logo {
        height: 40px;
    }
}

.logo-mark {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #1a6fc4, #0fa3b1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    color: #fff;
    letter-spacing: -1px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.logo-text span {
    color: #0fa3b1;
}

#site-nav ul {
    display: flex;
    gap: 32px;
}

#site-nav a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

#site-nav a:hover {
    color: #0fa3b1;
    border-bottom-color: #0fa3b1;
}

.nav-cta {
    background: #1a6fc4;
    color: #fff !important;
    padding: 10px 22px !important;
    border-radius: 6px !important;
    border-bottom: none !important;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: #0fa3b1 !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(10,20,40,0.85) 0%, rgba(10,30,60,0.75) 100%),
                url('https://img1.wsimg.com/isteam/stock/5104/:/rs=h:1000,cg:true,m') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 30px 60px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(26,111,196,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-welcome {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #0fa3b1;
    margin-bottom: 20px;
    padding: 6px 18px;
    border: 1px solid rgba(15,163,177,0.4);
    border-radius: 20px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-content h1 em {
    font-style: normal;
    color: #0fa3b1;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn-primary {
    background: linear-gradient(135deg, #1a6fc4, #0fa3b1);
    color: #fff;
    padding: 16px 36px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(26,111,196,0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(26,111,196,0.5);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 16px 36px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    transition: background 0.2s;
}

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

.hero-badge {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
#stats-bar {
    background: linear-gradient(135deg, #0a1428, #0d2044);
    padding: 40px 30px;
}

.stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a6fc4, #0fa3b1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item p {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
    padding: 100px 30px;
    background: #f8f9fc;
}

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

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1a6fc4;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: #0a1428;
    margin-bottom: 16px;
}

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

.about-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a6fc4, #0fa3b1);
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.1);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(26,111,196,0.1), rgba(15,163,177,0.1));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.6rem;
}

.about-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0a1428;
    margin-bottom: 14px;
}

.about-card p {
    color: #666;
    line-height: 1.8;
    font-size: 0.97rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
#services {
    padding: 100px 30px;
    background: #fff;
}

.services-inner {
    max-width: 1100px;
    margin: 0 auto;
}

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

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #eef0f5;
    transition: border-color 0.2s, background 0.2s;
}

.service-item:hover {
    border-color: #1a6fc4;
    background: #f0f6ff;
}

.service-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a6fc4, #0fa3b1);
    margin-top: 6px;
}

.service-item p {
    font-weight: 600;
    color: #1a2a44;
    font-size: 0.97rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
    padding: 100px 30px;
    background: linear-gradient(135deg, #0a1428, #0d2044);
    text-align: center;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(26,111,196,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.contact-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

#contact .section-label {
    color: #0fa3b1;
}

#contact h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

#contact p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.contact-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin: 20px 0 40px;
}

.contact-phone .phone-icon {
    font-size: 1.3rem;
}

.social-links {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.social-links a {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    transition: background 0.2s, transform 0.2s;
}

.social-links a:hover {
    background: #1a6fc4;
    transform: translateY(-3px);
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
    background: #060d1c;
    padding: 30px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
}

#site-footer p {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    #site-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10,20,40,0.97);
        padding: 20px 30px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    #site-nav.open {
        display: block;
    }

    #site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    #site-nav a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .nav-cta {
        display: inline-block;
        margin-top: 12px;
    }

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

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

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