/* ==========================================================
   TRICE TECHNOLOGIES — HOMEPAGE CONTENT UPDATE
   Additions for the rewritten homepage.
   Loads AFTER assets/styles.css, so everything below
   only affects the new/updated homepage sections.
   ========================================================== */

/* ----------------------------------------------------------
   HERO — keyword H1 + supporting tagline
   Slide 1 carries the page H1; the promise line moves to H2.
   ---------------------------------------------------------- */
.slide-tagline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(16px, 1.75vw, 23px);
    font-weight: 500;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.94);
    max-width: 720px;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(26px);
    transition: all 0.7s var(--transition) 0.52s;
}
.slide.is-active .slide-tagline { opacity: 1; transform: translateY(0); }

/* Slide 1 carries the longest copy on the page — deepen the scrim behind
   the text zone so it stays legible over the bright laptop image. */
.slide[data-slide="0"] .slide-overlay {
    background: linear-gradient(
        100deg,
        rgba(28, 29, 34, 0.93) 0%,
        rgba(28, 29, 34, 0.85) 42%,
        rgba(28, 29, 34, 0.52) 72%,
        rgba(28, 29, 34, 0.26) 100%
    );
}

/* Shift slide 1's lower elements down to make room for the tagline */
.slide[data-slide="0"] .slide-text   { transition: all 0.7s var(--transition) 0.64s; }
.slide[data-slide="0"] .slide-actions { transition: all 0.7s var(--transition) 0.74s; }

/* ----------------------------------------------------------
   SERVICES — glyph icon for the Mobile App card
   (no .webp icon ships for this service)
   ---------------------------------------------------------- */
.service-icon--glyph i {
    font-size: 30px;
    line-height: 1;
    color: var(--accent);
    transition: transform 0.3s var(--transition);
}
.service-card:hover .service-icon--glyph i { transform: scale(1.08); }

/* ----------------------------------------------------------
   WHY CHOOSE — six reasons
   ---------------------------------------------------------- */
.why-list {
    list-style: none;
    padding: 0;
    margin: 26px 0 0;
    display: grid;
    gap: 15px;
}
.why-list li {
    position: relative;
    padding-left: 36px;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--text-2);
}
.why-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background-color: var(--accent-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d96a0d' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 13px 13px;
}
.why-list strong {
    display: block;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1px;
}
.standout-content p.why-closing {
    margin-top: 26px;
    margin-bottom: 0;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    font-weight: 700;
    color: var(--text);
}

/* ----------------------------------------------------------
   PRODUCTS — Sale App, Edu Manage, CenterOps
   ---------------------------------------------------------- */
.products { background: var(--bg); }
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px 30px 28px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s var(--transition);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}
.product-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}
.product-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.product-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-2);
    margin-bottom: 22px;
    flex: 1;
}
.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--accent-dark);
    text-decoration: none;
    transition: color 0.25s var(--transition);
}
.product-link:hover { color: var(--accent); }
.product-link span { transition: transform 0.25s var(--transition); }
.product-link:hover span { transform: translateX(4px); }

/* ----------------------------------------------------------
   FAQ — white items on the cream section
   (mirrors the pattern already used on the service pages)
   ---------------------------------------------------------- */
.faq-section { background: var(--bg); }
.faq-section .faq-item { background: var(--surface); }

/* ----------------------------------------------------------
   PROCESS — closing reassurance line
   ---------------------------------------------------------- */
.process-note {
    margin: 44px auto 0;
    max-width: 760px;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 1100px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .products-grid { grid-template-columns: 1fr; }
    .why-list li { font-size: 15px; }
}
@media (max-width: 768px) {
    /* Slide 1 now carries the keyword H1 plus a tagline, so the copy runs
       taller on a phone. Drop the arrows down beside the dots instead of
       letting them sit on top of the text. */
    .slider-arrow {
        top: auto;
        bottom: 14px;
        transform: none;
    }
    .slider-arrow:hover { transform: scale(1.06); }
}
@media (max-width: 560px) {
    .slide-tagline { font-size: 16px; }
    .product-card { padding: 26px 22px 24px; }
    .why-list li { padding-left: 32px; }
}
