/* css/layout.css - Grid and Structural Layouts */

/* BRANDS */
.brands-section {
    padding: 52px 6vw;
    border-bottom: 1px solid var(--border);
}

.brands-row {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.brands-row img {
    height: 26px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.4);
    transition: 0.3s;
}

.brands-row img:hover {
    filter: grayscale(0) opacity(1);
}

/* GRID LAYOUTS */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    z-index: 1;
    margin-top: 24px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

.cert-box {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0px 22px;
    margin-top: 22px;
}

.cert-box img {
    height: 105px;
}

.platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 52px;
}

.stone-section {
    padding: 72px 6vw;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.stone-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.stone-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--text-primary);
}

.stone-pill i {
    color: var(--blue);
    font-size: 0.78rem;
}

.stone-badge {
    display: flex;
    justify-content: flex-end;
}

.stone-badge img {
    width: 168px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
    margin-top: 48px;
}

.contact-info h3 {
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: var(--blue);
}

.citem {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}

.citem a {
    color: var(--text-primary);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.citem a:hover {
    opacity: 1;
    color: var(--blue);
}

.cion {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: rgba(5, 86, 243, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 12px;
    max-width: 260px;
    color: var(--text-secondary);
}

.footer-brand img {
    height: 32px;
}

.fbot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Subpages */
.sph {
    padding: 138px 6vw 68px;
    background: var(--bg-secondary);
}

.sph h1 {
    font-family: 'Oxanium', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.sph p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.7;
}

.sol-cards {
    padding: 52px 6vw 92px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.scard {
    border-radius: 20px;
    border: 1px solid var(--border);
    /*padding: 36px 28px;*/
    background: #fff;
    cursor: none;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.scard::after {
    content: '→';
    position: absolute;
    right: 24px;
    bottom: 24px;
    font-size: 1.05rem;
    color: var(--blue);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s, transform 0.3s;
}

.scard:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue);
}

.scard:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.scard:hover .sicon {
    background: var(--blue);
    color: #fff;
    transform: scale(1.08);
}

.scard-img {
    /*height: 200px;*/
	max-height: 260px;
    width: 100%;
    /*margin: -36px -28px 24px -28px;*/
    width: calc(100% + 56px);
    overflow: hidden;
    position: relative;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
}

.scard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /*padding: 24px;*/
    transition: transform 0.5s ease;
}

.scard:hover .scard-img img {
    transform: scale(1.05);
}

.sicon {
    width: 56px;
    height: 56px;
    background: rgba(5, 86, 243, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--blue);
    margin-bottom: 24px;
    transition: background 0.3s, transform 0.3s, color 0.3s;
}

.scard h3 {
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    margin: 12px;
}

.scard p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 12px;
}

/* Detail Pages */
.pdetail {
    padding-top: 80px;
}

/* Device Page Hero Sections */
.device-hero {
    position: relative;
    min-height: calc(90svh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    clip-path: ellipse(100% 95% at 50% 0%);
    padding: 80px 24px;
    z-index: 1;
    margin-top: 0px;
    padding-top: 160px;
}

.device-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 16, 28, 0.4) 0%, rgba(8, 16, 28, 0.85) 100%);
    z-index: 2;
}

@media screen and (max-width: 768px) {
	.device-hero {
		display: flex;
		margin-left: inherit;
		background-attachment: initial;
		background-position: top;
	}
	
	.stone-pills{
	flex-direction: column; /* Alinha os itens em coluna */
	    align-items: flex-start;
	}
}

.device-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
}

.device-hero h1 {
    font-family: 'Oxanium', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #ffffff;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.device-hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.bg-vending {
    background-image: url('https://cdn.gmsi.net.br/site/vending_3.webp');
}

.bg-grua {
    background-image: url('https://cdn.gmsi.net.br/site/grua_2.webp');
}

.bg-lavanderia {
    background-image: url('https://cdn.gmsi.net.br/site/lavanderia_1.webp');
}
.bg-cafeteira {
    background-image: url('https://cdn.gmsi.net.br/site/fundo_cafeteiras_2.webp');
}

.bg-personalize {
    background-image: url('https://cdn.gmsi.net.br/site/personalize_1.webp');
}

.phero {
    padding: 68px 6vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 68px;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-secondary) 60%, rgba(5, 86, 243, 0.04));
}

.phimg {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 240px;
}

.phimg img {
    max-width: 320px;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 28px 56px rgba(5, 86, 243, 0.18));
}

.pbadge {
    display: inline-block;
    background: rgba(5, 86, 243, 0.1);
    color: var(--blue);
    font-family: 'Oxanium', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.ptext h1 {
    font-family: 'Oxanium', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.1;
}

.ptext p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 26px;
    font-size: 1.1rem;
}

.pspecs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.spec {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: var(--shadow-sm);
}

.spec-l {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-family: 'Oxanium', sans-serif;
}

.spec-v {
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* About / VGrid */
.apgh {
    padding: 138px 6vw 68px;
    text-align: center;
}

.apgh h1 {
    font-family: 'Oxanium', sans-serif;
    font-weight: 800;
    font-size: clamp(2.3rem, 5vw, 4rem);
    margin: 10px auto 16px;
    max-width: 720px;
    color: var(--text-primary);
}

.apgh p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 580px;
    margin: 0 auto 44px;
    line-height: 1.8;
}

.vgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 6vw 92px;
}

.vcard {
    padding: 42px 32px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.vcard:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.vnum {
    font-family: 'Oxanium', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(5, 86, 243, 0.08);
    margin-bottom: 8px;
    line-height: 1;
}

.vcard h4 {
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.vcard p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Personalize Hero */
.pers-hero {
    padding: 68px 6vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 68px;
    align-items: center;
    background: var(--bg-secondary);
}

.pers-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 240px;
}

.pers-icon i {
    font-size: 8rem;
    color: var(--blue);
    opacity: 0.8;
}

/* Responsive Grid Adjustments */
@media(max-width: 880px) {

    .why-grid,
    .about-grid,
    .contact-grid,
    .platform-grid,
    .footer-grid,
    .sol-cards,
    .vgrid,
    .phero,
    .stone-section,
    .pers-hero {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .frow {
        grid-template-columns: 1fr;
    }

    .stone-badge,
    .about-visual {
        display: none;
    }
}

@media(min-width: 881px) {
    .sol-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 1280px) {
    .sol-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(min-width: 1600px) {
    .sol-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* LEGAL PAGES */
.legal-container {
    /*max-width: 900px;*/
    margin: 48px auto 0;
    text-align: left;
}

.legal-text {
    color: var(--text-primary);
    line-height: 1.8;
}

.legal-text h3.seccao-title {
    color: var(--blue);
    margin: 48px 0 20px;
    font-family: 'Oxanium', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
}

.legal-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.legal-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-summary {
    margin-bottom: 48px;
    color: var(--text-secondary);
    margin-left: 24px;
    list-style-type: decimal;
}

.legal-summary li {
    margin-bottom: 10px;
}

.legal-list {
    margin-left: 24px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.legal-list li {
    margin-bottom: 12px;
}

@media(max-width: 880px) {
    .legal-container {
        margin-top: 32px;
    }
}

.legal-hero {
    min-height: 100vh;
    padding-top: 138px !important;
}

.legal-cta {
    padding: 100px 0 !important;
}