/*
Theme Name: Lincoln I.T.
Theme URI: https://lincoln-it.com
Author: Lincoln I.T.
Author URI: https://lincoln-it.com
Description: Custom minimal theme for Lincoln I.T.
Version: 1.0.0
Text Domain: lincoln-it
*/

/* =====================
   Design Tokens
   ===================== */

:root {
    --bg: #f6f7f8;
    --text: #101828;
    --muted: rgba(16, 24, 40, 0.75);

    --card: #ffffff;
    --border: rgba(0, 0, 0, 0.08);

    --brand: #0b1f33;        /* primary navy */
    --brand-hover: #163a5f; /* hover navy */

    --link: #0b1f33;
    --link-hover: #163a5f;
}

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

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
}

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

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

a {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}

a:hover,
a:focus-visible {
    color: var(--link-hover);
    text-decoration-thickness: 2px;
}

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

h1, h2, h3 {
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

p {
    margin: 0 0 1rem;
}

/* =====================
   WordPress Content Safety
   ===================== */

.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content section { width: 100%; }
.entry-content > * { max-width: 100%; }

/* Give WP content a consistent centered container */
.site-main,
#primary.site-main,
main.site-main {
    display: block;
}

.site-main > .entry-content,
#primary > .entry-content,
.site-main .entry-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

/* =====================
   Layout Containers
   ===================== */

.page__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

.hero__inner,
.home-section__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* =====================
   Header / Navigation
   ===================== */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.site-header__branding-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.site-header__logo-img {
    height: 40px;
    width: auto;
    max-width: none;
    display: block;
    object-fit: contain;
}

/* WordPress Custom Logo */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    text-decoration: none;
}

.custom-logo-link:hover,
.custom-logo-link:focus-visible {
    text-decoration: none;
}

.custom-logo {
    display: block;
    height: 72px;
    width: auto;
    max-width: 360px;
    object-fit: contain;
}

/* If the logo is a text fallback */
.site-header__logo-text {
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
}

.site-header__logo-text:hover,
.site-header__logo-text:focus-visible {
    text-decoration: none;
    color: var(--text);
}

.site-header__branding {
    flex: 0 0 auto;
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-header__logo:hover,
.site-header__logo:focus-visible {
    text-decoration: none;
}

.site-header__tagline {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(16, 24, 40, 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 380px;
}

.primary-menu {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

.primary-menu a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.primary-menu a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .site-header__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-weight: 650;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn--primary {
    background: var(--brand);
    border-color: rgba(11, 31, 51, 0.35);
    color: #ffffff;
}

.btn--primary:hover {
    background: var(--brand-hover);
}

.btn--ghost {
    background: transparent;
}

/* Make core WP buttons match theme */
.wp-element-button,
.wp-block-button__link,
.wp-block-read-more,
.wp-block-post-excerpt__more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-weight: 650;
    text-decoration: none !important;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
.wp-block-read-more:hover,
.wp-block-post-excerpt__more-link:hover {
    background: rgba(11, 31, 51, 0.04);
}

/* =====================
   Hero
   ===================== */

.hero--home {
    background: var(--bg);
    padding: 3rem 0;
}

.hero__inner {
    position: relative;
}

.hero__corner--top-right {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-top: 2px solid var(--text);
    border-right: 2px solid var(--text);
}

.hero__title {
    font-size: clamp(2rem, 3.4vw, 3rem);
}

.hero__subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
}

.hero__supporting {
    opacity: 0.85;
}

.hero__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* =====================
   Sections
   ===================== */

.home-section {
    padding: 2.25rem 0;
    background: #ffffff;
}

/* =====================
   Cards / Grids
   ===================== */

.value-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.value-card,
.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
}

.service-card a {
    color: var(--text);
    text-decoration: none;
}

.service-card a:hover {
    text-decoration: underline;
}

/* =====================
   Pricing
   ===================== */

.pricing-grid {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

@media (min-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    padding: 1.25rem;
}

.pricing-card__subtitle {
    color: var(--muted);
    margin-top: -0.25rem;
}

.pricing-card--highlight {
    border-color: rgba(11, 31, 51, 0.25);
    box-shadow: 0 10px 30px rgba(11, 31, 51, 0.08);
}

.pricing-details {
    margin: 1.25rem 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    padding: 0;
    overflow: hidden;
}

.pricing-details > summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    list-style: none;
}

.pricing-details > summary::-webkit-details-marker { display: none; }

.pricing-details > summary strong {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-details > summary strong::after {
    content: "▾";
    font-weight: 700;
    opacity: 0.75;
}

.pricing-details[open] > summary strong::after {
    content: "▴";
}

.pricing-details > *:not(summary) {
    padding: 0 1.25rem 1.25rem;
}

.comparison__legend {
    margin-top: 0.25rem;
}

.comparison__legend-keys {
    display: inline-flex;
    gap: 0.6rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.cmp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4em;
    height: 1.4em;
    border-radius: 9999px;
    font-weight: 800;
    line-height: 1;
    border: 1px solid var(--border);
    background: #fff;
}

.cmp--yes { color: #0b5; }
.cmp--no { color: #b00; }
.cmp--partial { color: #a60; }
.cmp--addon { color: var(--brand); }

.comparison__wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
}

.comparison__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.comparison__table th,
.comparison__table td {
    padding: 0.9rem 0.85rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    vertical-align: top;
}

.comparison__table thead th {
    background: rgba(11, 31, 51, 0.03);
    text-align: left;
}

.comparison__table tbody th {
    font-weight: 600;
    width: 45%;
}

.comparison__cell {
    text-align: center;
}

.comparison__bestfor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.comparison__bestfor > div {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
}

.faq-details--all h3 {
    margin-top: 1.25rem;
}

/* =====================
   Services
   ===================== */

.services-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

@media (min-width: 900px) {
    .services-summary {
        grid-template-columns: 1fr 1fr;
    }
}

.services-summary__block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
}

.services-tags {
    margin-top: 2rem;
}

.services-tags__cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.65rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 0.9rem;
    color: rgba(16, 24, 40, 0.85);
}

/* =====================
   Contact
   ===================== */

.contact-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 1.25rem 0 2rem;
}

@media (min-width: 900px) {
    .contact-card {
        grid-template-columns: 1fr 1.2fr;
        align-items: start;
    }
}

.contact-card__brand,
.contact-card__map {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
}

.contact-card__meta div {
    margin: 0.35rem 0;
}

.contact-card__map-embed iframe {
    border-radius: 12px;
}

.bookings-embed {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin: 1rem 0;
}

.embed-fallback {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: rgba(16, 24, 40, 0.75);
}

/* WPForms spacing within our containers */
.wpforms-container {
    margin-top: 1rem;
}

/* =====================
   Blog / Posts Index and Single Post
   ===================== */

/* Force the posts list (Query Loop) into a card grid */
.blog .wp-block-post-template,
.archive .wp-block-post-template {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.blog .wp-block-post,
.archive .wp-block-post {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
}

/* Title/date/excerpt spacing */
.blog .wp-block-post-title,
.archive .wp-block-post-title {
    margin: 0 0 0.5rem;
}

.blog .wp-block-post-title a,
.archive .wp-block-post-title a {
    color: var(--text);
    text-decoration: none;
}

.blog .wp-block-post-title a:hover,
.archive .wp-block-post-title a:hover {
    text-decoration: underline;
}

.blog .wp-block-post-date,
.archive .wp-block-post-date {
    font-size: 0.85rem;
    color: rgba(16, 24, 40, 0.65);
    margin: 0 0 0.75rem;
}

.blog .wp-block-post-excerpt,
.archive .wp-block-post-excerpt {
    margin: 0 0 1rem;
}

/* Make Read more look like your themed buttons */
.blog .wp-block-read-more,
.archive .wp-block-read-more,
.blog .wp-block-post-excerpt__more-link,
.archive .wp-block-post-excerpt__more-link {
    margin-top: 0.25rem;
}

/* Single post readability */
.single .site-main .entry-content,
.single #primary .entry-content {
    max-width: 900px;
}

/* Optional: make images and embeds behave */
.entry-content iframe,
.entry-content video {
    max-width: 100%;
}

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

.site-footer {
    background: var(--brand);
    color: #ffffff;
    padding: 2rem 0;
}

.site-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
    color: #ffffff;
}

/* =====================
   Hide titles (pages only)
   ===================== */

body.page .entry-title,
body.page .wp-block-post-title {
    display: none;
}

.post-single__header { margin-bottom: 1.25rem; }
.post-single__title { margin-bottom: 0.4rem; }
.post-single__meta { font-size: 0.9rem; color: rgba(16, 24, 40, 0.65); }

.post-single__content { margin-top: 1rem; }
.post-single__content h2 { margin-top: 1.75rem; }
.post-single__content h3 { margin-top: 1.25rem; }
.post-single__content ul,
.post-single__content ol { padding-left: 1.25rem; }
.post-single__content img { border-radius: 12px; }

.post-single__footer { margin-top: 2rem; }