/* =========================================
   株式会社KYS — Stylesheet
   ========================================= */

/* ---------- Reset ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
    color: #2a2a2a;
    line-height: 1.8;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- Variáveis ---------- */
:root {
    --primary: #4a8e2a;
    --primary-dark: #2d6019;
    --primary-light: #6bb33a;
    --accent: #9bc936;
    --dark: #2a2a2a;
    --text: #2a2a2a;
    --text-muted: #5a5a5a;
    --bg-light: #f4f7f0;
    --bg-soft: #eef3e7;
    --border: #dde3d4;
    --white: #ffffff;
    --max-width: 1200px;
}

/* ---------- Header ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    height: 72px;
}

header .container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: block;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    gap: 32px;
}

nav ul li a {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    transition: color 0.2s;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.25s ease;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a:hover::after {
    width: 100%;
}

/* ---------- Hambúrguer ---------- */
.hamburguer {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    background: transparent;
    border: none;
}

.hamburguer span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
    margin: 0 auto;
}

.hamburguer.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburguer.active span:nth-child(2) {
    opacity: 0;
}

.hamburguer.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Banner / Hero ---------- */
.banner {
    height: 500px;
    margin-top: 72px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35)),
                url("images/hero-handshake.jpg") center/cover no-repeat;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(74, 142, 42, 0.18), transparent 60%);
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
}

.inner-headings {
    height: 40px;
    margin-bottom: 10px;
    overflow: hidden;
}

.animated-text {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.18em;
    animation: fadeSlide 0.8s ease both;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.banner-title {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.banner-tagline {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.08em;
}

.banner-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-green,
.btn-transparent {
    display: inline-block;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 4px;
    transition: all 0.25s;
    border: 2px solid var(--white);
}

.btn-green {
    background: #3fb94d;
    color: var(--white);
    border-color: #3fb94d;
}

.btn-green:hover {
    background: #34a341;
    border-color: #34a341;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.btn-transparent {
    background: transparent;
    color: var(--white);
}

.btn-transparent:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ---------- Sections ---------- */
section {
    padding: 90px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

section h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 56px;
    color: var(--text);
    position: relative;
    letter-spacing: 0.08em;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ---------- Serviços ---------- */
.servicos {
    background: var(--bg-light);
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

.servicos > h2,
.servicos-container {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.servicos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.servico {
    background: var(--white);
    padding: 40px 28px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.servico:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(74, 142, 42, 0.18);
    border-color: var(--primary-light);
}

.servico .icone {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(74, 142, 42, 0.25);
}

.servico:hover .icone {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    transform: scale(1.05);
}

.servico .icone img {
    width: 36px;
    height: 36px;
    filter: brightness(0) invert(1);
}

.servico p {
    font-size: 14px;
    line-height: 1.85;
    color: var(--text-muted);
    text-align: left;
}

/* ---------- Filosofia ---------- */
.filo-corp {
    background: var(--white);
}

.filo-container {
    max-width: 900px;
    margin: 0 auto 60px;
}

.filosofia p {
    font-size: 16px;
    line-height: 2.1;
    color: var(--text);
    text-align: justify;
    text-indent: 1em;
}

.divul {
    max-width: 900px;
    margin: 50px auto 16px;
    padding: 16px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 4px;
}

.divul p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.divul p:first-child {
    font-weight: 600;
    margin-bottom: 4px;
}

/* ---------- Tabelas ---------- */
.tabela {
    max-width: 900px;
    margin: 0 auto 30px;
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-radius: 4px;
    overflow: hidden;
}

.tabela tr {
    border-bottom: 1px solid var(--border);
}

.tabela tr:last-child {
    border-bottom: none;
}

.tabela td {
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.7;
    vertical-align: top;
}

.tabela td:first-child {
    background: var(--bg-soft);
    font-weight: 600;
    color: var(--text);
    width: 35%;
    border-right: 1px solid var(--border);
}

.tabela td:last-child {
    color: var(--text-muted);
}

.tabela .txt-left td {
    text-align: left;
}

/* ---------- Sobre ---------- */
.sobre-corp {
    background: var(--bg-light);
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}

.sobre-corp > h2,
.sobre-corp .tabela {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.sobre-corp h2 {
    max-width: var(--max-width);
}

/* ---------- Contato ---------- */
.contact-corp {
    background: var(--white);
}

.contact-corp .divul {
    background: transparent;
    color: var(--text);
    text-align: center;
    margin-bottom: 50px;
}

.contact-corp .divul p {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

.container-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.coluna {
    background: var(--white);
}

.formulario {
    padding: 40px;
    background: var(--bg-light);
    border-radius: 8px;
}

.formulario form {
    display: flex;
    flex-direction: column;
}

.formulario label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    margin-top: 16px;
}

.formulario label:first-child {
    margin-top: 0;
}

.formulario input,
.formulario textarea {
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.formulario input:focus,
.formulario textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 142, 42, 0.15);
}

.formulario textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.7;
}

.formulario button {
    margin-top: 28px;
    padding: 14px 32px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.25s;
    align-self: flex-start;
}

.formulario button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 142, 42, 0.35);
}

.cinza {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mapa {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #ddd;
}

.mapa iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.cinza h3 {
    font-size: 18px;
    font-weight: 700;
    padding: 24px 28px 14px;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
    margin: 0 28px;
}

.info-list {
    padding: 20px 28px 28px;
    flex: 1;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
    color: var(--text-muted);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list .icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 4px;
    filter: brightness(0) saturate(100%) invert(45%) sepia(67%) saturate(486%) hue-rotate(56deg) brightness(85%);
}

.info-list i {
    font-style: normal;
    line-height: 1.6;
}

.info-list .fax {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-list .fax i:last-child {
    font-size: 12px;
    color: #999;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 28px 24px;
    font-size: 13px;
    letter-spacing: 0.05em;
}

/* ---------- Scroll to top ---------- */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(74, 142, 42, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(74, 142, 42, 0.55);
}

.scroll-top svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    .scroll-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ---------- Animações de scroll ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Responsivo
   ========================================= */

@media (max-width: 968px) {
    .container-form {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .banner-title {
        font-size: 48px;
    }

    .servicos-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        height: 64px;
    }

    .logo img {
        height: 38px;
    }

    .hamburguer {
        display: flex;
    }

    nav {
        position: fixed;
        top: 64px;
        right: 0;
        width: 100%;
        max-width: 320px;
        height: calc(100vh - 64px);
        background: var(--white);
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding: 30px 24px;
        overflow-y: auto;
    }

    nav.active {
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        border-bottom: 1px solid var(--border);
    }

    nav ul li a {
        display: block;
        padding: 16px 4px;
        font-size: 16px;
    }

    .banner {
        height: 420px;
        margin-top: 64px;
        padding: 24px 20px;
    }

    .banner-title {
        font-size: 38px;
    }

    .banner-tagline {
        font-size: 13px;
        margin-bottom: 22px;
    }

    .animated-text {
        font-size: 14px;
    }

    .inner-headings {
        height: 28px;
        margin-bottom: 6px;
    }

    .banner-buttons {
        gap: 10px;
    }

    .btn-green, .btn-transparent {
        padding: 10px 24px;
        font-size: 13px;
    }

    section {
        padding: 60px 20px;
    }

    section h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .servicos-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .servico {
        padding: 32px 22px;
    }

    .filosofia p {
        font-size: 15px;
        line-height: 1.95;
    }

    .tabela td {
        padding: 12px 14px;
        font-size: 13px;
    }

    .tabela td:first-child {
        width: 40%;
    }

    .formulario {
        padding: 28px 20px;
    }

    .footer {
        padding: 22px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 32px;
    }

    section h2 {
        font-size: 24px;
    }

    .tabela td {
        font-size: 12px;
        padding: 10px 12px;
    }
}
