/* myHARCA brand styles for PropertyActions QR page */

@import url("https://use.typekit.net/bss5rqf.css");

/* ── Colours ── */
:root {
    --ph-teal:        #00B3BC;
    --ph-green:       #95C11F;
    --ph-orange:      #EF7D00;
    --ph-pink:        #E83273;
    --ph-navy:        #00344c;
    --ph-dark-teal:   #007B88;
    --ph-dark-green:  #569204;
    --ph-grey:        #57555B;
    --ph-light-grey:  #EEEEEF;
}

/* ── Base ── */
body {
    font-family: "omnes-pro", sans-serif;
    font-size: 16px;
    background-color: var(--ph-light-grey);
    color: var(--ph-grey);
    margin: 0;
}

h1 {
    font-family: "omnes-pro", sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-family: "omnes-pro", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

h3 {
    font-family: "omnes-pro", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

p {
    font-family: "omnes-pro", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

.text-primary { color: var(--ph-grey) !important; }


/* ── Mobile header fixes ── */

/* menu.css sets height:90px on mobile — shrink to fit just the logo + hamburger */
@media (max-width: 991.98px) {
    .menuCont .menu {
        height: auto !important;
        min-height: 0 !important;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

/* Pin the mobile menu immediately below the header bar — no gap */
@media (max-width: 991.98px) {
    .menuContainer {
        position: static;
        visibility: visible;
    }
    .menuContainer .menu {
        position: fixed !important;
        top: 88px;
        left: 0;
        width: 100%;
        z-index: 200 !important;
        overflow: hidden;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
}

/* Hamburger button */
.ph-hamburger {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--ph-grey);
    position: relative;
    z-index: 300;
    padding: 4px 8px;
    line-height: 1;
}

/* ── Page wrapper ── */
#page {
    min-height: 100vh;
    background: var(--ph-light-grey);
}

/* ── Coloured left-border section ── */
section.pageContent {
    padding: 35px 0;
    position: relative;
}

section.pageContent::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-left: solid 10px var(--ph-teal);
}

/* ── White content box ── */
.contentBox {
    background: #ffffff;
    border-radius: 5px 5px 0 0;
    padding: 40px 46px;
}

@media (max-width: 767.98px) {
    .contentBox { padding: 24px 20px; }
}

/* ── Tile cards ── */
.tile {
    background: #ffffff;
    border-radius: 5px;
    padding: 24px;
    margin-bottom: 16px;
}

.smallTile {
    background: #ffffff;
    border-radius: 5px;
    padding: 24px;
    height: 100%;
}

/* ── svgCircle icon — override menu.css which sets inline-block + margin:0 auto ── */
#page .svgCircle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    flex-shrink: 0;
    font-size: 1.75rem;
    padding: 0;
    margin: 0 !important;
}

/* ── Background colour helpers ── */
.lightBlueBg  { background: var(--ph-teal);   }
.lightGreenBg { background: var(--ph-green);  }
.lightOrangeBg{ background: var(--ph-orange); }
.pinkBg       { background: var(--ph-pink);   }
.navyBg       { background: var(--ph-navy);   }

/* ── Buttons ── */
a.btn, button.btn {
    font-family: "omnes-pro", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: filter 0.15s ease;
    border: none;
}

a.btn:hover, button.btn:hover { filter: brightness(0.9); }

a.btn.lightBlueBg,  button.btn.lightBlueBg  { color: #fff; background: var(--ph-teal);   }
a.btn.lightGreenBg, button.btn.lightGreenBg { color: #fff; background: var(--ph-green);  }
a.btn.lightOrangeBg,button.btn.lightOrangeBg{ color: #fff; background: var(--ph-orange); }
a.btn.pinkBg,       button.btn.pinkBg       { color: #fff; background: var(--ph-pink);   }

.iconCircle {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    background: rgba(255,255,255,0.25);
}

/* ── Certificate card grid ── */
/* Camera permission error */
.camera-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    color: var(--ph-grey);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.cert-card {
    background: #ffffff;
    border-radius: 5px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-card .cert-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
    flex-shrink: 0;
}

.cert-card .cert-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--ph-grey);
}

.cert-card .cert-expiry {
    font-size: 0.85rem;
    color: #777;
}

.cert-card .cert-missing {
    font-size: 0.85rem;
    color: #aaa;
    font-style: italic;
}

/* ── Search box ── */
.search-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-row input[type="text"] {
    font-family: "omnes-pro", sans-serif;
    font-size: 1rem;
    border: 2px solid #d0d0d0;
    border-radius: 5px;
    padding: 8px 14px;
    width: 180px;
    outline: none;
    transition: border-color 0.15s ease;
}

.search-row input[type="text"]:focus {
    border-color: var(--ph-teal);
}

/* ── Property image ── */
.prop-image {
    max-width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 5px;
}

/* ── Utilities ── */
.fullwidth { width: 100%; }
.noMarg { margin: 0; }
.bold { font-weight: 700; }

.dot-divider {
    display: block;
    width: 100%;
    height: 4px;
    background-image: radial-gradient(circle closest-side, var(--ph-teal) 80%, rgba(0,0,0,0) 10%);
    background-size: 7px 4px;
    background-repeat: repeat-x;
    margin: 30px 0;
}

.dot-divider.green {
    background-image: radial-gradient(circle closest-side, var(--ph-green) 80%, rgba(0,0,0,0) 10%);
}

/* ── Responsive ── */
@media (max-width: 576px) {
    h1 { font-size: 1.8rem; }
    .ph-header { padding: 0 16px; }
    section.pageContent::before { border-left-width: 6px; }
}
