/*
Theme Name:   Hello Elementor Child
Theme URI:    https://pnajmera.in
Description:  Child theme for PN Ajmera & Co. website
Author:       PN Ajmera Project
Template:     hello-elementor
Version:      1.0.0
*/

/* ============================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
    /* Colors */
    --color-navy:      #1A2E4A;
    --color-gold:      #C9A84C;
    --color-slate:     #4A5568;
    --color-off-white: #F8F7F4;
    --color-white:     #FFFFFF;
    --color-charcoal:  #1C1C1E;
    --color-border:    #E2E0DC;
    --color-error:     #B91C1C;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', system-ui, sans-serif;

    /* Spacing */
    --section-pad-y-desktop: 90px;
    --section-pad-y-mobile:  52px;
    --container-max:  1200px;
    --prose-max:       680px;
    --post-prose-max:  740px;

    /* Shadows */
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);

    /* Radius */
    --radius-btn:  2px;
    --radius-card: 2px;
}

/* ============================================================
   2. GLOBAL RESETS AND BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-slate);
    background-color: var(--color-off-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-charcoal);
    line-height: 1.2;
    font-family: var(--font-body);
    font-weight: 700;
    margin-top: 0;
}

/* Hero and display headings use the serif face */
.display-heading,
.pna-hero-title {
    font-family: var(--font-display);
    font-weight: 600;
}

a { color: var(--color-navy); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1 { font-size: clamp(36px, 5vw, 56px); font-family: var(--font-display); font-weight: 600; }
h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 600; }
h4 { font-size: clamp(16px, 2vw, 20px); font-weight: 600; }

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn,
.elementor-button {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-btn);
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: 14px 32px;
    border: 1px solid var(--color-navy);
}
.btn-primary:hover {
    background-color: #142440;
    border-color: #142440;
    color: var(--color-white);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-navy);
    padding: 13px 31px;
    border: 1px solid var(--color-navy);
}
.btn-secondary:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
    text-decoration: none;
}

/* ============================================================
   5. CARDS
   ============================================================ */
.card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 32px;
    transition: box-shadow 0.2s ease;
}
.card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10); }

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

.pna-section {
    padding-top: var(--section-pad-y-desktop);
    padding-bottom: var(--section-pad-y-desktop);
}

@media (max-width: 768px) {
    .pna-section {
        padding-top: var(--section-pad-y-mobile);
        padding-bottom: var(--section-pad-y-mobile);
    }
}

/* ============================================================
   7. HEADER
   ============================================================ */

/*
   Hello Elementor outputs a <header> with class .site-header.
   Inside it: .site-branding (logo) and .site-navigation (nav).
   Verify these selectors in DevTools if the theme version differs.
*/

.site-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Inner wrapper — Hello Elementor uses .header-widget-area or .site-header-inner */
.site-header .site-header-inner,
.site-header .header-widget-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    min-height: 72px;
}

/* Logo */
.site-header .site-branding img,
.site-header .custom-logo {
    height: 40px;
    width: auto;
    display: block;
}

/* Nav links */
.site-header a {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-charcoal);
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-header a:hover,
.site-header .current-menu-item > a,
.site-header .current-page-ancestor > a {
    color: var(--color-navy);
    text-decoration: none;
}

/* Active item underline accent */
.site-header .current-menu-item > a {
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 2px;
}

/* Primary nav items spacing */
.site-header .main-navigation ul.menu > li {
    margin-left: 32px;
}

/* Services dropdown */
.site-header .main-navigation ul.sub-menu {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-card);
    min-width: 240px;
    padding: 8px 0;
    margin-top: 4px;
}

.site-header .main-navigation ul.sub-menu li {
    margin-left: 0;
}

.site-header .main-navigation ul.sub-menu a {
    font-size: 14px;
    font-weight: 400;
    padding: 10px 20px;
    display: block;
    color: var(--color-charcoal);
    border-bottom: none;
}

.site-header .main-navigation ul.sub-menu a:hover {
    background-color: var(--color-off-white);
    color: var(--color-navy);
}

/* ============================================================
   8. MOBILE NAVIGATION
   ============================================================ */

/* Hamburger icon — Hello Elementor outputs a button.menu-toggle */
.site-header .menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-navy);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile nav drawer */
@media (max-width: 767px) {
    .site-header .main-navigation {
        background-color: var(--color-white);
        border-top: 1px solid var(--color-border);
        width: 100%;
    }

    .site-header .main-navigation ul.menu > li {
        margin-left: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .site-header .main-navigation ul.menu > li > a {
        display: block;
        padding: 14px 24px;
        min-height: 48px;
        font-size: 16px;
    }

    /* Dropdown inside mobile drawer */
    .site-header .main-navigation ul.sub-menu {
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--color-border);
        border-radius: 0;
        background-color: var(--color-off-white);
        padding: 0;
    }

    .site-header .main-navigation ul.sub-menu a {
        padding: 12px 24px 12px 40px;
        font-size: 15px;
        min-height: 48px;
    }
}

/* ============================================================
   9. FOOTER
   ============================================================ */

.pna-footer {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.pna-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.15s ease;
}

.pna-footer a:hover {
    color: var(--color-white);
    text-decoration: none;
}

/* Footer main grid — 4 columns */
.pna-footer__main {
    padding: 64px 0 48px;
}

.pna-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Column 1: logo + tagline */
.pna-footer__brand .pna-footer__logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1); /* white version of the logo */
    margin-bottom: 16px;
}

.pna-footer__tagline {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    max-width: 240px;
}

/* Column headings */
.pna-footer__col-title {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 20px;
}

/* Footer nav links */
.pna-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pna-footer__links li {
    margin-bottom: 10px;
}

.pna-footer__links a {
    font-size: 14px;
    line-height: 1.5;
}

/* Column 4: contact details */
.pna-footer__contact address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
}

.pna-footer__contact a {
    font-size: 14px;
}

/* Bottom bar */
.pna-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0;
}

.pna-footer__bottom-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.pna-footer__copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.pna-footer__bottom a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.pna-footer__bottom a:hover {
    color: var(--color-white);
}

/* Footer responsive */
@media (max-width: 1024px) {
    .pna-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .pna-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pna-footer__main {
        padding: 48px 0 36px;
    }

    .pna-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ============================================================
   10. BLOG: archive / home.php (listing page)
   ============================================================ */
/* Added in Phase 5 */

/* ============================================================
   11. BLOG: single.php (post page)
   ============================================================ */
/* Added in Phase 5 */

/* ============================================================
   12. BLOG: post card component
   ============================================================ */
/* Added in Phase 5 */

/* ============================================================
   13. BLOG: related posts
   ============================================================ */
/* Added in Phase 5 */

/* ============================================================
   14. ELEMENTOR OVERRIDES
   ============================================================ */
/*
   Only target Elementor internal classes when there is no alternative.
   If used, leave a comment explaining why and what to watch for on updates.
*/

/* ============================================================
   15. UTILITY CLASSES
   ============================================================ */
.u-text-center { text-align: center; }
.u-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
