/*
Theme Name: Princetech Corporation
Theme URI: https://princetech.com.ph/
Author: Princetech Corporation
Author URI: https://princetech.com.ph/
Description: Princetech Corporation — a modern, responsive WordPress theme for educational technology companies. Built to reproduce the Princetech marketing site: hero, solutions, case studies, Prince AI, and more. Includes a full design system, customizer options, and editable homepage sections.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: princetech
Tags: education, business, technology, custom-logo, custom-menu, featured-images, responsive-layout, full-width-template
*/

/* =========================================================================
   1. DESIGN TOKENS
   ========================================================================= */
:root {
    /* Brand */
    --pt-primary:        #1B4DE0;
    --pt-primary-dark:   #1539AC;
    --pt-primary-darker: #102B7E;
    --pt-primary-light:  #EAF0FF;
    --pt-primary-soft:   #F2F6FF;

    /* Neutrals */
    --pt-navy:           #0B1739;
    --pt-navy-2:         #08112B;
    --pt-heading:        #101935;
    --pt-text:           #5A6478;
    --pt-text-light:     #8A93A6;
    --pt-white:          #FFFFFF;
    --pt-bg-alt:         #F6F8FC;
    --pt-bg-soft:        #FAFBFE;
    --pt-border:         #E6EAF2;
    --pt-border-strong:  #D5DCEA;

    /* Accents */
    --pt-green:          #1FA97E;
    --pt-green-light:    #E6F7F1;
    --pt-orange:         #F2994A;
    --pt-orange-light:   #FDF1E6;
    --pt-purple:         #8B5CF6;
    --pt-purple-light:   #F1ECFE;
    --pt-cyan:           #2BB3C0;
    --pt-cyan-light:     #E5F6F8;

    /* Typography */
    --pt-font-head: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --pt-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Radii */
    --pt-radius:      16px;
    --pt-radius-sm:   10px;
    --pt-radius-lg:   24px;
    --pt-radius-pill: 999px;

    /* Shadows */
    --pt-shadow-xs: 0 1px 2px rgba(16, 25, 53, .06);
    --pt-shadow-sm: 0 4px 16px rgba(16, 25, 53, .06);
    --pt-shadow:    0 12px 32px rgba(16, 25, 53, .08);
    --pt-shadow-lg: 0 24px 60px rgba(16, 25, 53, .14);
    --pt-shadow-blue: 0 16px 40px rgba(27, 77, 224, .28);

    /* Layout */
    --pt-container: 1200px;
    --pt-container-wide: 1320px;
    --pt-gap: 24px;
    --pt-section-y: 96px;

    /* Transitions */
    --pt-ease: .25s cubic-bezier(.4, 0, .2, 1);
}

/* =========================================================================
   2. RESET & BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--pt-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--pt-text);
    background: var(--pt-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--pt-font-head);
    color: var(--pt-heading);
    font-weight: 700;
    line-height: 1.18;
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1rem; }

a {
    color: var(--pt-primary);
    text-decoration: none;
    transition: color var(--pt-ease);
}
a:hover { color: var(--pt-primary-dark); }

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

ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }

figure { margin: 0; }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
    outline: 3px solid rgba(27, 77, 224, .4);
    outline-offset: 2px;
}

/* =========================================================================
   3. LAYOUT HELPERS
   ========================================================================= */
.pt-container {
    width: 100%;
    max-width: var(--pt-container);
    margin-inline: auto;
    padding-inline: 24px;
}
.pt-container--wide { max-width: var(--pt-container-wide); }

.pt-section { padding-block: var(--pt-section-y); position: relative; }
.pt-section--alt { background: var(--pt-bg-alt); }
.pt-section--tight { padding-block: 64px; }

.pt-section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.pt-section-head--left { margin-inline: 0; text-align: left; }

.pt-eyebrow {
    display: inline-block;
    font-family: var(--pt-font-head);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pt-primary);
    margin-bottom: 14px;
}

.pt-section-title { margin: 0 0 16px; }
.pt-section-subtitle { font-size: 1.06rem; color: var(--pt-text); margin: 0; }

.pt-grid { display: grid; gap: var(--pt-gap); }
.pt-grid--2 { grid-template-columns: repeat(2, 1fr); }
.pt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pt-grid--4 { grid-template-columns: repeat(4, 1fr); }

.pt-eyebrow--center { display: block; text-align: center; }

/* =========================================================================
   4. BUTTONS
   ========================================================================= */
.pt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--pt-font-head);
    font-size: .98rem;
    font-weight: 600;
    line-height: 1;
    padding: 15px 26px;
    border-radius: var(--pt-radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--pt-ease);
    white-space: nowrap;
    text-align: center;
}
.pt-btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--pt-ease); }
.pt-btn:hover svg { transform: translateX(3px); }

.pt-btn--primary {
    background: var(--pt-primary);
    color: #fff;
    box-shadow: var(--pt-shadow-blue);
}
.pt-btn--primary:hover { background: var(--pt-primary-dark); color: #fff; transform: translateY(-2px); }

.pt-btn--outline {
    background: #fff;
    color: var(--pt-heading);
    border-color: var(--pt-border-strong);
}
.pt-btn--outline:hover { border-color: var(--pt-primary); color: var(--pt-primary); transform: translateY(-2px); }

.pt-btn--light {
    background: #fff;
    color: var(--pt-primary);
}
.pt-btn--light:hover { background: var(--pt-primary-light); color: var(--pt-primary-dark); transform: translateY(-2px); }

.pt-btn--ghost-light {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
}
.pt-btn--ghost-light:hover { background: rgba(255, 255, 255, .16); color: #fff; transform: translateY(-2px); }

.pt-btn--block { width: 100%; }

/* Text link with arrow */
.pt-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--pt-font-head);
    font-weight: 600;
    font-size: .95rem;
    color: var(--pt-primary);
}
.pt-link svg { width: 16px; height: 16px; transition: transform var(--pt-ease); }
.pt-link:hover svg { transform: translateX(4px); }

/* =========================================================================
   5. BADGES, PILLS & CARDS
   ========================================================================= */
.pt-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--pt-radius-pill);
    background: var(--pt-primary-light);
    color: var(--pt-primary-dark);
    font-family: var(--pt-font-head);
    font-size: .85rem;
    font-weight: 600;
}
.pt-pill svg { width: 16px; height: 16px; }

.pt-card {
    background: #fff;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius);
    padding: 28px;
    transition: transform var(--pt-ease), box-shadow var(--pt-ease), border-color var(--pt-ease);
}
.pt-card:hover { transform: translateY(-6px); box-shadow: var(--pt-shadow); border-color: transparent; }

/* =========================================================================
   6. HEADER — TOP BAR
   ========================================================================= */
.pt-topbar {
    background: var(--pt-navy);
    color: rgba(255, 255, 255, .82);
    font-size: .85rem;
}
.pt-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 42px;
    flex-wrap: wrap;
}
.pt-topbar__group { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.pt-topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .82);
}
.pt-topbar a.pt-topbar__item:hover { color: #fff; }
.pt-topbar__item svg { width: 15px; height: 15px; opacity: .9; }
.pt-topbar__links { display: flex; align-items: center; gap: 24px; }
.pt-topbar__links a { color: rgba(255, 255, 255, .82); font-weight: 500; }
.pt-topbar__links a:hover { color: #fff; }

/* =========================================================================
   7. HEADER — MAIN NAV
   ========================================================================= */
.pt-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid var(--pt-border);
    transition: box-shadow var(--pt-ease);
}
.pt-header.is-stuck { box-shadow: var(--pt-shadow-sm); }
.pt-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}

/* Logo */
.pt-logo { display: inline-flex; align-items: center; gap: 12px; }
.pt-logo img { max-height: 46px; width: auto; }
.pt-logo__mark { width: 38px; height: 38px; flex-shrink: 0; }
.pt-logo__text { display: flex; flex-direction: column; line-height: 1; }
.pt-logo__name {
    font-family: var(--pt-font-head);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--pt-heading);
    letter-spacing: -.01em;
}
.pt-logo__name span { color: var(--pt-primary); }
.pt-logo__sub {
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .32em;
    color: var(--pt-text-light);
    text-transform: uppercase;
    margin-top: 3px;
}

/* Primary menu */
.pt-nav { display: flex; align-items: center; gap: 8px; }
.pt-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pt-menu li { position: relative; }
.pt-menu a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--pt-font-head);
    font-weight: 600;
    font-size: .95rem;
    color: var(--pt-heading);
    padding: 10px 14px;
    border-radius: 8px;
}
.pt-menu a:hover,
.pt-menu .current-menu-item > a,
.pt-menu .current_page_item > a { color: var(--pt-primary); }
.pt-menu .menu-item-has-children > a::after {
    content: "";
    width: 8px; height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--pt-ease);
    opacity: .7;
}
.pt-menu .menu-item-has-children:hover > a::after { transform: rotate(225deg) translateY(2px); }

/* Dropdown */
.pt-menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--pt-border);
    border-radius: var(--pt-radius-sm);
    box-shadow: var(--pt-shadow);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--pt-ease);
    z-index: 50;
}
.pt-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.pt-menu .sub-menu a { display: block; padding: 9px 12px; font-weight: 500; border-radius: 7px; }
.pt-menu .sub-menu a:hover { background: var(--pt-primary-soft); }
.pt-menu .sub-menu .sub-menu { top: -8px; left: calc(100% + 6px); }

/* Mobile toggle */
.pt-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: var(--pt-primary-soft);
    border: none;
    border-radius: 10px;
    padding: 0 11px;
}
.pt-nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--pt-heading);
    border-radius: 2px;
    transition: transform var(--pt-ease), opacity var(--pt-ease);
}
.pt-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pt-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pt-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.pt-header__cta { display: inline-flex; }
.pt-nav__cta { display: none; } /* shown only inside the mobile drawer */

.pt-header__brand .custom-logo,
.pt-footer__brand .custom-logo { max-height: 46px; height: auto; width: auto; }

/* =========================================================================
   8. FOOTER
   ========================================================================= */
.pt-footer {
    background: var(--pt-navy-2);
    color: rgba(255, 255, 255, .66);
    padding-top: 72px;
}
.pt-footer__top {
    display: grid;
    grid-template-columns: 1.6fr repeat(5, 1fr);
    gap: 40px;
    padding-bottom: 56px;
}
.pt-footer__brand .pt-logo__name { color: #fff; }
.pt-footer__brand .pt-logo__sub { color: rgba(255, 255, 255, .5); }
.pt-footer__logo { display: inline-block; }
.pt-footer__logo img { width: auto; height: auto; display: block; }
.pt-footer__about { margin: 20px 0 22px; font-size: .92rem; max-width: 320px; }
.pt-footer__social { display: flex; gap: 10px; }
.pt-footer__social a {
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .8);
    transition: all var(--pt-ease);
}
.pt-footer__social a:hover { background: var(--pt-primary); color: #fff; transform: translateY(-3px); }
.pt-footer__social svg { width: 17px; height: 17px; }

.pt-footer__col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 18px;
}
.pt-footer__col ul { list-style: none; margin: 0; padding: 0; }
.pt-footer__col li { margin-bottom: 11px; }
.pt-footer__col a { color: rgba(255, 255, 255, .66); font-size: .92rem; }
.pt-footer__col a:hover { color: #fff; padding-left: 4px; }

.pt-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-block: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .88rem;
}
.pt-footer__bottom-links { display: flex; gap: 28px; }
.pt-footer__bottom a { color: rgba(255, 255, 255, .66); }
.pt-footer__bottom a:hover { color: #fff; }

/* =========================================================================
   9. GENERIC CONTENT (pages, posts, archives)
   ========================================================================= */
.pt-page { padding-block: 72px; }
.pt-page__header { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.pt-content-wrap { max-width: 820px; margin-inline: auto; }
.pt-entry { margin-bottom: 56px; }
.pt-entry__thumb { border-radius: var(--pt-radius); overflow: hidden; margin-bottom: 24px; }
.pt-entry__meta { font-size: .88rem; color: var(--pt-text-light); margin-bottom: 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.pt-entry__title { margin-bottom: 12px; }
.pt-entry__title a { color: var(--pt-heading); }
.pt-entry__title a:hover { color: var(--pt-primary); }
.pt-prose { font-size: 1.04rem; }
.pt-prose img { border-radius: var(--pt-radius); margin-block: 1.5rem; }
.pt-prose h2, .pt-prose h3 { margin-top: 1.8em; }
.pt-prose blockquote {
    border-left: 4px solid var(--pt-primary);
    background: var(--pt-bg-alt);
    margin: 1.5rem 0;
    padding: 16px 24px;
    border-radius: 0 var(--pt-radius-sm) var(--pt-radius-sm) 0;
    color: var(--pt-heading);
}

/* Pagination */
.pt-pagination { margin-top: 48px; display: flex; justify-content: center; }
.pt-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px; height: 42px;
    padding: 0 12px;
    margin: 0 4px;
    border-radius: 9px;
    border: 1px solid var(--pt-border);
    font-family: var(--pt-font-head);
    font-weight: 600;
    color: var(--pt-heading);
}
.pt-pagination .page-numbers.current,
.pt-pagination .page-numbers:hover { background: var(--pt-primary); color: #fff; border-color: var(--pt-primary); }

/* Comments */
.pt-comments { max-width: 820px; margin: 56px auto 0; }
.pt-comments ol { list-style: none; padding: 0; }
.pt-comments .comment-body { padding: 20px 0; border-bottom: 1px solid var(--pt-border); }
.pt-comments .children { padding-left: 32px; }
.pt-comments input[type="text"],
.pt-comments input[type="email"],
.pt-comments input[type="url"],
.pt-comments textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--pt-border-strong);
    border-radius: var(--pt-radius-sm);
    font-family: inherit;
    margin-bottom: 14px;
}

/* =========================================================================
   10. WORDPRESS CORE CLASSES
   ========================================================================= */
.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%); height: 1px; width: 1px;
    margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}
.screen-reader-text:focus {
    background: #fff; clip: auto; clip-path: none;
    color: var(--pt-primary); display: block; height: auto; width: auto;
    left: 6px; top: 6px; padding: 12px 18px; z-index: 100000;
    border-radius: 8px; box-shadow: var(--pt-shadow);
    font-weight: 700;
}
.alignleft  { float: left;  margin: .4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide  { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.alignfull  { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-caption .wp-caption-text { font-size: .85rem; color: var(--pt-text-light); text-align: center; margin-top: 8px; }
.sticky, .bypostauthor { display: block; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 1.5rem; }
.gallery-item img { border-radius: var(--pt-radius-sm); }

/* =========================================================================
   11. ACCESSIBILITY & MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Reveal-on-scroll (progressive enhancement; visible by default if JS off) */
.pt-reveal { opacity: 1; transform: none; }
.js .pt-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .pt-reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================================
   12. RESPONSIVE — HEADER / FOOTER / LAYOUT BASE
   ========================================================================= */
@media (max-width: 1024px) {
    :root { --pt-section-y: 76px; }
    .pt-footer__top { grid-template-columns: 1fr 1fr 1fr; }
    .pt-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .pt-header__cta { display: none; }
    .pt-nav-toggle { display: flex; }

    .pt-nav {
        position: fixed;
        inset: 0 0 0 auto;
        width: min(360px, 86vw);
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 88px 22px 32px;
        box-shadow: var(--pt-shadow-lg);
        transform: translateX(100%);
        transition: transform var(--pt-ease);
        overflow-y: auto;
        z-index: 190;
    }
    .pt-nav.is-open { transform: translateX(0); }
    .pt-menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
    .pt-menu li { width: 100%; }
    .pt-menu > li { border-bottom: 1px solid var(--pt-border); }
    .pt-menu a { padding: 14px 6px; justify-content: space-between; font-size: 1rem; }
    .pt-menu .menu-item-has-children > a::after { margin-left: auto; }

    .pt-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 8px 14px;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--pt-ease);
    }
    .pt-menu li.is-open > .sub-menu { max-height: 600px; }
    .pt-menu .sub-menu .sub-menu { left: 0; }

    .pt-nav__cta { display: block; margin-top: 18px; }
    .pt-nav__cta .pt-btn { width: 100%; }

    .pt-nav-overlay {
        position: fixed; inset: 0;
        background: rgba(8, 17, 43, .5);
        opacity: 0; visibility: hidden;
        transition: opacity var(--pt-ease);
        z-index: 180;
    }
    .pt-nav-overlay.is-open { opacity: 1; visibility: visible; }

    body.pt-nav-open { overflow: hidden; }
}

@media (max-width: 768px) {
    :root { --pt-section-y: 64px; --pt-gap: 18px; }
    .pt-grid--2, .pt-grid--3, .pt-grid--4 { grid-template-columns: 1fr; }
    .pt-section-head { margin-bottom: 40px; }
    .pt-topbar__group--contact { display: none; }
    .pt-footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
    .pt-footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
    .pt-container { padding-inline: 18px; }
    .pt-topbar__inner { justify-content: center; }
    .pt-footer__top { grid-template-columns: 1fr; }
    .pt-btn { width: 100%; }
}
