/* Additions on top of the existing design (same colours: #fdbe34 yellow, #565759 grey, Roboto). */
:root { --erad-yellow: #fdbe34; --erad-yellow-dark: #e5a91f; --erad-grey: #565759; --erad-text: #4d4d4d; }

/* Buttons */
.btn-quote { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--erad-yellow); color: #fff !important; font-weight: 700; font-size: .95rem; letter-spacing: .02em; text-decoration: none; padding: 10px 20px; border: 0; border-radius: 4px; cursor: pointer; transition: background .2s; white-space: nowrap; }
.btn-quote:hover, .btn-quote:focus-visible { background: var(--erad-yellow-dark); color: #fff !important; }
.btn-quote.wide { width: 100%; padding: 14px 20px; font-size: 1rem; }
.btn-quote[disabled] { opacity: .65; cursor: progress; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; color: var(--erad-text); border: 1px solid #c9c9c9; border-radius: 4px; padding: 10px 18px; text-decoration: none; font-weight: 500; white-space: nowrap; }
.btn-outline:hover { border-color: var(--erad-yellow); color: var(--erad-yellow); }
.tel .btn-quote { font-size: .85rem; padding: 8px 16px; }

/* Project cards: clear photo, dark fade at the bottom, white text (was a white haze with black text). */
.photo-grid-item img { opacity: 1; }
.photo-grid > a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 5px; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%); pointer-events: none; }
.photo-grid > a:before { background: rgba(0, 0, 0, .2); }
.photo-grid .contents { top: auto; bottom: 16px; left: 18px; right: 18px; width: auto; transform: none; text-align: left; z-index: 3; }
.photo-grid .contents h3, .photo-grid .contents .h3 { color: #fff; font-size: 1.35rem; margin: 0; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.photo-grid .contents .cat { color: var(--erad-yellow); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }

/* Trust row (home) */
.trust-row { padding: 8px 0 48px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.trust-item { padding: 22px 16px; text-align: center; }
.trust-item + .trust-item { border-left: 1px solid #eee; }
.trust-item b { display: block; color: var(--erad-yellow); font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.trust-item span { color: var(--erad-text); font-size: .9rem; }

/* Call-to-action band */
.cta-band { background: #f6f6f6; border-top: 1px solid #eee; padding: 44px 0; margin-top: 24px; }
.cta-band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--erad-text); font-size: 1.6rem; font-weight: 700; margin: 0 0 6px; }
.cta-band p { color: #777; margin: 0; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-quote { padding: 13px 26px; font-size: 1rem; }

/* Footer contact + KVKK */
.footer .copyright a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer .copyright a:hover { color: var(--erad-yellow); }

/* WhatsApp floating button */
.wa-float { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 1040; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff !important; display: flex; align-items: center; justify-content: center; font-size: 32px; box-shadow: 0 8px 24px rgba(0,0,0,.25); text-decoration: none; transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 32px; height: 32px; }

/* Quote popup */
.quote { width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 32px 32px 28px; border: 0; border-radius: 8px; background: #fff; color: var(--erad-text); box-shadow: 0 20px 60px rgba(0,0,0,.3); overflow: auto; }
.quote::backdrop { background: rgba(30, 30, 30, .55); }
.quote[open] { animation: quote-in .3s ease-out; }
.quote-x { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; background: none; border: 0; font-size: 30px; line-height: 1; color: #999; cursor: pointer; }
.quote-x:hover { color: var(--erad-text); }
.quote-title { color: var(--erad-text); font-size: 1.6rem; font-weight: 700; margin: 0 0 6px; padding-right: 30px; }
.quote-sub { color: #777; margin-bottom: 20px; }
.quote-choices { display: grid; gap: 10px; margin-bottom: 16px; }
.quote-choice { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; font-size: 1.05rem; font-weight: 500; color: var(--erad-text); background: #fff; border: 2px solid #eee; border-radius: 6px; padding: 15px 18px; cursor: pointer; transition: border-color .2s, background .2s; }
.quote-choice span { color: var(--erad-yellow); font-weight: 700; }
.quote-choice:hover, .quote-choice:focus-visible { border-color: var(--erad-yellow); background: #fffaf0; }
.quote-or { font-size: .9rem; color: #888; margin: 0; }
.quote-or a { color: var(--erad-yellow-dark); font-weight: 600; text-decoration: none; }
.quote-back { background: none; border: 0; padding: 0; color: #888; font-size: .9rem; margin-bottom: 8px; cursor: pointer; }
.quote-back:hover { color: var(--erad-text); }
@keyframes quote-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Form (popup + contact page) */
.quote-form { display: grid; gap: 12px; color: var(--erad-text); }
.quote-form .field { display: grid; gap: 4px; }
.quote-form label { font-size: .85rem; font-weight: 600; color: var(--erad-text); }
.quote-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-form input[type="text"], .quote-form input[type="tel"], .quote-form input[type="email"], .quote-form select, .quote-form textarea { width: 100%; font: inherit; font-size: 16px; color: #333; background: #fff; border: 1px solid #d6d6d6; border-radius: 4px; padding: 10px 12px; }
.quote-form textarea { min-height: 90px; resize: vertical; }
.quote-form :is(input, select, textarea):focus { outline: none; border-color: var(--erad-yellow); box-shadow: 0 0 0 3px rgba(253, 190, 52, .25); }
.quote-form .invalid { border-color: #d9534f !important; }
.quote-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .85rem; color: #666; cursor: pointer; }
.quote-form .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--erad-yellow); }
.quote-form .check.invalid span { color: #d9534f; }
.quote-form .check a { color: var(--erad-yellow-dark); }
.quote-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-size: .9rem; color: #d9534f; }
.form-msg:empty { display: none; }
.form-done { padding: 12px 0; }
.form-done h3 { color: var(--erad-yellow-dark); font-weight: 700; }
.form-done p { color: var(--erad-text); }

/* Contact page form + KVKK page */
.contact-form-section { padding: 20px 0 70px; }
.contact-form-panel { background: #f9f9f9; border: 1px solid #eee; border-radius: 8px; padding: 32px; }
.kvkk-page { padding: 60px 0 70px; }
.kvkk-text { max-width: 820px; color: var(--erad-text); }
.kvkk-text p { color: #555; }
.kvkk-h { font-size: 1.15rem; font-weight: 700; color: var(--erad-text); margin: 28px 0 8px; }
.kvkk-text a { color: var(--erad-yellow-dark); }

@media (max-width: 767px) {
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .trust-item:nth-child(odd) { border-left: 0; }
    .trust-item:nth-child(n+3) { border-top: 1px solid #eee; }
    .cta-band h2 { font-size: 1.3rem; }
    .quote-form .row2 { grid-template-columns: 1fr; }
    .contact-form-panel { padding: 20px; }
    /* Popup on phones: bottom sheet, page stays visible above it. */
    .quote { margin: auto 0 0; width: 100vw; max-width: 100vw; max-height: 88dvh; border-radius: 14px 14px 0 0; padding: 26px 18px calc(22px + env(safe-area-inset-bottom, 0px)); }
    .quote-title { font-size: 1.35rem; }
    .quote-choice { padding: 13px 14px; font-size: 1rem; }
    .wa-float { width: 54px; height: 54px; font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .quote[open] { animation: none; } }

/* Logos carry width/height attributes (no layout shift); keep the old size rule (max-height) in charge. */
.img-logo { width: auto; height: auto; max-width: 100%; }
