/* Inner Pages — HTML5 Layout & Responsive UI */

.page-hero__inner { padding: 48px 0; }
.page-hero--with-image .page-hero__inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: center;
}
.page-hero__figure {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    line-height: 0;
}
.page-hero__figure img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.page-hero__desc { font-size: 17px; max-width: 640px; line-height: 1.7; margin-top: 12px; }
.page-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
    list-style: none;
}
.page-hero__meta li {
    font-size: 13px;
    padding: 6px 14px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 20px;
    color: var(--gray-900);
}

/* Page layout shell */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}
.page-main { min-width: 0; }
.page-aside { position: sticky; top: calc(var(--header-height) + 16px); }

/* Content prose */
.content-prose { max-width: 720px; }
.content-prose .lead {
    font-size: 18px;
    line-height: 1.75;
    color: var(--gray-700);
    margin-bottom: 20px;
    font-weight: 500;
}
.content-prose p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 16px;
}

/* Intro band */
.page-intro {
    background: var(--yellow-light);
    border-left: 4px solid var(--red);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 20px 24px;
    margin-bottom: 36px;
}
.page-intro p {
    font-size: 15px;
    color: var(--gray-900);
    line-height: 1.7;
    margin: 0;
}

/* Cards grid */
.card-grid {
    display: grid;
    gap: 24px;
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.info-box {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 28px;
    height: 100%;
    transition: box-shadow var(--transition), border-color var(--transition);
}
.info-box:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--red);
}
.info-box__icon {
    width: 52px;
    height: 52px;
    background: var(--yellow-light);
    color: var(--red);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.info-box h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}
.info-box p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.65;
    margin: 0;
}

/* Mission / Vision */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 40px 0;
}
.mv-card {
    background: var(--yellow);
    color: var(--black);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(0,0,0,.08);
}
.mv-card h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red);
    opacity: 1;
    margin-bottom: 12px;
}
.mv-card p {
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

/* Timeline */
.company-timeline {
    position: relative;
    padding-left: 32px;
    margin: 40px 0;
}
.company-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--yellow-light);
}
.timeline-entry {
    position: relative;
    padding-bottom: 32px;
}
.timeline-entry:last-child { padding-bottom: 0; }
.timeline-entry::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: var(--red);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--red);
}
.timeline-entry__year {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
    background: var(--yellow-light);
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
}
.timeline-entry h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.timeline-entry p {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.65;
    margin: 0;
}

/* Service detail cards */
.service-detail-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 280px 1fr auto;
    gap: 0;
}
.service-detail-card__media {
    margin: 0;
    line-height: 0;
    min-height: 100%;
}
.service-detail-card__media img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}
.service-detail-card__body { padding: 32px; }
.service-detail-card__aside {
    background: var(--gray-100);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 180px;
    border-left: 1px solid var(--gray-300);
}
.service-detail-card__badge {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}
.service-detail-card h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}
.service-detail-card__desc {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 16px;
}
.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}
.feature-list li {
    font-size: 14px;
    color: var(--gray-900);
    padding-left: 22px;
    position: relative;
}
.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: 700;
}
.service-detail-card__price {
    font-size: 15px;
    font-weight: 700;
    color: var(--red);
    text-align: center;
}

/* Aside widgets */
.aside-widget {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}
.aside-widget h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--yellow-light);
}
.aside-widget ul { list-style: none; }
.aside-widget li {
    font-size: 14px;
    color: var(--gray-700);
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    line-height: 1.5;
}
.aside-widget li:last-child { border-bottom: none; }
.aside-widget--highlight {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}
.aside-widget--highlight h3 { color: var(--white); border-bottom-color: rgba(255,255,255,.2); }
.aside-widget--highlight p,
.aside-widget--highlight li { color: rgba(255,255,255,.9); }
.aside-widget--highlight a { color: var(--white); text-decoration: underline; }
.aside-widget--highlight .btn--white {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
}
.aside-widget--highlight .btn--white:hover {
    background: var(--yellow-light);
    color: var(--red-dark);
    border-color: var(--yellow-light);
}

/* Tips list */
.tips-list { list-style: none; }
.tips-list li {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
}
.tips-list li::before {
    content: '→';
    color: var(--red);
    font-weight: 700;
    flex-shrink: 0;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 48px;
    color: var(--yellow-light);
    font-weight: 800;
    line-height: 1;
}
.testimonial-card p {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}
.testimonial-card cite {
    font-style: normal;
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}
.testimonial-card cite span {
    display: block;
    font-weight: 400;
    color: var(--gray-500);
    font-size: 13px;
}

/* Legal / prose pages */
.legal-content { max-width: 800px; }
.legal-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--red);
    margin: 32px 0 12px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 16px;
}
.legal-meta {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-300);
}

/* Form card wrapper */
.form-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

/* Area tags */
.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.area-tag {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--red);
    color: var(--red);
    border-radius: 20px;
}

/* Section divider */
.section-block { margin-bottom: 56px; }
.section-block:last-child { margin-bottom: 0; }
.section-block__head {
    margin-bottom: 28px;
}
.section-block__head h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    color: var(--black);
    margin-bottom: 8px;
}
.section-block__head p {
    font-size: 15px;
    color: var(--gray-700);
    max-width: 600px;
}

@media (max-width: 1024px) {
    .page-layout { grid-template-columns: 1fr; }
    .page-aside { position: static; }
    .card-grid--3, .card-grid--4, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .service-detail-card { grid-template-columns: 1fr; }
    .service-detail-card__media img { min-height: 200px; max-height: 260px; }
    .service-detail-card__aside {
        border-left: none;
        border-top: 1px solid var(--gray-300);
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
    }
    .mv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .page-hero__inner { padding: 36px 0; }
    .page-hero--with-image .page-hero__inner { grid-template-columns: 1fr; }
    .page-hero__figure img { height: 220px; }
    .card-grid--2, .card-grid--3, .card-grid--4, .testimonials-grid { grid-template-columns: 1fr; }
    .feature-list { grid-template-columns: 1fr; }
    .form-card { padding: 24px 20px; }
}

.location-card__desc {
    font-size: 13px;
    color: var(--gray-700);
    line-height: 1.55;
    margin-bottom: 12px;
}
.quote-service-card__price small {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
}
.contact-layout .page-main { order: 1; }
.contact-layout .page-aside { order: 0; }
@media (max-width: 1024px) {
    .contact-layout .page-main { order: 0; }
    .contact-layout .page-aside { order: 1; }
}

/* News / announcements */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-md); }
.news-card--alert { border-left: 4px solid var(--red); }
.news-card__link {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
    color: inherit;
}
.news-card__link:hover { color: inherit; }
.news-card__media { margin: 0; line-height: 0; }
.news-card__media img { width: 100%; height: 100%; min-height: 130px; object-fit: cover; }
.news-card__body { padding: 20px 24px; }
.news-card__body time {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 6px;
}
.news-card__body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--black); }
.news-card__body p { font-size: 14px; color: var(--gray-700); line-height: 1.6; margin-bottom: 10px; }
.news-card__more { font-size: 14px; font-weight: 600; color: var(--red); }
.news-card__date { display: block; font-size: 12px; color: var(--gray-500); margin-bottom: 6px; }
.article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-300);
}
@media (max-width: 768px) {
    .news-card__link { grid-template-columns: 1fr; }
    .news-card__media img { min-height: 180px; }
}
