/*
Theme Name: Unitime
Description: Tema institucional para a UNITIME – Facility Services, Lda.
Version: 0.2.7
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: unitime
*/

:root {
    color-scheme: light;
    --ink: #121f3b;
    --muted: #465574;
    --blue: #064bb5;
    --navy: #061657;
    --blue-tint: #eaf3ff;
    --canvas: #f6f9ff;
    --paper: #ffffff;
    --line: #cbd9ed;
    --accent: #0968ca;
    --gutter: clamp(1.125rem, 4vw, 4rem);
    --sans: "Segoe UI", system-ui, sans-serif;
    --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font: 1rem/1.65 var(--sans);
    overflow-wrap: anywhere;
}
[hidden] { display: none !important; }
img { display: block; height: auto; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: .18rem solid var(--accent); outline-offset: .25rem; }
#conteudo:focus { outline: none; }
h1, h2, h3, p, ul { margin-block-start: 0; }
h1, h2 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -.04em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.85rem, 5.5vw, 6.1rem); margin-block-end: 1.4rem; }
h2 { font-size: clamp(2.05rem, 4vw, 4rem); margin-block-end: 1.1rem; }
h3 { font-size: 1.22rem; line-height: 1.25; margin-block-end: .55rem; }
button, input, select, textarea { font: inherit; }
.shell { width: min(100% - 2 * var(--gutter), 85rem); margin-inline: auto; }
.section { padding-block: clamp(3.75rem, 8vw, 7.625rem); }
.reading { max-width: 49rem; }
.eyebrow {
    margin-block-end: .9rem;
    color: var(--blue);
    font-size: .74rem;
    font-weight: 750;
    line-height: 1.5;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.screen-reader-text, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link:focus {
    position: fixed;
    z-index: 100001;
    inset: .75rem auto auto .75rem;
    padding: .75rem 1rem;
    background: var(--paper);
}

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header--sticky { position: sticky; inset-block-start: 0; z-index: 10; }
.site-header--sticky ~ main #contactos { scroll-margin-block-start: 6.5rem; }

@media (min-width: 601px) {
    .admin-bar .site-header--sticky { inset-block-start: var(--wp-admin--admin-bar--height, 32px); }
}
.header-inner {
    min-height: 5.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding-block: .8rem;
}
.site-name {
    display: inline-grid;
    width: fit-content;
    color: inherit;
    text-decoration: none;
    line-height: 1.15;
}
.site-name strong { font-size: 1.55rem; font-weight: 750; letter-spacing: .12em; }
.site-name span { margin-top: .25rem; font-size: .75rem; letter-spacing: .035em; }
.custom-logo { width: auto; max-width: min(15.6rem, 65vw); max-height: 5.07rem; object-fit: contain; }
.site-nav, .site-nav .menu { display: flex; gap: clamp(.8rem, 2.6vw, 2.6rem); align-items: center; }
.site-nav-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.site-nav-actions .button { white-space: nowrap; }
.site-nav .menu, .footer-grid .menu { margin: 0; padding: 0; list-style: none; }
.site-nav a { font-size: .93rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; }
.portal-link, .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .65rem 1rem;
    border: 1px solid var(--blue);
    background: transparent;
    color: var(--blue);
    border-radius: .25rem;
    white-space: nowrap;
}
.menu-toggle { cursor: pointer; font-weight: 700; }

.hero {
    display: grid;
    grid-template-columns: 1fr minmax(0, 1.05fr);
    align-items: stretch;
    margin-block: clamp(1.15rem, 3vw, 2.75rem) 0;
}
.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(1.55rem, 4.2vw, 4.4rem);
    background: var(--navy);
    color: #ffffff;
}
.hero h1 { font-size: clamp(2.65rem, 4.65vw, 5.35rem); text-wrap: initial; }
.hero-intro { max-width: 32rem; margin-bottom: 1.65rem; color: #dfebff; font-size: clamp(1rem, 1.4vw, 1.16rem); }
.hero-area { margin-block: -1rem 1.65rem; color: #8edfff; font-weight: 650; }
.hero-media { position: relative; min-height: clamp(26rem, 41vw, 42rem); background: var(--blue-tint); }
.hero-media img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.45rem; }
.button {
    display: inline-flex;
    min-height: 2.9rem;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    width: fit-content;
    max-width: 100%;
    padding: .7rem 1.1rem;
    border: 1px solid transparent;
    border-radius: .22rem;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.button:hover { background: #083a94; }
.hero .button { background: #8edfff; color: var(--navy); }
.hero .button:hover { background: #c0efff; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: #8edfff; }
.text-link { font-weight: 700; }

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem 2rem;
    margin-block-end: 1.65rem;
}
.section-heading h2 { margin: 0; }
.section-heading > p { color: var(--muted); max-width: 29rem; margin: 0; }
.service-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    grid-column: span 2;
    min-height: 13.5rem;
    padding: clamp(1.1rem, 2.7vw, 2rem);
    border: 1px solid var(--line);
    border-top: .23rem solid #2077db;
    background: var(--paper);
}
.service-card:nth-child(n+4) { grid-column: span 3; }
.service-card:nth-child(4n) { border-top-color: #0086b4; }
.service-card p { max-width: 37ch; margin-bottom: .85rem; color: var(--muted); }
.card-link {
    display: grid;
    place-items: center;
    width: 2.5rem;
    min-height: 2.5rem;
    margin-top: auto;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--navy);
    font-size: 1.2rem;
    text-decoration: none;
}
.card-link::after { position: absolute; inset: 0; content: ""; }
.service-card:focus-within, .service-card:hover { background: #edf6ff; }
.project-band { background: var(--navy); color: var(--paper); }
.project-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.26fr);
    align-items: center;
    gap: clamp(1.85rem, 5vw, 5.5rem);
}
.project-copy p { max-width: 42ch; color: #dfebff; }
.project-copy h3 { color: #8edfff; }
.project-band .button { background: #8edfff; color: var(--navy); }
.project-band .button:hover { background: #c0efff; }
.project-band :focus-visible { outline-color: #8edfff; }
.project-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(.55rem, 1.5vw, 1rem);
}
.project-photos figure {
    margin: 0;
    border: 1px solid #365488;
    background: #10266a;
}
.project-photos img { width: 100%; }
.project-photos figcaption { padding: .65rem .75rem; font-size: .9rem; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.75rem, 8vw, 7rem); }
.about-band, .page-heading { background: var(--blue-tint); }
.about-band .section { padding-block: clamp(3.4rem, 6.5vw, 6rem); }
.about-band h2, .contact-section h2 { margin-bottom: .85rem; }
.about-band .split { align-items: center; }
.about-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.about-band .split p:not(.eyebrow), .contact-section p { max-width: 49ch; }
.page-heading { padding-block: clamp(3.25rem, 7vw, 6.4rem); }
.page-heading h1:last-child, .page-heading p:last-child { margin-bottom: 0; }
.page-heading h1 { font-size: clamp(2.6rem, 6vw, 5.25rem); text-wrap: initial; }
.page-heading p:not(.eyebrow) { font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.prose p, .prose ul, .prose ol { max-width: 70ch; }
.prose > * + h2 { margin-top: 2rem; }
.prose a:not(.button) { color: var(--blue); }
.detail-list { padding-left: 1.2rem; margin-bottom: 2rem; }
.detail-list li + li { margin-top: .45rem; }

.contact-section { align-items: start; }
.contact-section address { display: grid; justify-items: start; gap: .45rem; font-style: normal; font-weight: 700; }
.contact-form {
    padding: clamp(1rem, 3vw, 2.1rem);
    background: var(--paper);
    border: 1px solid var(--line);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.form-topic { grid-column: 1 / -1; }
.contact-form label { display: block; margin-bottom: .3rem; font-size: .91rem; font-weight: 700; }
.contact-form input:not([type="hidden"]), .contact-form textarea, .contact-form select {
    width: 100%;
    min-height: 2.8rem;
    padding: .52rem .65rem;
    border: 1px solid #7485a4;
    border-radius: .16rem;
    background: #fff;
    color: var(--ink);
}
.contact-form textarea { display: block; resize: vertical; }
.form-hint { margin: .8rem 0 1.05rem; color: var(--muted); font-size: .88rem; }
.form-hint-message { margin: 0 0 .55rem; }
.form-notice { padding: .8rem 1rem; border-left: .25rem solid var(--blue); background: var(--blue-tint); }

.site-footer { background: var(--navy); color: #ffffff; padding-top: 3rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 1.75rem;
    padding-bottom: 2.2rem;
}
.footer-grid h2 { font: 750 .9rem/1.4 var(--sans); letter-spacing: 0; margin-bottom: .5rem; }
.footer-grid p { color: #d7e6ff; max-width: 28ch; margin: .9rem 0 0; }
.footer-grid a:not(.site-name) { display: block; width: fit-content; padding-block: .12rem; }
.footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .6rem 1rem;
    padding-block: 1.05rem;
    border-top: 1px solid #657eb7;
    font-size: .88rem;
    color: #dfebff;
}

@media (max-width: 1000px) {
    .service-card, .service-card:nth-child(n+4) { grid-column: span 3; }
    .service-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
    .header-inner { flex-wrap: wrap; min-height: 4.4rem; column-gap: .65rem; }
    .menu-toggle { padding-inline: .75rem; }
    .site-nav { flex: 1 0 100%; align-items: flex-start; padding-block: .45rem; }
    .site-nav, .site-nav .menu { flex-direction: column; align-items: flex-start; gap: .35rem; }
    .site-nav .menu a { display: inline-block; padding-block: .45rem; }
    .site-header--sticky .site-nav { max-height: calc(100dvh - 7rem); overflow-y: auto; }
}

@media (max-width: 800px) {
    .hero { grid-template-columns: 1fr; }
    .hero-copy { padding-block: clamp(2.1rem, 7vw, 4.25rem); }
    .hero h1 { max-width: 16ch; }
    .hero-media { min-height: clamp(14rem, 55vw, 25rem); }
    .split { grid-template-columns: 1fr; }
    .project-feature { grid-template-columns: minmax(0, 1fr); }
    .project-photos { max-width: 34rem; }
    .section-heading { display: block; }
    .section-heading > p { margin-top: .6rem; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .hero h1 { font-size: clamp(2.1rem, 8vw, 2.65rem); }
    .service-grid, .form-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .service-card, .service-card:nth-child(n+4) { grid-column: 1; min-height: 11rem; }
}
