/*
 * SoftGlaze shared stylesheet
 *
 * Rules lifted out of the per-template <style> blocks. Two conditions had to hold
 * for a rule to be here: every template that defined it agreed on the value, and
 * its selector matches nothing on the templates that did not define it.
 *
 * RULE ORDER IS SIGNIFICANT AND IS PRESERVED FROM THE SOURCE TEMPLATES. Several
 * pairs here have equal specificity, for example .sg-nav-pills a against
 * .softglaze-legal-page a, so whichever comes last wins. Do not sort this file.
 *
 * Deliberately not here: :root tokens, .sg-hero, .sg-container, .sg-section,
 * .sg-title, .sg-eyebrow. Those genuinely disagree between templates and are
 * reconciled against the homepage as a separate, visible change.
 */

body.softglaze-legal-page {
    margin:0;
    font-family:'Miranda Sans', sans-serif;
    background:var(--sg-soft);
    color:var(--sg-text);
}
.softglaze-legal-page * {
    box-sizing:border-box;
}
.softglaze-legal-page a {
    color:var(--sg-primary);
    text-decoration:none;
}
.softglaze-legal-page img {
    max-width:100%;
    display:block;
}
.sg-wrap {
    overflow:clip;
}
.sg-container {
    width:min(var(--sg-container), calc(100% - 40px));
    margin:0 auto;
}
.sg-hero-inner {
    position:relative;
    z-index:2;
    max-width:860px;
    margin:0 auto;
}
.sg-subintro {
    background:var(--sg-white);
    border-bottom:1px solid var(--sg-border);
}
.sg-subintro-inner {
    padding:26px 0;
}
.sg-subintro p {
    margin:0;
    max-width:980px;
    font-size:16px;
    line-height:1.9;
    color:var(--sg-text);
}
.sg-subintro strong {
    color:var(--sg-dark);
}
.sg-nav-wrap {
    position:-webkit-sticky;
    position:sticky;
    top:var(--sg-sticky-top);
    z-index:999;
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(14px);
    border-bottom:1px solid var(--sg-border);
    box-shadow:0 6px 20px rgba(11,34,61,.05);
}
.sg-nav-inner {
    padding:14px 0;
}
.sg-nav-heading {
    margin:0 0 10px;
    font-size:13px;
    line-height:1.2;
    font-weight:800;
    letter-spacing:.10em;
    text-transform:uppercase;
    color:var(--sg-primary);
}
.sg-nav-pills {
    display:flex;
    flex-wrap:nowrap;
    gap:10px;
    overflow-x:auto;
    scrollbar-width:thin;
    padding-bottom:2px;
}
.sg-nav-pills a {
    white-space:nowrap;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:11px 14px;
    border-radius:8px;
    background:linear-gradient(180deg,#FFFFFF 0%,#F7FAFD 100%);
    border:1px solid #DDE8F3;
    color:var(--sg-text);
    font-size:13px;
    font-weight:700;
    line-height:1;
    transition:.2s ease;
    box-shadow:0 4px 10px rgba(2,72,140,.03);
}
.sg-nav-pills a:hover {
    background:#EEF5FC;
    color:var(--sg-primary);
    border-color:#C8DDF0;
    transform:translateY(-1px);
}
.sg-content {
    background:transparent;
    border:none;
    box-shadow:none;
}
.sg-meta {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
    margin-bottom:20px;
}
.sg-meta-card {
    background:var(--sg-white);
    border:1px solid var(--sg-border);
    border-radius:10px;
    padding:18px;
    box-shadow:var(--sg-shadow-soft);
}
.sg-meta-card small {
    display:block;
    margin-bottom:6px;
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--sg-primary-2);
}
.sg-meta-card strong {
    display:block;
    font-size:16px;
    line-height:1.5;
    color:var(--sg-dark);
    font-weight:700;
}
.sg-block {
    scroll-margin-top:var(--sg-anchor-offset);
    background:rgba(255,255,255,.92);
    border:1px solid var(--sg-border-2);
    border-radius:10px;
    padding:26px 24px;
    margin-bottom:18px;
    box-shadow:var(--sg-shadow-soft);
}
.sg-block h2 {
    margin:0 0 16px;
    font-size:28px;
    line-height:1.15;
    letter-spacing:-.02em;
    color:var(--sg-dark);
    font-weight:800;
}
.sg-block h3 {
    margin:20px 0 10px;
    font-size:19px;
    line-height:1.25;
    color:var(--sg-primary);
    font-weight:700;
}
.sg-block p {
    margin:0 0 14px;
    font-size:16px;
    line-height:1.9;
    color:var(--sg-text);
}
.sg-block p:last-child {
    margin-bottom:0;
}
.sg-list {
    list-style:none;
    margin:0 0 14px;
    padding:0;
    display:grid;
    gap:10px;
}
.sg-location-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    margin-top:12px;
}
.sg-location-card {
    padding:18px;
    border-radius:10px;
    border:1px solid #D8E4F0;
    background:linear-gradient(180deg,#FFFFFF 0%,#F8FBFE 100%);
    box-shadow:var(--sg-shadow-soft);
    position:relative;
    overflow:hidden;
}
.sg-location-card::before {
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:3px;
    background:linear-gradient(90deg,var(--sg-primary),var(--sg-primary-3));
}
.sg-location-card h4 {
    margin:0 0 10px;
    font-size:17px;
    line-height:1.2;
    color:var(--sg-dark);
    font-weight:800;
}
.sg-location-card p {
    margin:0;
    font-size:15px;
    line-height:1.8;
    color:var(--sg-text);
}
.sg-contact-card-top {
    padding:20px 20px 16px;
    background:linear-gradient(135deg, rgba(2,72,140,.08) 0%, rgba(21,138,203,.08) 100%);
    border-bottom:1px solid #DCE8F3;
}
.sg-contact-card-top h3 {
    margin:0 0 6px;
    font-size:22px;
    line-height:1.2;
    color:var(--sg-dark);
    font-weight:800;
}
.sg-contact-card-top p {
    margin:0;
    font-size:15px;
    line-height:1.8;
    color:var(--sg-text);
}
.sg-contact-card-body {
    padding:20px;
}
.sg-contact-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}
.sg-contact-mini {
    padding:16px;
    border:1px solid #DCE8F3;
    border-radius:10px;
    background:#FFFFFF;
}
.sg-contact-mini h4 {
    margin:0 0 8px;
    font-size:16px;
    line-height:1.2;
    color:var(--sg-dark);
    font-weight:800;
}
.sg-contact-mini p {
    margin:0;
    font-size:15px;
    line-height:1.8;
    color:var(--sg-text);
}
.sg-linkline {
    display:flex;
    flex-wrap:wrap;
    gap:12px 18px;
    margin:10px 0 0;
}
.sg-linkchip {
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 14px;
    border-radius:8px;
    background:#F4F9FF;
    border:1px solid #D8E6F3;
    color:var(--sg-primary);
    font-size:14px;
    font-weight:700;
    line-height:1;
    box-shadow:0 4px 12px rgba(2,72,140,.04);
}
.sg-linkchip:hover {
    background:#EAF4FE;
    border-color:#C6DDEF;
}
.sg-linkchip svg {
    width:15px;
    height:15px;
    flex:0 0 15px;
}

@media (max-width: 991px) {
    .sg-location-grid, .sg-contact-grid {
        grid-template-columns:1fr;
    }
}

@media (max-width: 767px) {
    .sg-meta {
        grid-template-columns:1fr;
    }
    .sg-nav-heading {
        margin-bottom:8px;
        font-size:12px;
    }
    .sg-nav-pills a {
        padding:10px 12px;
        font-size:12px;
        border-radius:7px;
    }
}
.sg-service-page {
    font-family: var(--sg-font-stack);
    color: var(--sg-text-body);
    background-color: var(--sg-bg-white);
    line-height: 1.8;
    overflow-x: clip;
}
.sg-service-page h1, .sg-service-page h2, .sg-service-page h3, .sg-service-page h4 {
    color: var(--sg-blue-primary);
    font-weight: 800;
    margin-top: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.sg-highlight {
    color: var(--sg-brand-blue);
    font-weight: 700;
}
.sg-eyebrow-dark {
    background: rgba(255,255,255,0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.2);
}
.sg-btn-outline-dark {
    background-color: transparent;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: none;
}
.sg-btn-outline-dark:hover {
    background-color: #FFFFFF;
    color: var(--sg-blue-primary) !important;
    border-color: #FFFFFF;
}
.sg-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sg-multi-col-list {
    column-count: 2;
    column-gap: 40px;
}
.sg-split-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--sg-radius);
    overflow: hidden;
    box-shadow: var(--sg-shadow-hover);
    border: 1px solid var(--sg-border-color);
}
.sg-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 32px 0;
}
.sg-pill {
    background: var(--sg-bg-white);
    border: 1px solid var(--sg-border-color);
    color: var(--sg-blue-primary);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: var(--sg-shadow);
    transition: all 0.3s ease;
}
.sg-pill:hover {
    background: var(--sg-brand-blue);
    color: #fff;
    border-color: var(--sg-brand-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(20, 142, 207, 0.3);
}
.sg-feature-card {
    background: var(--sg-bg-white);
    border-top: 4px solid var(--sg-brand-blue);
    padding: 40px;
    border-radius: var(--sg-radius);
    box-shadow: var(--sg-shadow);
    transition: transform 0.3s ease;
    height: 100%;
}
.sg-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sg-shadow-hover);
    border-color: var(--sg-blue-primary);
}
.sg-feature-icon {
    width: 56px;
    height: 56px;
    background: var(--sg-blue-soft);
    color: var(--sg-brand-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid var(--sg-border-color);
}
.sg-feature-icon svg {
    width: 28px;
    height: 28px;
}
.sg-feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}
.sg-feature-card p {
    font-size: 15px;
    margin: 0;
}
.sg-process-wrap {
    position: relative;
    max-width: 900px;
    margin: 64px auto 0;
    padding: 40px 0;
}
.sg-process-line {
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--sg-border-color);
    z-index: 1;
}
.sg-process-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 80px;
    background: var(--sg-bg-white);
    border: 2px solid var(--sg-brand-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sg-brand-blue);
    box-shadow: 0 0 0 8px var(--sg-bg-white);
    transition: all 0.4s ease;
}
.sg-process-marker svg {
    width: 32px;
    height: 32px;
}
.sg-process-step:hover .sg-process-marker {
    background: var(--sg-brand-blue);
    color: #fff;
    transform: scale(1.05);
}
.sg-process-content {
    background: var(--sg-bg-white);
    border: 1px solid var(--sg-border-color);
    border-radius: var(--sg-radius);
    padding: 40px;
    box-shadow: var(--sg-shadow);
    transition: transform 0.4s ease;
}
.sg-process-content:hover {
    transform: translateY(-5px);
    border-color: var(--sg-brand-blue);
    box-shadow: var(--sg-shadow-hover);
}
.sg-process-content h3 {
    font-size: 24px;
    margin-bottom: 16px;
}
.sg-process-content p {
    margin: 0;
    font-size: 16px;
}
.sg-accordion-wrapper {
    max-width: 800px;
    margin: 48px auto 0;
}
.sg-accordion-item {
    background: var(--sg-bg-white);
    border: 1px solid var(--sg-border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: var(--sg-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}
.sg-accordion-item:hover {
    border-color: rgba(20, 142, 207, 0.5);
    box-shadow: var(--sg-shadow-hover);
}
.sg-accordion-item.active {
    border-color: var(--sg-brand-blue);
}
.sg-accordion-header {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 24px;
    font-family: var(--sg-font-stack);
    font-size: 18px;
    font-weight: 700;
    color: var(--sg-blue-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    transition: color 0.3s ease;
}
.sg-accordion-item:hover .sg-accordion-header {
    color: var(--sg-brand-blue);
}
.sg-accordion-icon {
    color: var(--sg-brand-blue);
    font-size: 24px;
    transition: transform 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--sg-blue-soft);
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 16px;
}
.sg-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--sg-bg-white);
}
.sg-accordion-inner {
    padding: 0 24px 24px 24px;
}
.sg-accordion-body p {
    margin: 0;
    color: var(--sg-text-body);
    font-size: 16px;
    line-height: 1.7;
}
.sg-accordion-item.active .sg-accordion-icon {
    transform: rotate(45deg);
    background: var(--sg-brand-blue);
    color: #fff;
}
.sg-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .sg-split-panel {
        grid-template-columns: 1fr;
    }
    .sg-multi-col-list {
        column-count: 1;
    }
}

@media (max-width: 768px) {
    .sg-process-wrap {
        padding: 0;
        margin-top: 40px;
    }
    .sg-process-line {
        display: none;
    }
    .sg-process-marker {
        position: relative;
        margin-bottom: 24px;
        box-shadow: none;
    }
    .sg-process-content {
        padding: 32px 24px;
    }
}
.sg-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.sg-tab-content.active {
    display: block;
}
.sg-featured-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--sg-radius);
    box-shadow: var(--sg-shadow-hover);
}
.sg-skip-link:focus {
    left: 8px;
    top: 8px;
}
