/*
Theme Name: CentryWorld
Theme URI: https://centry.world
Author: Kurto
Author URI: https://centry.world
Description: A modern, lightweight custom WordPress theme for CentryWorld. Built with performance and security in mind, replacing Elementor with clean, semantic HTML and modern CSS.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: centryworld
Tags: custom, modern, responsive, clean, lightweight

CentryWorld Theme, Copyright 2026
CentryWorld is distributed under the terms of the GNU GPL v2 or later.
*/

/* ===================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   =================================== */
:root {
    /* Colors */
    --color-primary: #2563eb;
    --color-primary-dark: #1e40af;
    --color-primary-light: #3b82f6;
    --color-secondary: #7c3aed;
    --color-accent: #f59e0b;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    
    /* Neutrals */
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-text-lighter: #9ca3af;
    --color-bg: #ffffff;
    --color-bg-alt: #f9fafb;
    --color-bg-dark: #111827;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    
    --font-size-xs: 0.75rem;     /* 12px */
    --font-size-sm: 0.875rem;    /* 14px */
    --font-size-base: 1rem;      /* 16px */
    --font-size-lg: 1.125rem;    /* 18px */
    --font-size-xl: 1.25rem;     /* 20px */
    --font-size-2xl: 1.5rem;     /* 24px */
    --font-size-3xl: 1.875rem;   /* 30px */
    --font-size-4xl: 2.25rem;    /* 36px */
    --font-size-5xl: 3rem;       /* 48px */
    --font-size-6xl: 3.75rem;    /* 60px */
    
    /* Spacing */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    
    /* Layout */
    --container-max-width: 1280px;
    --container-padding: var(--space-4);
    --header-height: 80px;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
    :root {
        --color-text: #f9fafb;
        --color-text-light: #d1d5db;
        --color-text-lighter: #9ca3af;
        --color-bg: #111827;
        --color-bg-alt: #1f2937;
        --color-border: #374151;
        --color-border-light: #1f2937;
    }
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--color-text);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
    margin-bottom: var(--space-4);
}

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

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

strong, b {
    font-weight: 700;
}

em, i {
    font-style: italic;
}

/* ===================================
   LAYOUT
   =================================== */
.container {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container-fluid {
    width: 100%;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ===================================
   HEADER
   =================================== */
.site-header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    height: var(--header-height);
    box-shadow: var(--shadow-sm);
}

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

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

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--color-text);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

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

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-6);
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--color-text);
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    display: block;
    text-decoration: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--color-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    margin: 4px 0;
    transition: var(--transition-fast);
}

.toggled .menu-toggle span:nth-child(2) {
    transform: rotate(45deg) translate(4px, 4px);
}

.toggled .menu-toggle span:nth-child(3) {
    opacity: 0;
}

.toggled .menu-toggle span:nth-child(4) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ===================================
   MAIN CONTENT
   =================================== */
.site-main {
    min-height: calc(100vh - var(--header-height) - 200px);
    padding: var(--space-12) 0;
}

.content-area {
    width: 100%;
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
    background-color: var(--color-bg-dark);
    color: #fff;
    padding: var(--space-16) 0 var(--space-8);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.footer-widget h3 {
    color: #fff;
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
}

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

.footer-widget li {
    margin-bottom: var(--space-2);
}

.footer-widget a {
    color: #d1d5db;
    text-decoration: none;
}

.footer-widget a:hover {
    color: #fff;
}

.site-info {
    border-top: 1px solid #B1B1B1;
    padding-top: var(--space-6);
    text-align: center;
    color: #9ca3af;
    font-size: var(--font-size-sm);
}

/* ===================================
   POSTS & PAGES
   =================================== */
.entry-header {
    margin-bottom: var(--space-8);
}

.entry-title {
    margin-bottom: var(--space-4);
}

.entry-meta {
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-6);
}

.entry-content {
    line-height: 1.8;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.entry-footer {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}

/* Post Navigation */
.post-navigation {
    margin-top: var(--space-12);
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
}

.nav-previous,
.nav-next {
    flex: 1;
}

/* ===================================
   BUTTONS
   =================================== */
.btn,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
    background-color: var(--color-primary);
    color: #fff;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background-color: var(--color-primary-dark);
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: #6d28d9;
}

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* ===================================
   FORMS
   =================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-bg);
    color: var(--color-text);
    transition: var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    color: var(--color-text);
}

/* ===================================
   UTILITIES
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: var(--space-3);
        --header-height: 60px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: flex;
        align-items: center;
    }
    
    .main-navigation ul {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--color-bg-dark);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        gap: 0;
        padding: var(--space-2) 0;
        z-index: var(--z-dropdown);
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .main-navigation li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
        text-align: center;
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        padding: var(--space-4);
        color: #fff;
        text-transform: uppercase;
        font-weight: 600;
        letter-spacing: 0.05em;
        display: block;
    }

    .main-navigation a:hover {
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--color-primary-light);
    }
    
    .post-navigation {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
    }
}

/* ===================================
   WORDPRESS SPECIFIC
   =================================== */
.alignleft {
    float: left;
    margin-right: var(--space-4);
    margin-bottom: var(--space-4);
}

.alignright {
    float: right;
    margin-left: var(--space-4);
    margin-bottom: var(--space-4);
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    text-align: center;
    margin-top: var(--space-2);
}

.sticky {
    /* Styles for sticky posts */
}

.gallery-caption {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.bypostauthor {
    /* Styles for post author */
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ===================================
   FOUNDERS CPT DESIGN
   =================================== */

/* Page Background */
.founder-single-page {
    background-color: var(--color-bg-dark);
    padding: var(--space-20) 0;
    min-height: 100vh;
}

/* Layout Container */
.founder-article {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    max-width: 1100px;
    margin: 0 auto;
}

/* Top Section: Portrait and Intro Card */
.founder-top-layout {
    display: flex;
    align-items: stretch;
    gap: 0;
    box-shadow: var(--shadow-xl);
}

.founder-portrait {
    flex: 0 0 45%;
    line-height: 0;
}

.founder-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.founder-intro-card {
    flex: 1;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-12) var(--space-16);
}

.founder-name {
    font-family: var(--font-serif);
    font-size: var(--font-size-6xl);
    color: var(--color-bg-dark);
    margin-bottom: var(--space-2);
    font-weight: 500;
}

.founder-designation {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    margin: 0;
    font-weight: 400;
}

/* Bio Section: Content Card */
.founder-bio-card {
    background-color: #fff;
    padding: var(--space-16) var(--space-20);
    box-shadow: var(--shadow-xl);
}

.founder-bio-title {
    font-family: var(--font-serif);
    font-size: var(--font-size-5xl);
    color: var(--color-bg-dark);
    margin-bottom: var(--space-8);
    font-weight: 500;
}

.founder-bio-content {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.8;
}

.founder-bio-content p {
    margin-bottom: var(--space-6);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .founder-top-layout {
        flex-direction: column;
    }
    
    .founder-portrait {
        flex: 0 0 auto;
    }
    
    .founder-intro-card {
        padding: var(--space-10) var(--space-8);
        text-align: center;
    }
    
    .founder-name {
        font-size: var(--font-size-4xl);
    }
    
    .founder-bio-card {
        padding: var(--space-10) var(--space-8);
    }
}

@media (max-width: 768px) {
    .founder-single-page {
        padding: var(--space-10) 0;
    }
    
    .founder-name {
        font-size: var(--font-size-3xl);
    }
    
    .founder-bio-title {
        font-size: var(--font-size-3xl);
    }
}

/* ===================================
   FOUNDERS LIST (SHORTCODE)
   =================================== */

.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    margin: var(--space-8) 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.founder-card-link {
    text-decoration: none !important;
    display: block;
    transition: var(--transition-base);
}

.founder-card-link:hover {
    transform: translateY(-5px);
}

.founder-card {
    background-color: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.founder-card-image {
    position: relative;
    padding-top: 100%; /* square ratio */
    overflow: hidden;
}

.founder-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-card-info {
    padding: var(--space-6) var(--space-4);
    background-color: #f1f3f6; /* Light grayish/white card color from screenshot */
    text-align: center;
}

.founder-card-name {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: #0c0e2c; /* Dark navy from screenshot */
    margin-bottom: var(--space-1);
    font-weight: 300;
}

.founder-card-designation {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    font-weight: 400;
}

/* Responsive Adjustments for Grid */
@media (max-width: 768px) {
    .founders-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}
