/*
Theme Name: Yscey Bakery
Theme URI: https://example.com/
Author: Yscey Bakery
Description: Warm, editable one-page block theme for Yscey Bakery – traditional Turkish bakery in Nottingham. Edit everything from Appearance > Editor.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yscey-bakery
*/

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }

/* Header */
.ysc-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 18px rgba(59,36,21,.08); }
.admin-bar .ysc-header { top: 32px; }
.ysc-header .wp-block-navigation a { font-weight: 700; letter-spacing: .02em; }
.ysc-header .wp-block-navigation a:hover { color: var(--wp--preset--color--gold); }

/* Hero */
.ysc-hero h1 { text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.ysc-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-weight: 700; }

/* Cards */
.ysc-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 24px rgba(59,36,21,.08); transition: transform .25s ease, box-shadow .25s ease; height: 100%; }
.ysc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(59,36,21,.14); }
.ysc-card .wp-block-image { margin: 0; }
.ysc-card .wp-block-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.ysc-card-body { padding: 1.4rem 1.4rem 1.6rem; }
.ysc-card ul { padding-left: 1.1rem; margin: 0; }
.ysc-card li { margin-bottom: .35rem; }
.ysc-card li::marker { color: var(--wp--preset--color--gold); }

/* Feature boxes */
.ysc-feature { background: #fff; border-radius: 14px; padding: 1.6rem 1.2rem; text-align: center; border-top: 4px solid var(--wp--preset--color--gold); height: 100%; }
.ysc-feature p { margin: .3rem 0 0; }

/* Stats */
.ysc-stat .ysc-num { font-family: var(--wp--preset--font-family--heading); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--wp--preset--color--gold); margin: 0; }

/* Tags */
.ysc-tags p { display: inline-block; margin: 0; padding: .45rem 1rem; border-radius: 999px; background: var(--wp--preset--color--sand); font-weight: 700; font-size: .95rem; }

/* About image */
.ysc-rounded img { border-radius: 18px; box-shadow: 0 12px 34px rgba(59,36,21,.18); }

/* Gallery */
.ysc-gallery.wp-block-gallery img { border-radius: 12px; aspect-ratio: 1/1; object-fit: cover; transition: transform .3s ease; }
.ysc-gallery.wp-block-gallery .wp-block-image:hover img { transform: scale(1.03); }

/* Divider */
.ysc-divider { width: 70px; height: 3px; background: var(--wp--preset--color--gold); border: 0; margin-left: auto; margin-right: auto; }
.ysc-divider.is-left { margin-left: 0; }

@media (max-width: 781px) { .admin-bar .ysc-header { top: 0; } }

/* Product cards */
.ysc-products { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.ysc-products > .ysc-card { flex: 0 1 calc(33.333% - 1.1rem); margin: 0 !important; }
@media (max-width: 960px) { .ysc-products > .ysc-card { flex-basis: calc(50% - .8rem); } }
@media (max-width: 600px) { .ysc-products > .ysc-card { flex-basis: 100%; } }
.ysc-card-body > * + * { margin-top: .8rem; }

/* Remove gaps between full-width sections */
.wp-site-blocks > * + *, main > .alignfull, main > .alignfull + .alignfull { margin-block-start: 0 !important; }

/* Stats: 2 x 2 on phones */
@media (max-width: 781px) {
  .ysc-stats .wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
}
