/* ==========================================================
   PorchLight / Renter Navigator Network
   Global Site Styles

   Chota is loaded before this file.

   Global layout and site-wide design belong here.
   Reusable modular elements belong in /css/components/.
   Page-specific styles belong in /css/pages/.
   ========================================================== */


/* ==========================================================
   Variables
   ========================================================== */

:root {
    /* ------------------------------------------------------
       PorchLight Brand
       ------------------------------------------------------ */

    --pl-navy: #12323a;
    --pl-blue: #2b5263;
    --pl-green-light: #bcd0c5;
    --pl-orange: #e07127;
    --pl-gold: #fdb827;
    --pl-cream: #ebe5d9;
    --pl-white: #ffffff;
    --pl-text: var(--pl-navy);
    --pl-heading: var(--pl-navy);
    --pl-muted: #66777c;
    --pl-border: #d7dddf;
    /* ------------------------------------------------------
       Layout
       ------------------------------------------------------ */
    --pl-content-width: 1760px;
    --pl-reading-width: 1280px;
    --grid-maxWidth: var(--pl-content-width);
    --grid-gutter: 2rem;
    /* ------------------------------------------------------
       Typography
       ------------------------------------------------------ */

    --font-size-body: 1rem;
    --font-family-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-family-heading: "Degular Display", "degular-display", "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
    /* ------------------------------------------------------
       Chota Overrides
       ------------------------------------------------------ */

    --bg-color: var(--pl-white);
    --bg-secondary-color: var(--pl-cream);
    --color-primary: var(--pl-blue);
    --color-lightGrey: var(--pl-border);
    --color-grey: var(--pl-muted);
    --color-darkGrey: var(--pl-text);
    --font-color: var(--pl-text);
    --font-size: var(--font-size-body);
    --font-family-sans: var(--font-family-body);
}


/* ==========================================================
   Base
   ========================================================== */

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


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: var(--pl-white);
    color: var(--pl-text);
    font-family: var(--font-family-body);
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


main {
    flex: 1 0 auto;
}


/* ==========================================================
   Typography
   ========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--pl-heading);
    font-family: var(--font-family-heading);
    font-style: normal;
    font-weight: 600;
}


/* Mobile first */

h1 {
    font-size: 3rem;
    line-height: 0.95;
}


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


h3 {
    font-size: 1.75rem;
    line-height: 1;
}


h4 {
    font-size: 1.5rem;
    line-height: 1.05;
}


h5 {
    font-size: 1.25rem;
    line-height: 1.1;
}


h6 {
    font-size: 1rem;
    line-height: 1.2;
}


p {
    margin-top: 0;
    margin-bottom: 1rem;
}


strong,
b {
    font-weight: 700;
}


/* ==========================================================
   Links
   ========================================================== */

a {
    color: var(--pl-blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}


    a:hover {
        color: var(--pl-navy);
    }


    a:focus-visible {
        outline: 3px solid var(--pl-gold);
        outline-offset: 3px;
    }


/* ==========================================================
   Buttons
   ========================================================== */

.pl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.875rem 1.75rem;
    border: 0;
    border-radius: 0.5rem;
    font-family: var(--font-family-body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}


/* Gold / primary */

.pl-button--gold {
    background-color: var(--pl-gold);
    color: var(--pl-navy);
    transition: background-color 0.2s ease, color 0.2s ease;
}


    .pl-button--gold:hover {
        background-color: var(--pl-orange);
        color: var(--pl-white);
    }


/* Orange */

.pl-button--orange {
    background-color: var(--pl-orange);
    color: var(--pl-white);
    transition: background-color 0.2s ease, color 0.2s ease;
}


    .pl-button--orange:hover {
        background-color: var(--pl-gold);
        color: var(--pl-white);
    }


.pl-button:focus-visible {
    outline: 3px solid var(--pl-gold);
    outline-offset: 3px;
}

/* Secondary: Black Text with Gold Pseudo */

.pl-button-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: #000;
    font-family: var(--font-family-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}


    .pl-button-secondary::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 2px;
        height: 1px;
        background: var(--pl-gold);
        transition: bottom 180ms ease, height 180ms ease;
    }


    .pl-button-secondary:hover {
        color: #000;
        text-decoration: none;
    }


        .pl-button-secondary:hover::after {
            bottom: 6px;
            height: 3px;
        }


/* ==========================================================
   Media
   ========================================================== */

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


svg,
video {
    max-width: 100%;
}


figure {
    margin: 0;
}


/* ==========================================================
   Forms
   ========================================================== */

button,
input,
select,
textarea {
    font: inherit;
}


button {
    color: inherit;
}


input,
select,
textarea {
    max-width: 100%;
}


textarea {
    resize: vertical;
}


    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible {
        outline: 3px solid var(--pl-gold);
        outline-offset: 2px;
    }

    /* Chota Overrides */
    input:not([type="checkbox"], [type="radio"], [type="submit"], [type="color"], [type="button"], [type="reset"]), select, textarea, textarea[type="text"] {
        border-radius: 12px;
    }

/* ==========================================================
   Lists
   ========================================================== */
ul,
ol {
    margin-top: 0;
    margin-bottom: 1rem;
}


li {
    margin-bottom: 0.2rem;
}

/* ==========================================================
   Utility Helpers
   ========================================================== */

.rounded {
    border-radius: 20px;
}

/* ==========================================================
   Global Layout Helpers
   ========================================================== */

.pl-reading-width {
    max-width: var(--pl-reading-width);
}


/* ==========================================================
   Standard Page Hero
   ========================================================== */

.pl-page-hero {
    display: flex;
    align-items: center;
    min-height: 200px;
    padding: 2.5rem 0;
    background-color: var(--pl-navy);
    background-image: url("/images/pages/bg_blue.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--pl-white);
    text-align: center;
}


    .pl-page-hero h1 {
        margin: 0;
        color: inherit;
    }


/* ==========================================================
   Standard Page Content
   ========================================================== */

.pl-page-content {
    padding: 3rem 0 5rem;
}


    .pl-page-content h2 {
        margin-top: 2rem;
        margin-bottom: 0.75rem;
    }


    .pl-page-content p {
        margin-bottom: 1rem;
    }


    .pl-page-content ul,
    .pl-page-content ol {
        margin-bottom: 1.5rem;
    }


/* ==========================================================
   Accessibility
   ========================================================== */

.pl-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}






/* ==========================================================
   Footer
   ========================================================== */

.pl-footer {
    flex-shrink: 0;
    background: var(--pl-blue);
    color: var(--pl-white);
}


/* Main footer layout */

.pl-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
    text-align: center;
}


/* ----------------------------------------------------------
   Footer Brand
   ---------------------------------------------------------- */

.pl-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}


.pl-footer__logo {
    display: inline-block;
    width: 167px;
    max-width: 100%;
    text-decoration: none;
}


    .pl-footer__logo img {
        display: block;
        width: 100%;
        height: auto;
    }


/* ----------------------------------------------------------
   Footer Legal
   ---------------------------------------------------------- */

.pl-footer__legal {
    margin-top: 2.25rem;
    color: var(--pl-white);
    font-family: var(--font-family-body);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    text-align: center;
}


.pl-footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}


.pl-footer__legal a {
    color: var(--pl-white);
    text-decoration: none;
}


    .pl-footer__legal a:hover {
        color: var(--pl-gold);
        text-decoration: underline;
    }


.pl-footer__copyright {
    margin-top: 0.15rem;
}


/* ----------------------------------------------------------
   Footer Content
   ---------------------------------------------------------- */

.pl-footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 2.75rem;
}


/* ----------------------------------------------------------
   Footer Navigation
   ---------------------------------------------------------- */

.pl-footer__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}


    .pl-footer__nav a {
        color: #fcf7f4;
        font-family: var(--font-family-body);
        font-size: 18px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        letter-spacing: 0.9px;
        text-align: center;
        text-decoration: none;
        text-transform: uppercase;
        transition: color 0.2s ease, color 0.2s ease;
    }


        .pl-footer__nav a:hover {
            color: var(--pl-gold);
        }


/* ----------------------------------------------------------
   Footer Social
   ---------------------------------------------------------- */

.pl-footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}


    .pl-footer__social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--pl-gold);
        text-decoration: none;
    }


    .pl-footer__social svg {
        display: block;
        width: auto;
        height: 22px;
    }


    .pl-footer__social a:hover {
        opacity: 0.8;
    }


    /* Footer accessibility */

    .pl-footer__social a:focus-visible,
    .pl-footer__nav a:focus-visible,
    .pl-footer__legal a:focus-visible,
    .pl-footer__logo:focus-visible {
        outline: 3px solid var(--pl-gold);
        outline-offset: 4px;
    }


/* ==========================================================
   Footer Desktop
   ========================================================== */

@media (min-width: 1165px) {

    .pl-footer__inner {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: stretch;
        gap: 4rem;
        min-height: 250px;
        padding-top: 2.75rem;
        padding-bottom: 2.75rem;
        text-align: left;
    }


    /* Left side */

    .pl-footer__brand {
        align-items: flex-start;
        justify-content: space-between;
        width: auto;
    }


    .pl-footer__logo {
        width: 167px;
    }


    .pl-footer__legal {
        margin-top: 2rem;
        text-align: left;
    }


    .pl-footer__legal-links {
        justify-content: flex-start;
    }


    /* Right side */

    .pl-footer__content {
        align-items: flex-end;
        justify-content: space-between;
        width: auto;
        gap: 2rem;
    }


    .pl-footer__nav {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 2.25rem;
    }


    .pl-footer__social {
        justify-content: flex-end;
    }
}

/* ==========================================================
   Desktop
   ========================================================== */

@media (min-width: 1200px) {

    h1 {
        font-size: 5rem;
    }


    h2 {
        font-size: 4.625rem;
        line-height: 1;
    }


    h3 {
        font-size: 3rem;
    }


    h4 {
        font-size: 2rem;
    }
}


/* ==========================================================
   Reduced Motion
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    .pl-button {
        transition: none;
    }
}
