/* Section components reuse the tokens and controls defined in main.css. */

/* 01 — Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--color-soft); }
.hero__media { position: absolute; z-index: -2; inset: 0; }
.hero__image { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-focus-x, 50%) var(--hero-focus-y, 50%); }
.hero__overlay { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #fff 0%, #fffffff2 20%, #ffffffb8 34%, #ffffff30 49%, #ffffff00 64%); pointer-events: none; }
.hero::after { content: ""; position: absolute; z-index: -1; top: -20%; bottom: -20%; right: 8%; width: 3px; background: var(--color-brand); transform: skew(-14deg); opacity: .8; pointer-events: none; }
.hero__inner { display: flex; align-items: center; min-height: clamp(460px, 37vw, 570px); padding-block: var(--section-space); }
.hero__content { width: min(100%, 475px); }
.hero__label { margin-bottom: 16px; }
.hero__title { margin-bottom: 20px; font-size: clamp(46px, 4.6vw, 70px); }
.hero__title-text, .hero__brand { display: block; }
.hero__brand { margin-top: 0; }
.hero__brand .brand__wordmark { display: inline-block; font-size: 1.18em; }
.hero__logo { width: 205px; height: 150px; object-fit: contain; margin-block: 12px; }
.hero__description { margin: 0 0 28px; color: var(--color-ink); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.28; overflow-wrap: anywhere; }
.hero__title, .hero__label { overflow-wrap: anywhere; }
.hero__actions .button { min-width: 184px; }
.hero--without-image .hero__overlay { background: linear-gradient(120deg, #fff, var(--color-soft)); }

/* 02 — Benefits strip */
.benefits { padding: 25px 0; background: linear-gradient(180deg, #fff, var(--color-soft)); border-bottom: 1px solid #eaf0f1; }
.benefits__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 24px; padding: 0; margin: 0; list-style: none; }
.benefit { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; text-align: center; text-transform: uppercase; }
.benefit__icon { display: flex; justify-content: center; color: var(--color-muted); }
.benefit__icon .icon { width: 56px; height: 56px; stroke-width: 1.5; }
.benefit:first-child .benefit__icon { color: var(--color-brand-hover); }
.benefit__content { width: 100%; min-width: 0; }
.benefit__title { margin: 0 0 4px; font-size: clamp(16px, 1.3vw, 19px); font-weight: 400; line-height: 1.35; overflow-wrap: anywhere; }
.benefit__description { margin: 0; color: var(--color-muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
	.hero__content { width: min(100%, 430px); }
	.hero__overlay { background: linear-gradient(90deg, #fff 0%, #fffffff2 26%, #ffffffab 43%, #ffffff00 75%); }
	.benefits__list { gap: 20px 16px; }
	.benefit__icon .icon { width: 50px; height: 50px; }
}

@media (max-width: 960px) {
	.hero__inner { min-height: 470px; }
	.hero__content { width: min(100%, 400px); }
	.hero__overlay { background: linear-gradient(90deg, #fff 0%, #fffffff2 33%, #ffffffa6 53%, #ffffff00 85%); }
	.hero__actions { gap: 12px; }
	.hero__actions .button { min-width: 0; padding-inline: 18px; }
	.benefits__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

@media (max-width: 640px) {
	.hero { display: block; }
	.hero__inner { min-height: 540px; padding-block: var(--section-space); }
	.hero__content { width: 100%; }
	.hero__media { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; }
	.hero__image { object-position: var(--hero-mobile-focus-x, 75%) var(--hero-mobile-focus-y, 55%); }
	.hero__overlay { z-index: -1; background: linear-gradient(90deg, #fffffff0 0%, #ffffffd9 55%, #ffffff80 100%); }
	.hero::after { display: none; }
	.hero__title { font-size: clamp(42px, 10vw, 58px); }
	.hero__logo { width: 165px; height: 120px; }
	.hero__description { font-size: 18px; line-height: 1.4; }
	.hero__actions { align-items: stretch; }
	.hero__actions .button { flex: 1 1 180px; padding-inline: 14px; }
	.hero--without-image { background: #fff; }
	.benefits__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
	.benefit { gap: 12px; }
	.benefit__title { font-size: 16px; }
	.benefit__description { font-size: 12px; }
}

@media (max-width: 380px) {
	.benefits__list { grid-template-columns: 1fr; }
	.hero__label { font-size: 15px; letter-spacing: 1px; }
	.hero__actions .button { flex-basis: 100%; }
}

/* 03 — Philosophy: text and an angled edge-to-edge photo. */
.philosophy { overflow: hidden; background: var(--color-soft); }
.philosophy__grid { display: grid; width: auto; margin-left: max(var(--page-gutter), calc((100% - var(--container-width)) / 2)); margin-right: 0; grid-template-columns: 52% 48%; min-height: 440px; }
.philosophy__content { align-self: center; min-width: 0; padding: var(--section-space) 30px var(--section-space) 0; }
.philosophy__content .section-description { max-width: 70ch; }
.philosophy__link { margin-top: 24px; }
.philosophy__media { position: relative; min-height: 440px; clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%); }
.philosophy__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--image-focus-x, 60%) var(--image-focus-y, 50%); }
.philosophy--without-image .philosophy__grid { width: min(var(--container-width), 100% - var(--page-gutter) * 2); margin-inline: auto; grid-template-columns: 1fr; min-height: 0; }
.philosophy--without-image .philosophy__content { width: 100%; margin-inline: 0; padding-inline: 0; }

/* 04 — Why Uone */
.why-uone { background: #fff; }

/* 05 — Applications */
.applications { background: var(--color-soft); }
.applications .heading--section { font-size: clamp(30px, 3vw, 46px); }

@media (max-width: 960px) {
	.philosophy__content { padding-right: 24px; }
}

@media (max-width: 768px) {
	.philosophy__grid { grid-template-columns: 1fr; }
	.philosophy__content { padding-inline: 0 var(--page-gutter); }
	.philosophy__media { margin-left: calc(-1 * var(--page-gutter)); min-height: 0; height: clamp(280px, 56vw, 420px); clip-path: none; }
	.philosophy__content .section-description { max-width: 70ch; }
}

/* 06 — Service */
.service { position: relative; isolation: isolate; overflow: hidden; background: var(--color-footer); color: #fff; }
.service__media { position: absolute; z-index: -2; inset: 0; }
.service__image { width: 100%; height: 100%; object-fit: cover; object-position: var(--image-focus-x, 70%) var(--image-focus-y, 50%); }
.service::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #091417f5 0%, #091417d9 32%, #09141780 55%, #09141726 100%); }
.service .section-label { color: var(--color-brand); }
.service__content { max-width: 580px; }
.service .heading--section { font-size: clamp(30px, 3.2vw, 48px); margin-bottom: 14px; }
.service .section-description { color: #e0e6e7; font-size: clamp(16px, 1.25vw, 18px); }
.service__bottom { display: flex; align-items: center; gap: clamp(24px, 4vw, 64px); margin-top: 28px; }
.service__action { flex-shrink: 0; }
.service__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; flex: 1; margin: 0; padding: 0; list-style: none; }
.service-item { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.service-item__icon { flex-shrink: 0; width: 34px; height: 34px; }

/* 07 — Trust */
.trust { background: #fff; }
.trust__grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(32px, 6vw, 88px); }
.trust__grid > * { min-width: 0; }
.trust .heading--section { font-size: clamp(28px, 2.8vw, 42px); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 0; margin: 30px 0 0; }
.stat { display: flex; flex-direction: column; min-width: 0; padding-inline: 20px; border-left: 1px solid var(--color-border); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__value { order: -1; margin: 0 0 4px; font-size: clamp(24px, 2.3vw, 34px); font-weight: 750; line-height: 1.1; letter-spacing: -.03em; overflow-wrap: anywhere; }
.stat__label { color: var(--color-muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.testimonial { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 14px; margin: 0; }
.testimonial + .testimonial { margin-top: 28px; }
.testimonials--enhanced .testimonials__list { display: grid; }
.testimonials--enhanced .testimonial { grid-area: 1 / 1; align-self: start; margin-top: 0; opacity: 1; visibility: visible; transition: opacity 350ms ease, visibility 0s; }
/* All slides contribute to the same row height, keeping controls stationary. */
.testimonials--enhanced .testimonial[hidden] { display: grid !important; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 350ms ease, visibility 0s 350ms; }
.testimonial[hidden], .testimonials__controls[hidden] { display: none; }
.testimonial__mark { color: var(--color-brand); font-size: 64px; font-weight: 700; line-height: 1; }
.testimonial__quote { margin: 0; color: var(--color-muted); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.5; overflow-wrap: anywhere; }
.testimonial__quote p { margin: 0; }
.testimonial__caption { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.testimonial__author { font-size: 14px; font-weight: 700; line-height: 1.2; transform: translateY(.12em); overflow-wrap: anywhere; }
.testimonial__rating { display: inline-flex; align-items: center; gap: 3px; color: var(--color-brand); }
.testimonial__rating .icon { width: 18px; height: 18px; fill: currentColor; stroke-width: 1; }
.testimonials__controls { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.testimonials__controls .icon-button { background: #fff; border: 1px solid var(--color-border); border-radius: 50%; }
.testimonials__controls .icon-button:hover { background: var(--color-soft); }
.testimonials__previous .icon { transform: rotate(180deg); }

@media (max-width: 1100px) {
 .service__bottom { flex-wrap: wrap; }
 .service__list { flex-basis: 100%; }
 .trust__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
 .stat { padding-inline: 12px; }
}
@media (max-width: 768px) {
 .service__content { max-width: 520px; }
 .service__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .service-item { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
 .service::before { background: linear-gradient(90deg, #091417f5, #091417b8); }
 .trust__grid { grid-template-columns: 1fr; }
 .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; gap: 24px; }
 .stat { padding-inline: 0; border-left: 0; text-align: center; }
 .testimonials { max-width: 620px; }
}
@media (max-width: 540px) {
 .service__list { gap: 24px; }
 .service-item { font-size: 13px; gap: 10px; }
 .service-item__icon { width: 30px; height: 30px; }
}

/* 08 — Blog */
.blog-section { background: #fff; }
.blog-section__heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 28px; }
.blog-section__heading .heading { margin-bottom: 0; font-size: clamp(28px, 2.8vw, 42px); }
.blog-section__heading > .text-link { flex-shrink: 0; }

/* 09 — Contact */
.contact-section { position: relative; isolation: isolate; overflow: hidden; background: var(--color-soft); }
.contact-section__media { position: absolute; z-index: -2; inset: 0; }
.contact-section__image { width: 100%; height: 100%; object-fit: cover; object-position: var(--image-focus-x, 70%) var(--image-focus-y, 50%); }
.contact-section::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #fffffff5 0%, #fffffff0 32%, #ffffffb8 48%, #ffffff00 80%); }
.contact-section__content { max-width: 620px; }
.contact-section .heading--section { font-size: clamp(28px, 2.8vw, 42px); margin-bottom: 14px; }
.contact-section__actions { margin-top: 24px; }
@media (max-width: 768px) { .blog-section__heading { flex-direction: column; align-items: flex-start; } }
@media (max-width: 640px) {
 .contact-section::before { background: #ffffffd9; }
 .contact-section__actions { align-items: stretch; }
 .contact-section__actions .button { flex: 1 1 190px; }
}

@media (width < 500px) {
 .service__list, .stats { grid-template-columns: 1fr; }
}
