/*
Theme Name: G2 Gastro – Wyposażenie Gastronomiczne
Theme URI: https://g2gastro.pl
Author: G2 Gastro
Description: Dedykowany, w pełni edytowalny motyw blokowy WordPress (Gutenberg / FSE) przeniesiony 1:1 z projektu Framer dla G2 – Wyposażenie Gastronomiczne (Trójmiasto).
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: g2gastro
*/

@font-face {
    font-family: "Bespoke Stencil";
    src: url("https://framerusercontent.com/third-party-assets/fontshare/wf/4GXF344C5F4FC76XVGJWCP5OZZQ2L2IY/DIGA3TKJXYOVXTGKB5ASFOEHFTLZE2SB/25FALKXSHRBOV5EKV6RVBE46DMW6TCC6.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: "Bespoke Stencil";
    src: url("https://framerusercontent.com/third-party-assets/fontshare/wf/4QLX2RSFSRHO2NW4HZ5GTIT4YPVXBUF7/S3M55ORAUN6S3SVT6IYSYWYQPFW2OBV5/Y5L6UK3BGQZ7UOZMOG5O33POYILY43LE.woff2") format("woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 500;
}

:root {
    --g2-black: #000000;
    --g2-dark: #222222;
    --g2-gray: #a6a6a6;
    --g2-white: #ffffff;
    --g2-font: "Bespoke Stencil", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--g2-white);
    color: var(--g2-black);
    font-family: var(--g2-font);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: -0.015em;
}

/* Reset WordPress Block Margins */
.wp-site-blocks,
.entry-content,
.wp-block-post-content {
    margin: 0 !important;
    padding: 0 !important;
}

.wp-site-blocks > * + *,
.wp-block-group > * + * {
    margin-block-start: 0;
}

/* Typography Presets (1:1 Framer) */
.g2-h1,
h1.wp-block-heading.g2-h1 {
    font-family: var(--g2-font);
    font-size: 68px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.04em;
    color: var(--g2-white);
    margin: 0;
    max-width: 900px;
}

.g2-h2,
h2.wp-block-heading.g2-h2 {
    font-family: var(--g2-font);
    font-size: 42px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--g2-black);
    margin: 0;
}

.g2-h2-light,
h2.wp-block-heading.g2-h2-light {
    color: var(--g2-white) !important;
}

.g2-h3,
h3.wp-block-heading.g2-h3 {
    font-family: var(--g2-font);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--g2-black);
    margin: 0;
}

.g2-h3-light,
h3.wp-block-heading.g2-h3-light {
    color: var(--g2-white) !important;
}

.g2-h3-muted,
h3.wp-block-heading.g2-h3-muted {
    color: var(--g2-gray) !important;
    text-align: center;
}

.g2-body,
p.g2-body {
    font-family: var(--g2-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -0.015em;
    color: var(--g2-black);
    margin: 0;
}

.g2-body-muted,
p.g2-body-muted {
    color: var(--g2-gray) !important;
}

.g2-label,
p.g2-label {
    font-family: var(--g2-font);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--g2-dark);
    margin: 0;
}

.g2-label-muted,
p.g2-label-muted {
    color: var(--g2-gray) !important;
}

.g2-text-center {
    text-align: center !important;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

/* Header & Navigation */
.g2-header-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--g2-white);
    width: 100%;
    border-bottom: 1px solid rgba(166, 166, 166, 0.2);
}

.g2-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 96px;
    padding: 0 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.g2-logo-link {
    display: block;
    width: 94px;
    height: 94px;
    flex-shrink: 0;
}

.g2-logo-link img,
.g2-logo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.g2-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.g2-nav-links a,
.g2-nav-item a {
    font-family: var(--g2-font);
    font-size: 16px;
    font-weight: 400;
    color: var(--g2-dark);
    text-decoration: none;
    white-space: nowrap;
}

.g2-nav-links a:hover,
.g2-nav-item a:hover {
    color: var(--g2-black);
    text-decoration: underline;
}

.g2-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-family: var(--g2-font);
    font-size: 16px;
    color: var(--g2-dark);
    padding: 12px 16px;
    cursor: pointer;
}

/* Sections & Containers */
.g2-section {
    width: 100%;
    padding: 88px 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-margin-top: 96px;
}

.g2-section-hero {
    background-color: var(--g2-black);
    padding: 64px 56px 0;
    scroll-margin-top: 96px;
}

.g2-section-light {
    background-color: var(--g2-white);
}

.g2-section-dark {
    background-color: var(--g2-dark);
}

.g2-container {
    width: 100%;
    max-width: 1088px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

/* Hero Section Specifics */
.g2-hero-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
}

.g2-hero-lead {
    flex: 1 1 0;
}

.g2-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 260px;
    flex-shrink: 0;
}

/* Buttons (1:1 Framer) */
.wp-block-buttons.g2-btn-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 260px;
}

.wp-block-buttons.g2-btn-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.wp-block-button.g2-btn {
    width: 260px;
    margin: 0;
}

.wp-block-button.g2-btn-full {
    width: 100%;
}

.wp-block-button.g2-btn .wp-block-button__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    background-color: var(--g2-white) !important;
    color: var(--g2-black) !important;
    border: 1px solid var(--g2-gray) !important;
    border-radius: 0 !important;
    font-family: var(--g2-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: -0.015em;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wp-block-button.g2-btn .wp-block-button__link:hover {
    background-color: #f2f2f2 !important;
    border-color: var(--g2-black) !important;
}

/* Hero Image */
.wp-block-image.g2-hero-image {
    width: 100%;
    height: 440px;
    margin: 0;
    overflow: hidden;
}

.wp-block-image.g2-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.g2-hero-caption-wrap {
    width: 100%;
    padding-bottom: 20px;
}

/* 2-Column Layouts (O firmie, Kontakt) */
.g2-grid-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(50px, 1fr));
    gap: 64px;
    align-items: start;
}

.g2-stack-24 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

.g2-stack-16 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

/* 3-Column Grids (Oferta, Marki, Realizacje) */
.g2-grid-3 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(50px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.g2-grid-3-gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(50px, 1fr));
    gap: 24px;
    align-items: start;
}

/* Offer Cards */
.g2-offer-card {
    border: 1px solid var(--g2-gray);
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    height: 100%;
    background-color: var(--g2-white);
}

.g2-offer-card-dark {
    background-color: var(--g2-dark);
    border: 1px solid var(--g2-dark);
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    height: 100%;
}

.g2-icon-box {
    width: 24px;
    height: 24px;
    display: block;
    color: var(--g2-black);
}

.g2-icon-box svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Brand Cards (Marki) */
.g2-brand-card {
    border: 1px dashed var(--g2-gray);
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    height: 100%;
}

.g2-brand-placeholder {
    width: 100%;
    height: 64px;
    background-repeat: repeat;
    background-position: left top;
    background-size: 64px auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='126' height='126'%3E%3Cpath d='M126 0v21.584L21.584 126H0v-17.585L108.415 0H126Zm0 108.414V126h-17.586L126 108.414Zm0-84v39.171L63.585 126H24.414L126 24.414Zm0 42v39.17L105.584 126h-39.17L126 66.414ZM105.586 0 0 105.586V66.415L66.415 0h39.171Zm-42 0L0 63.586V24.415L24.415 0h39.171Zm-42 0L0 21.586V0h21.586Z' fill='rgba(136,136,136,0.2)' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Gallery Items (Realizacje) */
.g2-gallery-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 4px;
    width: 100%;
}

.wp-block-image.g2-gallery-img {
    width: 100%;
    height: 260px;
    margin: 0;
    overflow: hidden;
    cursor: zoom-in;
}

.wp-block-image.g2-gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.wp-block-image.g2-gallery-img:hover img {
    transform: scale(1.02);
}

/* Dlaczego G2 Rows */
.g2-why-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.g2-why-row {
    width: 100%;
    border-bottom: 1px solid var(--g2-gray);
    padding: 24px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

.g2-why-col-title {
    flex: 1 1 0;
}

.g2-why-col-desc {
    flex: 1 1 0;
}

/* Contact Form */
.g2-contact-form {
    width: 100%;
    border: 1px solid var(--g2-gray);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--g2-white);
}

.g2-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.g2-form-field label {
    font-family: var(--g2-font);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.15;
    color: var(--g2-black);
}

.g2-form-input,
.g2-form-textarea {
    width: 100%;
    padding: 12px;
    font-family: var(--g2-font);
    font-size: 16px;
    font-weight: 400;
    color: var(--g2-dark);
    background-color: var(--g2-white);
    border: 1px solid var(--g2-gray);
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s ease;
}

.g2-form-input {
    height: 48px;
}

.g2-form-textarea {
    height: 130px;
    resize: vertical;
}

.g2-form-input:focus,
.g2-form-textarea:focus {
    border-color: var(--g2-black);
}

.g2-form-checkbox-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    font-size: 12px;
    line-height: 1.15;
    color: var(--g2-black);
    cursor: pointer;
}

.g2-form-checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--g2-dark);
    cursor: pointer;
}

.g2-form-submit {
    width: 100%;
    padding: 16px 24px;
    background-color: var(--g2-white);
    color: var(--g2-black);
    border: 1px solid var(--g2-gray);
    font-family: var(--g2-font);
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.g2-form-submit:hover {
    background-color: #f2f2f2;
    border-color: var(--g2-black);
}

.g2-form-success {
    padding: 16px;
    border: 1px solid var(--g2-black);
    background-color: #f8f8f8;
    font-size: 14px;
    color: var(--g2-black);
}

/* Footer */
.g2-footer {
    width: 100%;
    border-top: 1px solid var(--g2-gray);
    background-color: var(--g2-white);
    padding: 48px 56px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.g2-footer-container {
    width: 100%;
    max-width: 1088px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.wp-block-image.g2-footer-logo {
    width: 100px;
    height: 100px;
    margin: 0;
}

.wp-block-image.g2-footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.g2-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.g2-footer-nav a {
    font-size: 12px;
    color: var(--g2-dark);
}

/* Lightbox Overlay */
.g2-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}

.g2-lightbox.is-open {
    display: flex;
}

.g2-lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
}

/* Responsive Breakpoints (1:1 Framer: Tablet 810-1199px, Mobile <810px) */
@media (max-width: 1199.98px) {
    .g2-h1, h1.wp-block-heading.g2-h1 {
        font-size: 48px;
    }
    .g2-h2, h2.wp-block-heading.g2-h2 {
        font-size: 36px;
    }
    .g2-section {
        padding: 64px 32px;
    }
    .g2-section-hero {
        padding: 64px 32px 0;
    }
    .g2-nav-container {
        padding: 0 32px;
    }
    .g2-footer {
        padding: 40px 32px;
    }
    .g2-hero-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    .wp-block-image.g2-hero-image {
        height: 360px;
    }
    .g2-grid-2 {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .g2-grid-3,
    .g2-grid-3-gallery {
        grid-template-columns: repeat(2, minmax(50px, 1fr));
    }
}

@media (max-width: 809.98px) {
    .g2-h1, h1.wp-block-heading.g2-h1 {
        font-size: 38px;
    }
    .g2-h2, h2.wp-block-heading.g2-h2 {
        font-size: 30px;
    }
    .g2-section {
        padding: 56px 24px;
    }
    .g2-section-hero {
        padding: 56px 24px 0;
    }
    .g2-nav-container {
        height: auto;
        min-height: 80px;
        padding: 0 24px;
        flex-wrap: wrap;
    }
    .g2-logo-link {
        width: 76px;
        height: 76px;
    }
    .g2-menu-toggle {
        display: block;
    }
    .g2-nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 16px 0 24px;
        border-top: 1px solid rgba(166, 166, 166, 0.2);
    }
    .g2-nav-links.is-open {
        display: flex;
    }
    .wp-block-image.g2-hero-image {
        height: 270px;
    }
    .g2-grid-3,
    .g2-grid-3-gallery {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .g2-why-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .g2-footer {
        padding: 32px 24px;
    }
}
