/*!
Theme Name: Raja Amanullah Custom Theme
Theme URI: https://rajaamanullah.com
Author: Raja Amanullah
Author URI: https://rajaamanullah.com
Description: A modern, fast, and clean custom WordPress theme for portfolios and agencies with advanced service blocks
Version: 2.1.7
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rajaamanullah
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 8.0
*/

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #0f172a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0d47a1;
}

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

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: #0d47a1;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(26, 115, 232, 0.3);
}

.btn-secondary {
    background: #ff6b6b;
}

.btn-secondary:hover {
    background: #e63946;
}

.btn-outline {
    background: transparent;
    border: 2px solid #1a73e8;
    color: #1a73e8;
}

.btn-outline:hover {
    background: #1a73e8;
    color: white;
}

/* Header */
header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

.logo:hover {
    color: #1a73e8;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #0f172a;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #1a73e8;
}

/* Footer */
footer {
    background: #0f172a;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #cbd5e1;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #1a73e8;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    color: white;
    margin-bottom: 1rem;
    font-size: 3rem;
}

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

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

section.light-bg {
    background: #f9fafb;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

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

.card-body {
    padding: 2rem;
}

.card h3 {
    margin-bottom: 1rem;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

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

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    nav ul {
        gap: 1rem;
        flex-direction: column;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-white { color: white; }
.text-muted { color: #64748b; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Skip Links */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1a73e8;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* ===== HEADER & LOGO STYLING ===== */
.site-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.site-header .container {
    max-width: 1200px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Logo Styling */
.site-branding {
    flex-shrink: 0;
    max-width: 200px;
}

.site-branding img {
    max-width: 100%;
    height: auto;
    max-height: 65px;
    width: auto;
    display: block;
}

.site-branding a.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #0a1428;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-branding a.logo:hover {
    color: #1a73e8;
}

/* Navigation Menu */
.site-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    margin: 0 2rem;
}

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

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    display: block;
    padding: 0.5rem 0;
}

.nav-menu > li > a:hover {
    color: #1a73e8;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a73e8;
    transition: width 0.3s ease;
}

.nav-menu > li > a:hover::after {
    width: 100%;
}

/* Submenu */
.nav-menu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    min-width: 200px;
    z-index: 10;
    margin: 0.5rem 0 0 0;
}

.nav-menu li:hover > ul {
    display: flex;
}

.nav-menu ul li a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    transition: background 0.3s ease;
}

.nav-menu ul li a:hover {
    background: #f9fafb;
    color: #1a73e8;
}

/* Header CTA Button */
.header-cta {
    flex-shrink: 0;
}

.header-cta a {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.header-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3);
}

/* Print Styles */
@media print {
    header, footer, nav {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
}

/* Responsive Header */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 0.75rem 0;
    }
    
    .site-nav {
        order: 3;
        width: 100%;
        margin: 1rem 0 0 0;
        justify-content: flex-start;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-menu > li > a {
        font-size: 0.9rem;
    }
    
    .header-cta {
        display: none;
    }
    
    .site-branding {
        max-width: 150px;
    }
    
    .site-branding img {
        max-height: 50px;
    }
}
