/*
Theme Name: Royalty Is
Description: Custom WordPress theme for Royalty Is Inc. - A faith-driven nonprofit organization dedicated to empowering individuals to walk in their God-given identity.
Author: Custom Development
Version: 1.0
Text Domain: royalty-is
*/

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

/* Color Variables */
:root {
    --primary-teal: #008080;
    --dark-teal: #006666;
    --light-teal: #B3E0E0;
    --white: #FFFFFF;
    --silver: #C0C0C0;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --text-color: #2C2C2C;
}

/* Typography */
body {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--dark-teal);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-teal);
    text-decoration: underline;
}

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

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
}

.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-6 { flex: 0 0 50%; }
.col-8 { flex: 0 0 66.666667%; }
.col-9 { flex: 0 0 75%; }
.col-12 { flex: 0 0 100%; }

/* Header Styles */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 128, 128, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-placeholder {
    width: 200px;
    height: 100px;
    background-color: var(--light-teal);
    border: 2px dashed var(--primary-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-weight: bold;
    border-radius: 8px;
}

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

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

.nav-menu li {
    margin: 0 1rem;
}

.nav-menu a {
    color: var(--dark-teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.current {
    background-color: var(--primary-teal);
    color: var(--white);
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-teal);
    cursor: pointer;
}

/* Main Content */
.site-main {
    margin-top: 120px; /* Account for fixed header */
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--dark-teal) 100%);
}

.hero-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-teal);
    border: 3px dashed var(--primary-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0.8;
}

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

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

.btn-primary {
    background-color: var(--primary-teal);
    color: var(--white);
    border-color: var(--primary-teal);
}

.btn-primary:hover {
    background-color: var(--dark-teal);
    border-color: var(--dark-teal);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-teal);
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-teal);
    border-color: var(--primary-teal);
}

.btn-outline:hover {
    background-color: var(--primary-teal);
    color: var(--white);
    text-decoration: none;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--light-gray);
}

.section-teal {
    background-color: var(--primary-teal);
    color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-teal);
    margin: 1rem auto;
    border-radius: 2px;
}

.section-teal .section-title::after {
    background-color: var(--white);
}

/* Card Styles */
.card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 128, 128, 0.2);
}

.card-image {
    width: 100%;
    height: 200px;
    background-color: var(--light-teal);
    border-bottom: 2px dashed var(--primary-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-weight: bold;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    color: var(--dark-teal);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Image and Video Placeholders */
.image-placeholder {
    background-color: var(--light-teal);
    border: 2px dashed var(--primary-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-weight: bold;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.video-placeholder {
    background-color: var(--light-teal);
    border: 2px dashed var(--primary-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-teal);
    font-weight: bold;
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
}

.video-placeholder::before {
    content: '▶';
    font-size: 3rem;
    margin-right: 1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-teal);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--silver);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

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

/* Footer Styles */
.site-footer {
    background-color: var(--dark-teal);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--light-teal);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--primary-teal);
    padding-top: 1rem;
    text-align: center;
    color: var(--light-teal);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-teal);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: var(--white);
    color: var(--primary-teal);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .row {
        flex-direction: column;
    }
    
    .col {
        flex: 0 0 100%;
        margin-bottom: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .logo-placeholder {
        width: 150px;
        height: 75px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.justify-center { justify-content: center; }
.align-center { align-items: center; }

.bg-teal { background-color: var(--primary-teal); }
.bg-light { background-color: var(--light-gray); }
.bg-white { background-color: var(--white); }

.text-teal { color: var(--primary-teal); }
.text-white { color: var(--white); }
.text-dark { color: var(--dark-gray); }
/* Keep header & mobile menu above hero */
.site-header, header.site-header, #masthead { position: relative; z-index: 9999; }
#site-navigation, .menu-toggle { position: relative; z-index: 10000; }

/* Make the mobile hamburger visible (adjust color as needed) */
@media (max-width: 980px){
  .site-header { background:#fff; }
  .menu-toggle { color:#0d9488; }          /* hamburger icon color */
  .menu-toggle svg { fill: currentColor; } /* if your theme uses an SVG icon */
}

/* Ensure hero layers correctly & text isn’t hidden */
.ri-hero { position: relative; min-height:60vh; padding-top:88px; } /* space for header on mobile */
@media (min-width: 981px){
  .ri-hero { padding-top:72px; }           /* a bit of breathing room on larger screens */
}
.ri-hero__bg { position:absolute; inset:0; background-size:cover; background-position:center; z-index:0; }
.ri-hero__shade { position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.35),rgba(0,0,0,.35)); z-index:1; }
.ri-hero__inner { position:relative; z-index:2; } /* title always above the shade */

/* If your theme uses a fixed header class, add spacing below it */
.site-header.fixed + main,
.site-header.is-fixed + main { margin-top:88px; }
@media (min-width:981px){
  .site-header.fixed + main,
  .site-header.is-fixed + main { margin-top:72px; }
}
